diff options
author | xxKeefer <xxkeefer.code@gmail.com> | 2024-04-26 22:50:19 +1000 |
---|---|---|
committer | Louis Pilfold <louis@lpil.uk> | 2024-05-01 13:16:23 +0100 |
commit | a725d216effa4f682f8bb7fdd72e1b060721d296 (patch) | |
tree | 0981aa1ef19a9ee9d4df400b6215bec6c678ecbc /static/css | |
parent | 29ea1110ae1231d472bc9a30c43010d4e17299a1 (diff) | |
download | tour-a725d216effa4f682f8bb7fdd72e1b060721d296.tar.gz tour-a725d216effa4f682f8bb7fdd72e1b060721d296.zip |
feat: :lipstick: adds css print media rules
for /everything page of the tour to be printed as a multi page pdf doc
#71
Diffstat (limited to 'static/css')
-rw-r--r-- | static/css/pages/everything.css | 35 |
1 files changed, 31 insertions, 4 deletions
diff --git a/static/css/pages/everything.css b/static/css/pages/everything.css index 8637aaa..6eafaa5 100644 --- a/static/css/pages/everything.css +++ b/static/css/pages/everything.css @@ -255,6 +255,7 @@ h3 { } @container lessons-list (min-width: 900px) { + #everything-lessons .lesson, #everything-lessons .chapter-title { padding-right: var(--gap-quad); @@ -288,15 +289,13 @@ h3 { } @keyframes highlight-block { - 0% { - } + 0% {} 50% { background: var(--color-accent-muted); } - 100% { - } + 100% {} } @keyframes reveal { @@ -312,3 +311,31 @@ h3 { overflow-y: auto; } } + +@media print { + #everything-contents { + display: none !important; + } + + .navbar { + position: unset; + } + + main#everything { + max-height: unset; + overflow: visible; + } + + #everything-lessons { + max-height: unset !important; + + h3.chapter-title:not(:first-child) { + page-break-before: always; + } + + article.lesson:not(hr.chapter-separator + article.lesson) { + page-break-inside: avoid; + } + + } +}
\ No newline at end of file |