Introduce SCSS plugins: dark mode and numbered headings

This commit is contained in:
Alex Shpak
2019-10-08 17:03:40 +02:00
parent 1cd5040d84
commit 007bc10c07
18 changed files with 428 additions and 409 deletions
+9
View File
@@ -0,0 +1,9 @@
$gray-100: rgba(255, 255, 255, 0.1);
$gray-200: rgba(255, 255, 255, 0.2);
$body-background: #343a40;
$body-font-color: #e9ecef;
$color-link: #84b2ff;
$color-visited-link: #b88dff;
$color-dark-link: $body-font-color;
+23
View File
@@ -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;
}
}