Well, finally, numbering sucks
parent
67e24debdb
commit
c233ec48cb
|
@ -29,45 +29,4 @@ p:not(.title,.subtitle) {
|
|||
/* New font is "smaller" in feeling */
|
||||
.navbar-dropdown {
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
/* Add counter to title */
|
||||
body {
|
||||
counter-reset: h2
|
||||
}
|
||||
|
||||
h2 {
|
||||
counter-reset: h3
|
||||
}
|
||||
|
||||
h3 {
|
||||
counter-reset: h4
|
||||
}
|
||||
|
||||
h4 {
|
||||
counter-reset: h5
|
||||
}
|
||||
|
||||
article h2:before {
|
||||
counter-increment: h2;
|
||||
content: counter(h2) ". "
|
||||
}
|
||||
|
||||
article h3:before {
|
||||
counter-increment: h3;
|
||||
content: counter(h2) "." counter(h3) ". "
|
||||
}
|
||||
|
||||
article h4:before {
|
||||
counter-increment: h4;
|
||||
content: counter(h2) "." counter(h3) "." counter(h4) ". "
|
||||
}
|
||||
|
||||
article .toc__menu ul {
|
||||
counter-reset: item
|
||||
}
|
||||
|
||||
article .toc__menu li a:before {
|
||||
content: counters(item, ".") ". ";
|
||||
counter-increment: item
|
||||
}
|
Loading…
Reference in New Issue