From 813f759d4496d2f5579fb9f3ca3086fad182428e Mon Sep 17 00:00:00 2001 From: Steve Byan Date: Mon, 4 Aug 2025 10:05:11 -0400 Subject: [PATCH] fix CSS for manual style for H1 tag for title Oops! Fix the CSS files for the manual style for the change to h1 for titles. The CSS for the base style was fixed in the original pull request. --- scribble-lib/scribble/manual-racket.css | 12 ++++++------ scribble-lib/scribble/manual-style.css | 18 +++++++++--------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/scribble-lib/scribble/manual-racket.css b/scribble-lib/scribble/manual-racket.css index 19768b1a12..7ad0df1820 100644 --- a/scribble-lib/scribble/manual-racket.css +++ b/scribble-lib/scribble/manual-racket.css @@ -127,12 +127,12 @@ span.RktValDef, span.RktStxDef, span.RktSymDef } /* for syntax links within headings */ -h2 a.RktStxLink, h3 a.RktStxLink, h4 a.RktStxLink, h5 a.RktStxLink, -h2 a.RktValLink, h3 a.RktValLink, h4 a.RktValLink, h5 a.RktValLink, -h2 .RktSym, h3 .RktSym, h4 .RktSym, h5 .RktSym, -h2 .RktMod, h3 .RktMod, h4 .RktMod, h5 .RktMod, -h2 .RktVal, h3 .RktVal, h4 .RktVal, h5 .RktVal, -h2 .RktPn, h3 .RktPn, h4 .RktPn, h5 .RktPn { +h1 a.RktStxLink, h2 a.RktStxLink, h3 a.RktStxLink, h4 a.RktStxLink, h5 a.RktStxLink, +h1 a.RktValLink, h2 a.RktValLink, h3 a.RktValLink, h4 a.RktValLink, h5 a.RktValLink, +h1 .RktSym, h2 .RktSym, h3 .RktSym, h4 .RktSym, h5 .RktSym, +h1 .RktMod, h2 .RktMod, h3 .RktMod, h4 .RktMod, h5 .RktMod, +h1 .RktVal, h2 .RktVal, h3 .RktVal, h4 .RktVal, h5 .RktVal, +h1 .RktPn, h2 .RktPn, h3 .RktPn, h4 .RktPn, h5 .RktPn { color: #333; font-size: 1.50rem; font-weight: 400; diff --git a/scribble-lib/scribble/manual-style.css b/scribble-lib/scribble/manual-style.css index 2dad341e8d..20ebd0e88f 100644 --- a/scribble-lib/scribble/manual-style.css +++ b/scribble-lib/scribble/manual-style.css @@ -42,16 +42,16 @@ /* embolden the "Racket Guide" and "Racket Reference" links on the TOC */ /* there isn't an obvious tag in the markup that designates the top TOC page, which is called "start.scrbl" */ /* nor a tag that designates these two links as special */ -/* so we'll use this slightly tortured sibling selector that hooks onto the h2 tag */ -h2[x-source-module='(lib "scribblings/main/start.scrbl")'] ~ table a[href="guide/index.html"], -h2[x-source-module='(lib "scribblings/main/start.scrbl")'] ~ table a[href="reference/index.html"] { +/* so we'll use this slightly tortured sibling selector that hooks onto the h1 tag */ +h1[x-source-module='(lib "scribblings/main/start.scrbl")'] ~ table a[href="guide/index.html"], +h1[x-source-module='(lib "scribblings/main/start.scrbl")'] ~ table a[href="reference/index.html"] { font-weight: bold; } -h2 .stt { +h1 .stt { font-size: 2.3rem; - /* prevent automatic bolding from h2 */ + /* prevent automatic bolding from h1 */ font-weight: 400; } @@ -68,7 +68,7 @@ h2 .stt { font-size: 0.9rem; } -h3 .stt, h4 .stt, h5 .stt { +h2 .stt, h3 .stt, h4 .stt, h5 .stt { color: #333; font-size: 1.65rem; font-weight: 400; @@ -128,13 +128,13 @@ h1, h2, h3, h4, h5, h6, h7, h8 { } -h3, h4, h5, h6, h7, h8 { +h2, h3, h4, h5, h6, h7, h8 { border-top: 1px solid black; } -h2 { /* per-page main title */ +h1 { /* per-page main title */ font-family: 'Cooper-Hewitt'; margin-top: 4rem; font-size: 2.3rem; @@ -146,7 +146,7 @@ h2 { /* per-page main title */ top: 6px; } -h3, h4, h5, h6, h7, h8 { +h2, h3, h4, h5, h6, h7, h8 { margin-top: 2em; padding-top: 0.1em; margin-bottom: 0.75em;