File tree Expand file tree Collapse file tree 2 files changed +28
-43
lines changed Expand file tree Collapse file tree 2 files changed +28
-43
lines changed Original file line number Diff line number Diff line change 17
17
}
18
18
}
19
19
20
+ /* === HEADING STYLES === */
20
21
.doc h1 ,
21
22
.doc h2 ,
22
23
.doc h3 ,
23
24
.doc h4 ,
24
25
.doc h5 ,
25
26
.doc h6 {
26
27
color : var (--heading-font-color );
28
+ font-family : var (--body-font-family );
27
29
font-weight : var (--heading-font-weight );
28
30
hyphens : none;
29
31
line-height : 1.3 ;
30
- margin : 1rem 0 0 ;
31
- scroll-margin-top : calc (var (--navbar-height ) + var (--toolbar-height ) + 1rem ); /* Account for sticky header height */
32
+ margin : 16px 0 ;
33
+ padding : 0 ;
34
+ text-align : left;
35
+ scroll-margin-top : calc (var (--navbar-height ) + var (--toolbar-height ) + 1rem );
32
36
}
33
37
34
- .doc > h1 . page : first-child {
38
+ .doc h1 {
35
39
font-size : 32px ;
36
- margin : 16px 0 ;
37
40
}
38
41
42
+ .doc h2 {
43
+ font-size : 24px ;
44
+ }
45
+
46
+ .doc h3 {
47
+ font-size : 20px ;
48
+ }
49
+
50
+ .doc h4 {
51
+ font-size : 18px ;
52
+ }
53
+
54
+ .doc h5 ,
55
+ .doc h6 {
56
+ font-size : 16px ;
57
+ }
58
+
59
+ /* Special case: Page title gets extra top margin on larger screens */
39
60
@media screen and (min-width : 768px ) {
40
61
.doc > h1 .page : first-child {
41
62
margin-top : 2.5rem ;
42
63
}
43
64
}
44
65
66
+ /* Special case: Section spacing */
45
67
.doc > h2 # name + .sectionbody {
46
68
margin-top : 1rem ;
47
69
}
51
73
margin-top : 2rem ;
52
74
}
53
75
76
+ /* Special case: Abstract section header with background */
54
77
.doc h1 .sect0 {
55
78
background : var (--abstract-background );
56
79
font-size : 1.8em ;
57
80
margin : 1.5rem -1rem 0 ;
58
81
padding : 0.5rem 1rem ;
59
82
}
60
83
61
- .doc h2 : not (.discrete ) {
62
- margin-left : -1rem ;
63
- margin-right : -1rem ;
64
- padding : 0.4rem 1rem 0.1rem ;
65
- font-weight : var (--alt-heading-font-weight );
66
- }
67
-
68
- .doc h3 : not (.discrete ),
69
- .doc h4 : not (.discrete ) {
70
- font-weight : var (--alt-heading-font-weight );
71
- font-size : 20px ;
72
- }
73
-
74
84
.doc h1 .anchor ,
75
85
.doc h2 .anchor ,
76
86
.doc h3 .anchor ,
1321
1331
width : 1.5em ;
1322
1332
}
1323
1333
1324
- /* === custom overrides === */
1325
- /* uniform 16px (1rem) spacing and left alignment */
1326
- .doc h1 ,
1327
- .doc h2 ,
1328
- .doc h3 ,
1329
- .doc h4 ,
1330
- .doc h5 ,
1331
- .doc h6 {
1332
- margin : 16px 0 ;
1333
- padding : 0 ;
1334
- text-align : left;
1335
- margin-left : 0 ;
1336
- margin-right : 0 ;
1337
- font-size : 24px ;
1338
- font-weight : 500 ;
1339
- }
1340
-
1341
- /* remove negative offsets on section headers */
1342
- .doc h2 : not (.discrete ),
1343
- .doc h3 : not (.discrete ),
1344
- .doc h4 : not (.discrete ) {
1345
- margin-left : 0 ;
1346
- margin-right : 0 ;
1347
- padding : 0 ;
1348
- }
1349
1334
1350
1335
/* paragraphs, lists, tables, blockquotes all get 16px bottom spacing */
1351
1336
.doc p ,
Original file line number Diff line number Diff line change 81
81
--doc-margin : 0 auto;
82
82
--doc-margin--desktop : 0 2rem ;
83
83
--heading-font-color : # 161616 ;
84
- --heading-font-weight : normal ;
84
+ --heading-font-weight : 500 ;
85
85
--alt-heading-font-weight : 500 ;
86
86
--section-divider-color : var (--panel-border-color );
87
87
--link-font-color : # 2152E5 ;
You can’t perform that action at this time.
0 commit comments