Skip to content

Commit a377841

Browse files
committed
css: stick the Socket footer to the viewport bottom on short pages
Index page has a short body — the footer rendered mid-page with a lot of whitespace beneath it. Make body a flex column with min-height: 100vh so the footer can margin-top: auto itself down to the viewport bottom. Long pages scroll as before; the min-height only kicks in when content is shorter than the viewport.
1 parent e2119d9 commit a377841

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

walkthrough-overrides.css

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1200,9 +1200,18 @@ html[data-theme='dark'] .wt-secondary:hover {
12001200
* brand purple, right-aligned muted-white text, generous top space.
12011201
* Kept fixed-content (no dependency fetch) so it renders the instant
12021202
* the HTML is parsed. */
1203+
/* Sticky-footer layout: body flexes vertically so the footer can
1204+
* auto-margin to the bottom on short pages (e.g. the index). Long
1205+
* pages just scroll normally — `min-height: 100vh` only kicks in
1206+
* when content would otherwise leave empty space below. */
1207+
body {
1208+
display: flex;
1209+
flex-direction: column;
1210+
min-height: 100vh;
1211+
}
12031212
.wt-socket-footer {
12041213
/* Full-bleed brand purple band aligned to the page bottom. */
1205-
margin-top: 48px;
1214+
margin-top: auto;
12061215
padding: 28px 32px;
12071216
background: #4c1d95;
12081217
color: rgba(255, 255, 255, 0.85);

0 commit comments

Comments
 (0)