Skip to content

Commit 13382f7

Browse files
TMHSDigitalclaude
andcommitted
Site: centre the footer, tidy nav, pager and group headings
- The footer is centred to close the page the way the hero opens it, and its rule ends at the content edge. - The theme toggle in the top bar is muted and not underlined, like the nav links beside it. - On phones the nav's padding reset also hit the Sponsor link and clipped its label; it now skips that link. - Entry-page prev/next buttons keep the space between arrow and title, which their flex layout had dropped. - Catalog group headings set the category name in ink, semibold, with the count muted beside it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LpkeXPtfg3jGzhfoGMshTE
1 parent a3425e7 commit 13382f7

1 file changed

Lines changed: 45 additions & 5 deletions

File tree

‎site/public/styles.css‎

Lines changed: 45 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,19 @@
155155
text-underline-offset: 0.2em;
156156
}
157157

158+
/* In the top bar it is one more nav item, so it looks like the links
159+
beside it. */
160+
.topnav .theme-toggle {
161+
color: var(--muted);
162+
font-size: 0.92rem;
163+
font-weight: 500;
164+
text-decoration: none;
165+
}
166+
167+
.topnav .theme-toggle:hover {
168+
color: var(--ink);
169+
}
170+
158171

159172
*,
160173
*::before,
@@ -549,13 +562,22 @@ code {
549562
color: var(--muted);
550563
}
551564

565+
/* Centred to close the page the way the hero opens it. The rule is inset
566+
by the padding so it ends at the content edge. */
552567
.footer {
568+
--pad-x: clamp(1rem, 3vw, 1.5rem);
553569
width: min(100%, var(--max));
554570
margin: 0 auto;
555-
padding: 1.5rem clamp(1rem, 3vw, 1.5rem) 2.5rem;
556-
border-top: 1px solid var(--line);
571+
padding: 1.5rem var(--pad-x) 2.5rem;
572+
background: linear-gradient(var(--line), var(--line)) top center / calc(100% - 2 * var(--pad-x)) 1px no-repeat;
557573
color: var(--muted);
558574
font-size: 0.9rem;
575+
text-align: center;
576+
}
577+
578+
.footer > p {
579+
max-width: 44rem;
580+
margin-inline: auto;
559581
}
560582

561583
@media (max-width: 640px) {
@@ -574,7 +596,8 @@ code {
574596
gap: 0.5rem 0.8rem;
575597
}
576598

577-
.topnav a {
599+
.topnav a,
600+
.topnav .theme-toggle {
578601
font-size: 0.85rem;
579602
}
580603

@@ -944,7 +967,8 @@ input:focus-visible,
944967
}
945968

946969
.footer-sponsor {
947-
margin: 0.75rem 0 0.5rem;
970+
justify-content: center;
971+
margin: 0.75rem auto 0.5rem;
948972
}
949973

950974
.footer-stamp {
@@ -1038,6 +1062,13 @@ input:focus-visible,
10381062
font-variant-numeric: tabular-nums;
10391063
}
10401064

1065+
/* The category name leads; its count stays a muted aside. */
1066+
.group-name {
1067+
color: var(--ink);
1068+
font-size: 0.85rem;
1069+
font-weight: 600;
1070+
}
1071+
10411072
/* Live count on each filter chip. Solid colours only: fading the text with
10421073
opacity took it below 4.5:1 in both themes. The count is set in the mono
10431074
face at the chip's own colour (muted: 5.3:1 light, 7.5:1 dark). */
@@ -1303,6 +1334,11 @@ input:focus-visible,
13031334
text-decoration: none;
13041335
}
13051336

1337+
/* A flex box drops the space between the arrow and the title. */
1338+
.page-pager .btn-ghost {
1339+
gap: 0.45rem;
1340+
}
1341+
13061342
.page-actions .btn-ghost:hover,
13071343
.page-pager .btn-ghost:hover {
13081344
border-color: var(--ink);
@@ -2171,13 +2207,17 @@ input:focus-visible,
21712207
white-space: nowrap;
21722208
}
21732209

2174-
.topnav a {
2210+
.topnav a:not(.sponsor-button) {
21752211
display: inline-flex;
21762212
align-items: center;
21772213
min-height: 44px;
21782214
padding: 0;
21792215
}
21802216

2217+
.topnav .sponsor-button {
2218+
min-height: 44px;
2219+
}
2220+
21812221
.nav-sponsor {
21822222
display: inline-flex;
21832223
align-items: center;

0 commit comments

Comments
 (0)