Introduce SCSS plugins: dark mode and numbered headings
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
.book-page {
|
||||
.markdown {
|
||||
@for $h from 1 through 6 {
|
||||
> h#{$h} {
|
||||
counter-increment: h#{$h};
|
||||
counter-reset: h#{$h + 1};
|
||||
|
||||
$content: "";
|
||||
@for $n from 1 through $h {
|
||||
$content: $content + 'counter(h#{$n})"."';
|
||||
}
|
||||
|
||||
&::before {
|
||||
content: unquote($content) " ";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+ .book-toc nav ul {
|
||||
list-style: decimal;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user