aboutsummaryrefslogtreecommitdiff
path: root/assets
diff options
context:
space:
mode:
authorAlex Shpak <alex-shpak@users.noreply.github.com>2018-11-25 13:30:25 +0100
committerAlex Shpak <alex-shpak@users.noreply.github.com>2018-11-25 13:30:25 +0100
commit76c251066fd34a26734bf1acdb1e041881e1c0af (patch)
treec332d7ae2bf0e45087fdcc33784dc99de9bcc98b /assets
parent461aafe99569a93838f823729aaf8d51fa693aaf (diff)
Refactor templates and partials
Diffstat (limited to 'assets')
-rw-r--r--assets/_utils.scss16
-rw-r--r--assets/book.scss8
2 files changed, 14 insertions, 10 deletions
diff --git a/assets/_utils.scss b/assets/_utils.scss
index fd773d3..bb0120c 100644
--- a/assets/_utils.scss
+++ b/assets/_utils.scss
@@ -26,6 +26,10 @@
margin: 0 auto;
}
+.hide {
+ display: none;
+}
+
@mixin fixed {
position: fixed;
top: 0;
@@ -34,6 +38,12 @@
overflow-y: auto;
}
-.hide {
- display: none;
-}
+@mixin dark-links {
+ a {
+ color: $nav-link-color;
+ }
+
+ a.active {
+ color: $color-link;
+ }
+} \ No newline at end of file
diff --git a/assets/book.scss b/assets/book.scss
index d476111..2032466 100644
--- a/assets/book.scss
+++ b/assets/book.scss
@@ -103,13 +103,7 @@ ul.pagination {
@include fixed;
}
- a {
- color: $nav-link-color;
- }
-
- a.active {
- color: $color-link;
- }
+ @include dark-links;
}
.book-page {