Skip to content

Commit b610ab7

Browse files
stevebyanmflatt
authored andcommitted
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.
1 parent 7577bed commit b610ab7

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

scribble-lib/scribble/manual-racket.css

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -127,12 +127,12 @@ span.RktValDef, span.RktStxDef, span.RktSymDef
127127
}
128128

129129
/* for syntax links within headings */
130-
h2 a.RktStxLink, h3 a.RktStxLink, h4 a.RktStxLink, h5 a.RktStxLink,
131-
h2 a.RktValLink, h3 a.RktValLink, h4 a.RktValLink, h5 a.RktValLink,
132-
h2 .RktSym, h3 .RktSym, h4 .RktSym, h5 .RktSym,
133-
h2 .RktMod, h3 .RktMod, h4 .RktMod, h5 .RktMod,
134-
h2 .RktVal, h3 .RktVal, h4 .RktVal, h5 .RktVal,
135-
h2 .RktPn, h3 .RktPn, h4 .RktPn, h5 .RktPn {
130+
h1 a.RktStxLink, h2 a.RktStxLink, h3 a.RktStxLink, h4 a.RktStxLink, h5 a.RktStxLink,
131+
h1 a.RktValLink, h2 a.RktValLink, h3 a.RktValLink, h4 a.RktValLink, h5 a.RktValLink,
132+
h1 .RktSym, h2 .RktSym, h3 .RktSym, h4 .RktSym, h5 .RktSym,
133+
h1 .RktMod, h2 .RktMod, h3 .RktMod, h4 .RktMod, h5 .RktMod,
134+
h1 .RktVal, h2 .RktVal, h3 .RktVal, h4 .RktVal, h5 .RktVal,
135+
h1 .RktPn, h2 .RktPn, h3 .RktPn, h4 .RktPn, h5 .RktPn {
136136
color: #333;
137137
font-size: 1.50rem;
138138
font-weight: 400;

scribble-lib/scribble/manual-style.css

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -42,16 +42,16 @@
4242
/* embolden the "Racket Guide" and "Racket Reference" links on the TOC */
4343
/* there isn't an obvious tag in the markup that designates the top TOC page, which is called "start.scrbl" */
4444
/* nor a tag that designates these two links as special */
45-
/* so we'll use this slightly tortured sibling selector that hooks onto the h2 tag */
46-
h2[x-source-module='(lib "scribblings/main/start.scrbl")'] ~ table a[href="guide/index.html"],
47-
h2[x-source-module='(lib "scribblings/main/start.scrbl")'] ~ table a[href="reference/index.html"] {
45+
/* so we'll use this slightly tortured sibling selector that hooks onto the h1 tag */
46+
h1[x-source-module='(lib "scribblings/main/start.scrbl")'] ~ table a[href="guide/index.html"],
47+
h1[x-source-module='(lib "scribblings/main/start.scrbl")'] ~ table a[href="reference/index.html"] {
4848
font-weight: bold;
4949
}
5050

5151

52-
h2 .stt {
52+
h1 .stt {
5353
font-size: 2.3rem;
54-
/* prevent automatic bolding from h2 */
54+
/* prevent automatic bolding from h1 */
5555
font-weight: 400;
5656
}
5757

@@ -68,7 +68,7 @@ h2 .stt {
6868
font-size: 0.9rem;
6969
}
7070

71-
h3 .stt, h4 .stt, h5 .stt {
71+
h2 .stt, h3 .stt, h4 .stt, h5 .stt {
7272
color: #333;
7373
font-size: 1.65rem;
7474
font-weight: 400;
@@ -128,13 +128,13 @@ h1, h2, h3, h4, h5, h6, h7, h8 {
128128

129129
}
130130

131-
h3, h4, h5, h6, h7, h8 {
131+
h2, h3, h4, h5, h6, h7, h8 {
132132
border-top: 1px solid black;
133133
}
134134

135135

136136

137-
h2 { /* per-page main title */
137+
h1 { /* per-page main title */
138138
font-family: 'Cooper-Hewitt';
139139
margin-top: 4rem;
140140
font-size: 2.3rem;
@@ -146,7 +146,7 @@ h2 { /* per-page main title */
146146
top: 6px;
147147
}
148148

149-
h3, h4, h5, h6, h7, h8 {
149+
h2, h3, h4, h5, h6, h7, h8 {
150150
margin-top: 2em;
151151
padding-top: 0.1em;
152152
margin-bottom: 0.75em;

0 commit comments

Comments
 (0)