File: custom.css

package info (click to toggle)
myst-nb 1.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,384 kB
  • sloc: python: 6,066; xml: 1,434; makefile: 33
file content (15 lines) | stat: -rw-r--r-- 328 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/** Add a counter before subsections **/
h1 {
    counter-reset: subsection;
}
h2 {
    counter-reset: subsubsection;
}
h2::before {
    counter-increment: subsection;
    content: counter(subsection) ". ";
}
h3::before {
    counter-increment: subsubsection;
    content: counter(subsection) "." counter(subsubsection) ". ";
}