Skip to content

Commit 3f75205

Browse files
committed
More accurately target sections that require alt hx styling
1 parent e173957 commit 3f75205

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

assets/css/content/functions.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
position: relative;
2626
}
2727

28-
.content-inner .detail-header .signature {
28+
/* #content used in selector to increase specificity and beat main heading rules */
29+
#content.content-inner .detail-header .signature {
2930
font-family: var(--monoFontFamily);
3031
font-size: 13px;
3132
font-weight: 700;

assets/css/content/general.css

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,21 +70,25 @@
7070
font-weight: 400;
7171
}
7272

73+
/* Headings
74+
Summary, Callbacks and Functions sections output h1 and h2,
75+
which we style as h2 and h3. */
76+
7377
.content-inner {
7478
& h1 {
7579
font-size: 2rem;
7680
margin-top: 1.75em;
7781
}
7882

7983
& h2,
80-
& #summary h1,
81-
& .details-list h1 {
84+
& :is(#summary, #callbacks, #functions) h1 {
8285
font-size: 1.75rem;
8386
margin-top: 1.5em;
87+
margin-bottom: 0.5em;
8488
}
8589

8690
& h3,
87-
& .summary h2 {
91+
& :is(#summary, #callbacks, #functions) h2 {
8892
font-size: 1.45rem;
8993
margin-top: 1.5em;
9094
margin-bottom: 0.5em;

0 commit comments

Comments
 (0)