@half-built/css 0.3.1 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -0
- package/package.json +1 -1
- package/src/prose.css +6 -0
- package/src/tokens/primitives.css +8 -0
package/README.md
CHANGED
|
@@ -46,6 +46,15 @@ const breakpoints = fileURLToPath(
|
|
|
46
46
|
Sites add their own `site` cascade layer after these imports for local
|
|
47
47
|
overrides. The layer order in `layers.css` already declares it.
|
|
48
48
|
|
|
49
|
+
## Bottom-docked controls
|
|
50
|
+
|
|
51
|
+
`--dock-bottom` (in `tokens/primitives.css`, default `0px`) is the
|
|
52
|
+
room a viewport-fixed bottom component occupies. A site that pins a
|
|
53
|
+
control cluster to the bottom corner sets it to the cluster's height
|
|
54
|
+
plus its inset and a line of air, in the same media block that pins
|
|
55
|
+
the cluster; the astro package's `Footer` reserves that much below its
|
|
56
|
+
last link so the page scrolls on far enough to clear the cluster.
|
|
57
|
+
|
|
49
58
|
## Theming
|
|
50
59
|
|
|
51
60
|
The entire third-party theming surface is six primitives: two brand
|
package/package.json
CHANGED
package/src/prose.css
CHANGED
|
@@ -9,6 +9,12 @@
|
|
|
9
9
|
bare browser defaults, recorded as a deliberate deviation in the handoff. */
|
|
10
10
|
.prose p { margin: 0 0 1.5em; }
|
|
11
11
|
.prose h2 { font-size: var(--font-size-md); margin: 1.6em 0 0.6em; }
|
|
12
|
+
/* Footnotes (Markdown [^1]) get no rules of their own: the reference
|
|
13
|
+
is a superscript link and the notes an ordered list under an h2,
|
|
14
|
+
all on the rhythm above. remark-gfm classes that h2 "sr-only",
|
|
15
|
+
expecting the sheet to hide it; this system defines no .sr-only on
|
|
16
|
+
purpose, so the Footnotes heading shows (owner call 2026-09-09).
|
|
17
|
+
Do not add an .sr-only rule or alias it to .screen-reader-text. */
|
|
12
18
|
.prose h3 { font-size: var(--font-size-base); margin: 1.4em 0 0.5em; }
|
|
13
19
|
.prose h4 { font-size: var(--font-size-sm); text-transform: uppercase; letter-spacing: 0.5px; margin: 1.4em 0 0.5em; }
|
|
14
20
|
|
|
@@ -93,6 +93,14 @@
|
|
|
93
93
|
--shell-max: 1380px;
|
|
94
94
|
--shell-pad: 15px;
|
|
95
95
|
--header-clear: 65px;
|
|
96
|
+
/* Room for a viewport-bound bottom component (owner rule
|
|
97
|
+
2026-09-09): a fixed control cluster in the bottom corner takes
|
|
98
|
+
no room in flow, so the page's last lines end underneath it. A
|
|
99
|
+
site that pins one sets this to the height it occupies, inset
|
|
100
|
+
and air included, and the Footer reserves that much below its
|
|
101
|
+
last line so the page scrolls on far enough to clear it. Zero
|
|
102
|
+
when nothing is pinned. */
|
|
103
|
+
--dock-bottom: 0px;
|
|
96
104
|
--shadow: 0 3px 12px -1px rgb(7 10 25 / 20%), 0 22px 27px -20px rgb(7 10 25 / 20%);
|
|
97
105
|
--transition: all 0.1s ease;
|
|
98
106
|
|