Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 21 additions & 4 deletions assets/sass/expander.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ summary {
}
}

.details-print {
display: none;
}

details {
position: relative;
padding: 1.2rem;
Expand All @@ -24,8 +28,8 @@ details > summary {
list-style-type: none;
}

details > div,
summary {
.details-screen > div,
.details-screen > summary {
margin-left: 3.2rem;
}

Expand All @@ -41,15 +45,15 @@ details > summary::-webkit-details-marker {
display: none;
}

summary::before {
.details-screen > summary::before {
content: "add";
position: absolute;
left: 1.2rem;
font-size: 2.4rem;
@extend .material-symbols-rounded
}

details[open] > summary::before {
.details-screen[open] > summary::before {
content: "remove";
font-size: 2.4rem;
@extend .material-symbols-rounded
Expand All @@ -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;
}
}
1 change: 1 addition & 0 deletions assets/sass/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@
@import "form.scss";
@import "expander.scss";
@import "anchorlink.scss";
@import "print.scss"
50 changes: 50 additions & 0 deletions assets/sass/print.scss
Original file line number Diff line number Diff line change
@@ -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) ") ";
}
}
2 changes: 1 addition & 1 deletion content/country/denmark/index.de.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion content/country/denmark/index.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion layouts/country/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<div class="curtain" aria-hidden="true"></div>
<article class="container o-single o-single--with-sidemenu">
<div class="row">
<div class="col-12 col-lg-4">
<div class="col-12 col-lg-4 sidemenu">
{{ partial "sidemenu.html" . }}
</div>

Expand Down
2 changes: 1 addition & 1 deletion layouts/operator/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div class="curtain" aria-hidden="true"></div>
<article class="container o-single o-single--with-sidemenu">
<div class="row">
<div class="col-12 col-lg-4">
<div class="col-12 col-lg-4 sidemenu">
{{ partial "sidemenu.html" . }}
</div>

Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
{{ $options := (dict "targetPath" "css/styles.css" "outputStyle" "compressed") }}
{{ with resources.Get "sass/main.scss" }}
{{ $style := (resources.ExecuteAsTemplate "sass/main_templated.scss" $ .) | toCSS $options | minify }}
<link rel="stylesheet" href="{{ $style.RelPermalink }}" media="screen" rel="preload" as="style" />
<link rel="stylesheet" href="{{ $style.RelPermalink }}" rel="preload" as="style" />
{{ end }}
{{ if .IsHome }}
<link rel="stylesheet" href="/pagefind/pagefind-ui.css">
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/icon.html
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
<span data-pagefind-ignore="all" class="material-symbols-rounded" aria-hidden="true">{{ . }}</span>
<span data-pagefind-ignore="all" class="material-symbols-rounded icon-{{ . }}" aria-hidden="true">{{ . }}</span>
{{- /* Needed, otherwise links break: https://github.com/fipguide/fipguide.github.io/issues/116 */ -}}
16 changes: 15 additions & 1 deletion layouts/shortcodes/expander.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,18 @@
<details name="{{ (.Get 1) }}">
<details name="{{ (.Get 1) }}" class="details-screen">
<summary>
{{ (.Get 0) }}
</summary>
<div>
{{ .Inner }}
</div>
</details>

<!--
Workaround for print version, otherwise the expanders would be closed.
The workaround can be removed when the following issue is implemented:
https://github.com/w3c/csswg-drafts/issues/2084
-->
<details open class="details-print">
<summary>
{{ (.Get 0) }}
</summary>
Expand Down
Loading