Skip to content

Commit ea3df31

Browse files
committed
DOC: Increase size of headings.
Some time ago, we switch to Carlito, but this font seems to be a bit smaller than our body font. The default styling makes fourth-level headings (`h4`) the same size as text, but bold. With the smaller font, this incorrectly makes the fourth-level headings look smaller than the text. To match the body font, Carlito needs a base size of 16px (vs 14px), so re-scale all the headings using the CSS default em-size * 16px.
1 parent 2dc4c38 commit ea3df31

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

doc/_static/mpl.css

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -315,20 +315,32 @@ p {
315315
h1 {
316316
margin: 0.5em 0em;
317317
padding-top: 0.5em;
318-
font-size: 2em;
318+
font-size: 32px;
319319
color: #11557C;
320320
}
321321

322322
h2 {
323323
margin: 0.5em 0 0.2em 0;
324324
padding-top: 0.5em;
325-
font-size: 1.7em;
325+
font-size: 24px;
326326
}
327327

328328
h3 {
329329
margin: 0.2em 0 0.1em 0;
330330
padding-top: 0.5em;
331-
font-size: 1.2em;
331+
font-size: 18.72px;
332+
}
333+
334+
h4 {
335+
font-size: 16px;
336+
}
337+
338+
h5 {
339+
font-size: 13.28px;
340+
}
341+
342+
h6 {
343+
font-size: 12px;
332344
}
333345

334346
h1, h2, h3, h4, h5, h6{

0 commit comments

Comments
 (0)