Skip to content

Commit e333cc4

Browse files
committed
Publish docs, install.sh and install.ps1 for v0.0.1
1 parent 0d2fe4d commit e333cc4

2 files changed

Lines changed: 25 additions & 7 deletions

File tree

‎index.html‎

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,16 +38,29 @@
3838
pre.install-cmd {
3939
margin: 0 0 10px; padding: 14px 52px 14px 18px; font-size: 14px;
4040
display: inline-flex; align-items: center; gap: 20px; position: relative;
41+
/* The command is one long unbreakable line; without this the inline-flex
42+
box sizes to it and drags the whole column wider than a phone. */
43+
max-width: 100%;
4144
}
4245
pre.install-cmd[hidden] { display: none; }
4346
pre.install-cmd code { color: var(--safe); }
4447
/* One line of text, so the button centers rather than sitting at the top
4548
the way it does on a multi-line block. */
4649
pre.install-cmd .copy-btn { top: 50%; transform: translateY(-50%); }
4750
p.install-note { font-size: 13px; color: var(--ink-soft); margin: 0 0 44px; }
48-
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: start; }
49-
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }
50-
.compare-hero { display: grid; grid-template-columns: 1fr; gap: 14px; }
51+
/* minmax(0, ...) rather than a bare fraction, and min-width on the items:
52+
a grid track's automatic minimum is its content's min-content width, and
53+
a <pre> of code has no wrap opportunities, so an unqualified 1fr grew the
54+
column past the viewport on a phone and the page was clipped rather than
55+
laid out. The same reason .doc carries min-width: 0. */
56+
.hero-grid {
57+
display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
58+
gap: 48px; align-items: start;
59+
}
60+
.hero-grid > * { min-width: 0; }
61+
@media (max-width: 860px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }
62+
.compare-hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
63+
.compare-hero > * { min-width: 0; }
5164
.compare-hero pre { margin: 0; font-size: 12.6px; }
5265
.compare-hero .highlight { margin: 0; }
5366
.compare-label {
@@ -94,8 +107,9 @@
94107
}
95108
p.lede-s { color: var(--ink-mid); max-width: 62ch; margin: 0 0 32px; }
96109

97-
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
98-
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }
110+
.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
111+
.grid-2 > * { min-width: 0; }
112+
@media (max-width: 760px) { .grid-2 { grid-template-columns: minmax(0, 1fr); } }
99113

100114
.card {
101115
background: var(--card); border: 1px solid var(--rule); border-radius: 10px;

‎site.css‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,11 @@
4545

4646
* { box-sizing: border-box; }
4747
html {
48-
scroll-behavior: smooth; overflow-x: hidden;
48+
/* `clip`, not `hidden`: hidden makes this element a scroll container, which
49+
both swallows a too-wide child silently and re-parents position:sticky to
50+
it. clip keeps the sticky nav pinned to the viewport and still contains
51+
the full-bleed band section's 50vw margins. */
52+
scroll-behavior: smooth; overflow-x: clip;
4953
scrollbar-color: color-mix(in srgb, var(--accent) 55%, var(--rule)) transparent;
5054
scrollbar-width: thin;
5155
}
@@ -63,7 +67,7 @@ html {
6367
}
6468
::-webkit-scrollbar-thumb:hover { background: var(--accent); background-clip: padding-box; }
6569
body {
66-
margin: 0; color: var(--ink); overflow-x: hidden;
70+
margin: 0; color: var(--ink); overflow-x: clip;
6771
/* A bright violet-blue glow top-left, a faint warm counterpoint
6872
top-right, fading to the flat page color by the time content
6973
scrolls past them. */

0 commit comments

Comments
 (0)