diff options
author | Alex Shpak <alex-shpak@users.noreply.github.com> | 2019-11-08 23:42:15 +0100 |
---|---|---|
committer | Alex Shpak <alex-shpak@users.noreply.github.com> | 2019-11-08 23:42:15 +0100 |
commit | 1af0e0a18be55bdd38bf715ca612ea4acb2bdcad (patch) | |
tree | f4da19485840cbf8d57604cf39865ea81ae6fe62 /assets | |
parent | 1c65dac6ce2cb1e40f5c9564f28c6ce4033ca124 (diff) |
#94, Show toc at top of printing page
Diffstat (limited to 'assets')
-rw-r--r-- | assets/_main.scss | 7 | ||||
-rw-r--r-- | assets/_print.scss | 20 | ||||
-rw-r--r-- | assets/book.scss | 1 |
3 files changed, 21 insertions, 7 deletions
diff --git a/assets/_main.scss b/assets/_main.scss index a3dc2c1..3cfb66d 100644 --- a/assets/_main.scss +++ b/assets/_main.scss @@ -294,10 +294,3 @@ aside nav, padding: $padding-16 * 2 $padding-16; } } - -// Printing styles -@media print { - .book-menu, .book-toc, .book-footer { - display: none; - } -} diff --git a/assets/_print.scss b/assets/_print.scss new file mode 100644 index 0000000..fca8312 --- /dev/null +++ b/assets/_print.scss @@ -0,0 +1,20 @@ +// Printing styles +@media print { + .book-menu, + .book-footer { + display: none; + } + + main { + flex-direction: column-reverse; + } + + .book-toc { + flex: none; + + nav { + position: relative; + width: auto; + } + } +} diff --git a/assets/book.scss b/assets/book.scss index 529c908..68f6318 100644 --- a/assets/book.scss +++ b/assets/book.scss @@ -5,6 +5,7 @@ @import "utils"; @import "main"; @import "fonts"; +@import "print"; @import "markdown"; @import "shortcodes"; |