mirror of
https://github.com/alex-shpak/hugo-book.git
synced 2024-11-22 03:19:25 +00:00
#94, Show toc at top of printing page
This commit is contained in:
parent
1c65dac6ce
commit
1af0e0a18b
@ -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
20
assets/_print.scss
Normal 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;
|
||||
}
|
||||
}
|
||||
}
|
@ -5,6 +5,7 @@
|
||||
@import "utils";
|
||||
@import "main";
|
||||
@import "fonts";
|
||||
@import "print";
|
||||
|
||||
@import "markdown";
|
||||
@import "shortcodes";
|
||||
|
Loading…
Reference in New Issue
Block a user