From bce8940c62f04770222354921f0274a1986ab100 Mon Sep 17 00:00:00 2001 From: Shane Liesegang Date: Fri, 17 Jan 2020 14:32:36 -0500 Subject: [PATCH] Removing flex from
for sake of print layout (#129) * Removing flex from
for sake of print layout * trimming excess whitespace --- assets/_main.scss | 6 +++++- assets/_print.scss | 2 +- layouts/_default/baseof.html | 11 +++++------ 3 files changed, 11 insertions(+), 8 deletions(-) diff --git a/assets/_main.scss b/assets/_main.scss index b7a64fc..bf60a18 100644 --- a/assets/_main.scss +++ b/assets/_main.scss @@ -47,6 +47,11 @@ img { vertical-align: baseline; } +main { + display: flex; + flex-direction: row-reverse; +} + aside nav ul { padding: 0; margin: 0; @@ -315,7 +320,6 @@ aside nav, display: flex; } - #menu-control:checked ~ main { .book-menu #BookMenu, .book-page { diff --git a/assets/_print.scss b/assets/_print.scss index 387b4ff..6acd75e 100644 --- a/assets/_print.scss +++ b/assets/_print.scss @@ -5,7 +5,7 @@ } main { - flex-direction: column-reverse; + display: block; } .book-toc { diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 0d28f76..a2eb80e 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -9,11 +9,8 @@ -
- - +
+ {{ template "toc" . }}
{{ partial "docs/mobile-header" . }} @@ -22,7 +19,9 @@ {{ partial "docs/inject/footer" . }}
- {{ template "toc" . }} +
{{ partial "docs/inject/body" . }}