Skip to content

Commit 500fde3

Browse files
authored
Merge pull request modelcontextprotocol#778 from modelcontextprotocol/davidsp/css-fix
docs: Fix h5, h6 style
2 parents 389d193 + 25a52b1 commit 500fde3

File tree

1 file changed

+19
-8
lines changed

1 file changed

+19
-8
lines changed

docs/style.css

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
#feature-support-matrix-wrapper {
2-
overflow-x: auto;
2+
overflow-x: auto;
33
}
44

55
#feature-support-matrix-wrapper table {
6-
min-width: 800px;
6+
min-width: 800px;
77
}
88

9-
109
/*** Add automatic section numbers to headings and table of contents items ***/
1110

1211
#enable-section-numbers {
@@ -19,7 +18,6 @@ body:has(#enable-section-numbers) {
1918
counter-reset: h2-counter h3-counter h4-counter h5-counter h6-counter;
2019
}
2120

22-
2321
#content-area h2[id],
2422
#table-of-contents li[data-depth="0"] {
2523
counter-set: h3-counter h4-counter h5-counter h6-counter;
@@ -36,11 +34,11 @@ body:has(#enable-section-numbers) {
3634
}
3735

3836
#content-area h5[id],
37+
#content-area h5,
3938
#table-of-contents li[data-depth="3"] {
4039
counter-set: h6-counter;
4140
}
4241

43-
4442
#content-area h2[id]::before,
4543
#table-of-contents li[data-depth="0"] a::before {
4644
counter-increment: h2-counter;
@@ -56,18 +54,31 @@ body:has(#enable-section-numbers) {
5654
#content-area h4[id]::before,
5755
#table-of-contents li[data-depth="2"] a::before {
5856
counter-increment: h4-counter;
59-
content: counter(h2-counter) "." counter(h3-counter) "." counter(h4-counter) " ";
57+
content: counter(h2-counter) "." counter(h3-counter) "." counter(h4-counter)
58+
" ";
6059
}
6160

6261
#content-area h5[id]::before,
62+
#content-area h5::before,
6363
#table-of-contents li[data-depth="3"] a::before {
6464
counter-increment: h5-counter;
65-
content: counter(h2-counter) "." counter(h3-counter) "." counter(h4-counter) "." counter(h5-counter) " ";
65+
content: counter(h2-counter) "." counter(h3-counter) "." counter(h4-counter)
66+
"." counter(h5-counter) " ";
6667
}
6768

6869
#content-area h6[id]::before,
70+
#content-area h6::before,
6971
#table-of-contents li[data-depth="4"] a::before {
7072
counter-increment: h6-counter;
71-
content: counter(h2-counter) "." counter(h3-counter) "." counter(h4-counter) "." counter(h5-counter) "." counter(h6-counter) " ";
73+
content: counter(h2-counter) "." counter(h3-counter) "." counter(h4-counter)
74+
"." counter(h5-counter) "." counter(h6-counter) " ";
75+
}
76+
77+
#content-area h5 {
78+
font-weight: 500;
79+
}
80+
81+
#content-area h6 {
82+
font-weight: 400;
7283
}
7384
}

0 commit comments

Comments
 (0)