diff --git a/assets/sass/expander.scss b/assets/sass/expander.scss index f786eb3f..07892387 100644 --- a/assets/sass/expander.scss +++ b/assets/sass/expander.scss @@ -8,6 +8,10 @@ summary { } } +.details-print { + display: none; +} + details { position: relative; padding: 1.2rem; @@ -24,8 +28,8 @@ details > summary { list-style-type: none; } -details > div, -summary { +.details-screen > div, +.details-screen > summary { margin-left: 3.2rem; } @@ -41,7 +45,7 @@ details > summary::-webkit-details-marker { display: none; } -summary::before { +.details-screen > summary::before { content: "add"; position: absolute; left: 1.2rem; @@ -49,7 +53,7 @@ summary::before { @extend .material-symbols-rounded } -details[open] > summary::before { +.details-screen[open] > summary::before { content: "remove"; font-size: 2.4rem; @extend .material-symbols-rounded @@ -58,3 +62,16 @@ details[open] > summary::before { details[open] > summary { font-weight: 700; } + + +@media print { + .details-screen { + display: none; + } + + .details-print { + border: solid; + page-break-inside: avoid; + display: block; + } +} diff --git a/assets/sass/main.scss b/assets/sass/main.scss index b31c2dbe..0fd6753a 100644 --- a/assets/sass/main.scss +++ b/assets/sass/main.scss @@ -13,3 +13,4 @@ @import "form.scss"; @import "expander.scss"; @import "anchorlink.scss"; +@import "print.scss" diff --git a/assets/sass/print.scss b/assets/sass/print.scss new file mode 100644 index 00000000..ce66a817 --- /dev/null +++ b/assets/sass/print.scss @@ -0,0 +1,50 @@ +@media print { + body { margin: 1.6cm; } + + a { + text-decoration: none; + color: var(--bs-body-color); + } + + a:not(.m-teaser) { + color: var(--bs-body-color); + } + + .a-anchorlink::before { + margin: 0; + } + + p { + margin-bottom: 1rem; + } + + main > .container.o-single, + main > .container.o-list { + margin-top: 0; + } + + .o-single__container, + .container, + main > .container { + padding: 0; + } + + .a-anchorlink__link, + picture, + .icon-arrow_outward, + .sidemenu, + .o-list__picture, + .o-header__wrapper, + .o-footer__links, + .footnote-backref, + summary::before, + #search { + display: none; + } + + details[open]::details-content { display: contents; } + + a:not(.footnote-ref):not(.updateDate)::after { + content: " (" attr(href) ") "; + } +} diff --git a/content/country/denmark/index.de.md b/content/country/denmark/index.de.md index 1e0cd6cb..9272c51b 100644 --- a/content/country/denmark/index.de.md +++ b/content/country/denmark/index.de.md @@ -7,7 +7,7 @@ country: "denmark" ## FIP Nutzung -In Dänemark ist es möglich quer durch das Land auf den Hauptstrecken mit FIP 50 und FIP Freifahrtsscheinen unterwegs zu sein. Die Danske Statsbaner (DSB) [DSB]({{< ref "/operator/dsb" >}} "DSB") betreibt ein durchgehendes Netz, von denen einige Nebenstrecken abgehen, die in den meisten Fällen von privaten Bahngesellschaften (z. B. GoCollective) betrieben werden. Auf diesen wird FIP nicht anerkannt. Auch für die durch Dänemark verkehrenden Nachtzüge der Betreiber SJ und Snälltåget sind keine FIP-Vergünstigungen möglich. Ebenfalls betroffen sind die Verbindungen, die von Kopenhagen aus in Richtung Schweden verkehren. +In Dänemark ist es möglich quer durch das Land auf den Hauptstrecken mit FIP 50 und FIP Freifahrtsscheinen unterwegs zu sein. Die Danske Statsbaner ([DSB]({{< ref "/operator/dsb" >}} "DSB")) betreibt ein durchgehendes Netz, von denen einige Nebenstrecken abgehen, die in den meisten Fällen von privaten Bahngesellschaften (z. B. GoCollective) betrieben werden. Auf diesen wird FIP nicht anerkannt. Auch für die durch Dänemark verkehrenden Nachtzüge der Betreiber SJ und Snälltåget sind keine FIP-Vergünstigungen möglich. Ebenfalls betroffen sind die Verbindungen, die von Kopenhagen aus in Richtung Schweden verkehren. ## Wissenswertes diff --git a/content/country/denmark/index.en.md b/content/country/denmark/index.en.md index 072e4007..aaf11d83 100644 --- a/content/country/denmark/index.en.md +++ b/content/country/denmark/index.en.md @@ -7,7 +7,7 @@ country: "denmark" ## FIP Usage -In Denmark, it is possible to travel across the country on main routes using FIP 50 and FIP Coupon. The Danske Statsbaner (DSB) [DSB]({{< ref "/operator/dsb" >}} "DSB") operates a continuous network, with some branch lines operated by private railway companies (e.g., GoCollective) where FIP is not accepted. FIP discounts are also not available for night trains passing through Denmark operated by SJ and Snälltåget. Connections from Copenhagen towards Sweden are similarly excluded. +In Denmark, it is possible to travel across the country on main routes using FIP 50 and FIP Coupon. The Danske Statsbaner ([DSB]({{< ref "/operator/dsb" >}} "DSB")) operates a continuous network, with some branch lines operated by private railway companies (e.g., GoCollective) where FIP is not accepted. FIP discounts are also not available for night trains passing through Denmark operated by SJ and Snälltåget. Connections from Copenhagen towards Sweden are similarly excluded. ## Interesting diff --git a/layouts/country/single.html b/layouts/country/single.html index 6ee6b956..dc6823c3 100644 --- a/layouts/country/single.html +++ b/layouts/country/single.html @@ -4,7 +4,7 @@