From 7c6ab9b26a9c43be71ee71bfd58434be9c3c0d69 Mon Sep 17 00:00:00 2001 From: xxKeefer Date: Sat, 27 Apr 2024 01:35:11 +1000 Subject: fix: :bug: update page break css rules turns out break-inisde and break-before have supercede the older page-* rules, also improved support for firefox --- static/css/pages/everything.css | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/static/css/pages/everything.css b/static/css/pages/everything.css index 6eafaa5..2b5544b 100644 --- a/static/css/pages/everything.css +++ b/static/css/pages/everything.css @@ -314,7 +314,7 @@ h3 { @media print { #everything-contents { - display: none !important; + display: none; } .navbar { @@ -323,19 +323,25 @@ h3 { main#everything { max-height: unset; - overflow: visible; + overflow: visible !important; } #everything-lessons { - max-height: unset !important; + max-height: unset; + overflow: visible !important; h3.chapter-title:not(:first-child) { - page-break-before: always; + break-before: always; } article.lesson:not(hr.chapter-separator + article.lesson) { - page-break-inside: avoid; + break-inside: avoid; } } + + /* for FireFox */ + * { + overflow: visible !important; + } } \ No newline at end of file -- cgit v1.2.3