Skip to content

Commit f02d40f

Browse files
authored
📚 DOCS: fix tip CSS (#708)
Minor fix to stop the hover tips getting heading numbers
1 parent c8b6fc3 commit f02d40f

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

docs/_static/local.css

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,25 @@
11
/** Add a counter before subsections **/
2-
h1:not(.tippy-header) {
2+
h1 {
33
counter-reset: subsection;
44
text-decoration: underline;
55
}
6-
h2:not(.tippy-header) {
6+
h2 {
77
counter-reset: subsubsection;
88
}
9-
h2:not(.tippy-header)::before {
9+
h2::before {
1010
counter-increment: subsection;
1111
content: counter(subsection) ". ";
1212
}
13-
h3:not(.tippy-header)::before {
13+
.tippy-box h2::before {
14+
content: unset;
15+
}
16+
h3::before {
1417
counter-increment: subsubsection;
1518
content: counter(subsection) "." counter(subsubsection) ". ";
1619
}
20+
.tippy-box h3::before {
21+
content: unset;
22+
}
1723

1824
/** MyST examples */
1925
.myst-example {

0 commit comments

Comments
 (0)