aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxxKeefer <xxkeefer.code@gmail.com>2024-04-27 01:35:11 +1000
committerLouis Pilfold <louis@lpil.uk>2024-05-01 13:16:23 +0100
commit7c6ab9b26a9c43be71ee71bfd58434be9c3c0d69 (patch)
tree82a8fab265c7c35bdb58a1beabe2fcdcd8b55779
parenta725d216effa4f682f8bb7fdd72e1b060721d296 (diff)
downloadtour-7c6ab9b26a9c43be71ee71bfd58434be9c3c0d69.tar.gz
tour-7c6ab9b26a9c43be71ee71bfd58434be9c3c0d69.zip
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
-rw-r--r--static/css/pages/everything.css16
1 files 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