From 76c251066fd34a26734bf1acdb1e041881e1c0af Mon Sep 17 00:00:00 2001 From: Alex Shpak Date: Sun, 25 Nov 2018 13:30:25 +0100 Subject: Refactor templates and partials --- assets/_utils.scss | 16 +++++++++++++--- assets/book.scss | 8 +------- 2 files changed, 14 insertions(+), 10 deletions(-) (limited to 'assets') 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 { -- cgit v1.2.3