Skip to content

Commit 6fc58b8

Browse files
authored
Guides CSS to format code tags in h2 headings
Noticed when reading the edge guides that we have some wonky formatting for the case when we use a method name in an h2 heading. There's already a fix for h3-level headings, so I copied the font-weight (400) and eyeballed a font-size. 2.25rem looked too much to my eyes, so went with 2rem.
1 parent 0d30e84 commit 6fc58b8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

guides/assets/stylesrc/_main.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,11 @@ body.guide {
144144
a:visited {
145145
color: $rf-brand;
146146
} // a, a:link, a:visited
147+
148+
code {
149+
font-size: 2rem;
150+
font-weight: 400;
151+
}
147152
} // h2
148153

149154
h3 {

0 commit comments

Comments
 (0)