diff options
author | Alex Shpak <alex-shpak@users.noreply.github.com> | 2019-10-08 17:03:40 +0200 |
---|---|---|
committer | Alex Shpak <alex-shpak@users.noreply.github.com> | 2019-10-08 17:03:49 +0200 |
commit | 007bc10c07d6a6b7cb6c03a138cc90f6f74a3058 (patch) | |
tree | 2e24514fcf5abf924d152bbac80c950db05be7d2 /assets/plugins | |
parent | 1cd5040d84e852504598ebc58f6839ce4453ca68 (diff) |
Introduce SCSS plugins: dark mode and numbered headings
Diffstat (limited to 'assets/plugins')
-rw-r--r-- | assets/plugins/_dark.scss | 9 | ||||
-rw-r--r-- | assets/plugins/_numbered.scss | 23 |
2 files changed, 32 insertions, 0 deletions
diff --git a/assets/plugins/_dark.scss b/assets/plugins/_dark.scss new file mode 100644 index 0000000..c4df68b --- /dev/null +++ b/assets/plugins/_dark.scss @@ -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; diff --git a/assets/plugins/_numbered.scss b/assets/plugins/_numbered.scss new file mode 100644 index 0000000..a1e89d8 --- /dev/null +++ b/assets/plugins/_numbered.scss @@ -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; + } +} |