#94, Show toc at top of printing page

This commit is contained in:
Alex Shpak 2019-11-08 23:42:15 +01:00
parent 1c65dac6ce
commit 1af0e0a18b
3 changed files with 21 additions and 7 deletions

View File

@ -294,10 +294,3 @@ aside nav,
padding: $padding-16 * 2 $padding-16;
}
}
// Printing styles
@media print {
.book-menu, .book-toc, .book-footer {
display: none;
}
}

20
assets/_print.scss Normal file
View File

@ -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;
}
}
}

View File

@ -5,6 +5,7 @@
@import "utils";
@import "main";
@import "fonts";
@import "print";
@import "markdown";
@import "shortcodes";