Skip to content

Commit

Permalink
馃摎 DOCS: fix tip CSS (#708)
Browse files Browse the repository at this point in the history
Minor fix to stop the hover tips getting heading numbers
  • Loading branch information
chrisjsewell committed Feb 20, 2023
1 parent c8b6fc3 commit f02d40f
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions docs/_static/local.css
Original file line number Diff line number Diff line change
@@ -1,19 +1,25 @@
/** Add a counter before subsections **/
h1:not(.tippy-header) {
h1 {
counter-reset: subsection;
text-decoration: underline;
}
h2:not(.tippy-header) {
h2 {
counter-reset: subsubsection;
}
h2:not(.tippy-header)::before {
h2::before {
counter-increment: subsection;
content: counter(subsection) ". ";
}
h3:not(.tippy-header)::before {
.tippy-box h2::before {
content: unset;
}
h3::before {
counter-increment: subsubsection;
content: counter(subsection) "." counter(subsubsection) ". ";
}
.tippy-box h3::before {
content: unset;
}

/** MyST examples */
.myst-example {
Expand Down

0 comments on commit f02d40f

Please sign in to comment.