mirror of
https://github.com/alex-shpak/hugo-book.git
synced 2024-11-28 22:20:17 +00:00
24 lines
413 B
SCSS
24 lines
413 B
SCSS
|
.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;
|
||
|
}
|
||
|
}
|