Spaces:
Running
Page goes full-bleed: drop the 1080px column cap
Browse filesThe 1080px cap on .container.wide / .header-inner / .banner-wrap /
.tab-lede was a holdover from when sections were single-column reading
columns: a centred narrow column flanked by big paper margins worked
fine when prose and demo were stacked vertically. With every Demo-tab
section now living in a sticky-narrative + demo grid, the demo half
was being squeezed to ~700-740px on a 1440px laptop and the UMAP
scatter / 3D folding viewers / species tree all felt cramped.
Going full bleed (max-width: none + 48px lateral padding to match the
banner gutters) lets the demos use the room they need; the 248px
sticky narrative rail caps line length on prose regardless of viewport
width, and .tab-lede p still has its 760px cap so the framing
paragraph below the banner stays readable on a 32" display.
Mobile (≤720px): all four wrappers drop their lateral padding to 16px
so the banner art and the tab strip can still breathe on a phone.
Co-authored-by: Cursor <cursoragent@cursor.com>
- assets/styles/banner.css +7 -4
- assets/styles/base.css +11 -1
- assets/styles/header.css +8 -2
- assets/styles/layout.css +9 -2
|
@@ -4,9 +4,12 @@
|
|
| 4 |
on a Canvas overlay positioned to mirror the original helix bbox. */
|
| 5 |
|
| 6 |
.banner-wrap {
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
|
|
|
|
|
|
|
|
|
| 10 |
}
|
| 11 |
.carbon-banner {
|
| 12 |
--paper: #f7f5ee;
|
|
@@ -87,6 +90,6 @@
|
|
| 87 |
vector-effect: non-scaling-stroke;
|
| 88 |
}
|
| 89 |
.carbon-banner .cb-tiny-bars rect { fill: var(--green); }
|
| 90 |
-
@media (max-width:
|
| 91 |
.banner-wrap { padding: 12px 16px 0; }
|
| 92 |
}
|
|
|
|
| 4 |
on a Canvas overlay positioned to mirror the original helix bbox. */
|
| 5 |
|
| 6 |
.banner-wrap {
|
| 7 |
+
/* Full-bleed banner: matches the page-wide layout adopted everywhere
|
| 8 |
+
else. The CARBON-0 SVG inside has a fixed aspect ratio so it
|
| 9 |
+
simply scales up; nothing breaks at 4K. */
|
| 10 |
+
max-width: none;
|
| 11 |
+
margin: 0;
|
| 12 |
+
padding: 24px 48px 0;
|
| 13 |
}
|
| 14 |
.carbon-banner {
|
| 15 |
--paper: #f7f5ee;
|
|
|
|
| 90 |
vector-effect: non-scaling-stroke;
|
| 91 |
}
|
| 92 |
.carbon-banner .cb-tiny-bars rect { fill: var(--green); }
|
| 93 |
+
@media (max-width: 720px) {
|
| 94 |
.banner-wrap { padding: 12px 16px 0; }
|
| 95 |
}
|
|
@@ -17,7 +17,17 @@ body {
|
|
| 17 |
padding: 0;
|
| 18 |
}
|
| 19 |
.container { max-width: 760px; margin: 0 auto; padding: 48px 32px 96px; }
|
| 20 |
-
.container.wide
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
|
| 22 |
@keyframes pulse { 50% { opacity: 0.3; } }
|
| 23 |
|
|
|
|
| 17 |
padding: 0;
|
| 18 |
}
|
| 19 |
.container { max-width: 760px; margin: 0 auto; padding: 48px 32px 96px; }
|
| 20 |
+
/* .container.wide is the wrapper for every Demo / Recipe section. We
|
| 21 |
+
used to cap it at 1080px which gave a centred reading column flanked
|
| 22 |
+
by big paper margins — fine when the demos sat under their narrative
|
| 23 |
+
in a single column, claustrophobic now that section--two-col puts
|
| 24 |
+
them side by side. Going full bleed lets the demos (UMAP scatter,
|
| 25 |
+
tree, 3D viewers) breathe; the 248px sticky narrative rail keeps the
|
| 26 |
+
line-length on prose under control regardless of viewport width. */
|
| 27 |
+
.container.wide { max-width: none; padding: 48px 48px 96px; }
|
| 28 |
+
@media (max-width: 720px) {
|
| 29 |
+
.container.wide { padding: 32px 16px 64px; }
|
| 30 |
+
}
|
| 31 |
|
| 32 |
@keyframes pulse { 50% { opacity: 0.3; } }
|
| 33 |
|
|
@@ -3,7 +3,11 @@
|
|
| 3 |
|
| 4 |
header {
|
| 5 |
border-bottom: 1px solid #ccc; /* separator line under the tab strip */
|
| 6 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
margin-bottom: 0;
|
| 8 |
background:
|
| 9 |
radial-gradient(circle at 22% 32%, rgba(0, 0, 0, 0.035), transparent 1px),
|
|
@@ -17,7 +21,9 @@ header {
|
|
| 17 |
will-change: transform;
|
| 18 |
}
|
| 19 |
.header-inner {
|
| 20 |
-
|
|
|
|
|
|
|
| 21 |
display: flex; justify-content: space-between; align-items: flex-end;
|
| 22 |
flex-wrap: wrap; gap: 16px 32px;
|
| 23 |
}
|
|
|
|
| 3 |
|
| 4 |
header {
|
| 5 |
border-bottom: 1px solid #ccc; /* separator line under the tab strip */
|
| 6 |
+
/* 48px lateral padding mirrors .container.wide / .banner-wrap so the
|
| 7 |
+
CARBON title, banner edge and every section's left edge all share
|
| 8 |
+
one vertical alignment line. No bottom padding — tabs sit on the
|
| 9 |
+
border line below. */
|
| 10 |
+
padding: 24px 48px 0;
|
| 11 |
margin-bottom: 0;
|
| 12 |
background:
|
| 13 |
radial-gradient(circle at 22% 32%, rgba(0, 0, 0, 0.035), transparent 1px),
|
|
|
|
| 21 |
will-change: transform;
|
| 22 |
}
|
| 23 |
.header-inner {
|
| 24 |
+
/* Match the full-bleed page layout: header strip stretches edge to
|
| 25 |
+
edge, with title pinned left and tab strip pushed flush right. */
|
| 26 |
+
max-width: none;
|
| 27 |
display: flex; justify-content: space-between; align-items: flex-end;
|
| 28 |
flex-wrap: wrap; gap: 16px 32px;
|
| 29 |
}
|
|
@@ -6,13 +6,20 @@
|
|
| 6 |
|
| 7 |
/* --- Tab lede (short narrative paragraph below the banner) --- */
|
| 8 |
.tab-lede {
|
| 9 |
-
|
| 10 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
}
|
| 12 |
.tab-lede p {
|
| 13 |
color: #555; font-size: 14px; line-height: 1.7;
|
| 14 |
max-width: 760px; margin: 0;
|
| 15 |
}
|
|
|
|
|
|
|
|
|
|
| 16 |
|
| 17 |
/* --- Sections --- */
|
| 18 |
section {
|
|
|
|
| 6 |
|
| 7 |
/* --- Tab lede (short narrative paragraph below the banner) --- */
|
| 8 |
.tab-lede {
|
| 9 |
+
/* Full-bleed wrapper, padded to match .container.wide so the lede
|
| 10 |
+
paragraph aligns under the banner and section bodies. The
|
| 11 |
+
paragraph itself is still capped at 760px so prose stays
|
| 12 |
+
readable on a 32" monitor. */
|
| 13 |
+
max-width: none; margin: 4px 0 0;
|
| 14 |
+
padding: 14px 48px 0;
|
| 15 |
}
|
| 16 |
.tab-lede p {
|
| 17 |
color: #555; font-size: 14px; line-height: 1.7;
|
| 18 |
max-width: 760px; margin: 0;
|
| 19 |
}
|
| 20 |
+
@media (max-width: 720px) {
|
| 21 |
+
.tab-lede { padding: 12px 16px 0; }
|
| 22 |
+
}
|
| 23 |
|
| 24 |
/* --- Sections --- */
|
| 25 |
section {
|