Skip to content

Commit 9240094

Browse files
authored
Merge branch 'main' into 75-add-page-to-describe-the-hotnat-process
2 parents e1ab607 + b38510a commit 9240094

174 files changed

Lines changed: 2733 additions & 422 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ repos:
2121
- id: check-toml
2222
- id: check-vcs-permalinks
2323
- id: check-xml
24-
exclude: "^layouts/_default/rss.xml$"
24+
exclude: "^layouts/.*rss\\.xml$"
2525
- id: check-yaml
2626
exclude: "validity.yaml$"
2727
- id: debug-statements

assets/content-not-available-yet.json

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -14,24 +14,9 @@
1414
"EN": "Hungary",
1515
"FR": "Hongrie"
1616
},
17-
{
18-
"DE": "Kosovo",
19-
"EN": "Kosovo",
20-
"FR": "Kosovo"
21-
},
2217
{
2318
"DE": "Nord-Mazedonien",
2419
"EN": "North Macedonia",
2520
"FR": "Macédoine du Nord"
26-
},
27-
{
28-
"DE": "Serbien",
29-
"EN": "Serbia",
30-
"FR": "Serbie"
31-
},
32-
{
33-
"DE": "Slowenien",
34-
"EN": "Slovakia",
35-
"FR": "Slovaquie"
3621
}
3722
]

assets/images/logos/sv.svg

Lines changed: 3 additions & 0 deletions
Loading

assets/js/expander.js

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,22 @@
11
function expandTargetedExpander() {
2+
// By default, the browser will only open the dialog
3+
// if the targeted element is within the dialog content,
4+
// not the summary. This extends the behavior to open the dialog
5+
// if the targeted element is within the summary.
6+
27
const hash = window.location.hash;
38
if (!hash) return;
49

510
const targetElement = document.getElementById(hash.substring(1));
11+
if (!targetElement) return;
12+
13+
const summary = targetElement.closest("summary");
14+
if (!summary) return;
15+
16+
const details = summary.closest("details");
617

7-
if (targetElement && targetElement.tagName === "DETAILS") {
8-
targetElement.open = true;
18+
if (details && !details.open) {
19+
details.open = true;
920
}
1021
}
1122

assets/sass/_variables.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ $highlight-colors-dark: (
5757
);
5858

5959
:root {
60+
color-scheme: light;
6061
--font-family: "Roboto", Arial, Helvetica, sans-serif;
6162

6263
--link-default: #{$link-default};
@@ -138,6 +139,7 @@ $highlight-colors-dark: (
138139

139140
:root[data-theme="dark"] {
140141
@media screen {
142+
color-scheme: dark;
141143
--link-default: #ff6b3d;
142144
--link-hovered: #ff8a5b;
143145
--link-special: #ffffff;

assets/sass/booking.scss

Lines changed: 20 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,6 @@
4646
font-weight: 600;
4747
}
4848

49-
.o-booking__title-text {
50-
line-height: 1.1;
51-
}
52-
5349
.o-booking__subtitle {
5450
font-weight: 400;
5551
font-size: 1.4rem;
@@ -61,6 +57,10 @@
6157
gap: 0.6rem;
6258
margin-top: 0.4rem;
6359

60+
&:empty {
61+
margin-top: 0;
62+
}
63+
6464
@media (max-width: #{$breakpoint-md}) {
6565
&:empty {
6666
display: none;
@@ -86,18 +86,24 @@
8686
}
8787
}
8888

89-
@mixin booking_section($name) {
90-
&-#{$name}--hidden &-#{$name} {
91-
display: none;
92-
}
89+
.o-booking__info {
90+
margin-bottom: 1.5rem;
9391
}
9492

95-
.o-booking__section {
96-
@include booking_section("fip_50");
97-
@include booking_section("fip_global_fare");
98-
@include booking_section("reservations");
93+
.o-booking__sections > .o-booking__section:not(:first-child) {
94+
margin-top: 1rem;
9995
}
10096

101-
.o-booking__info {
102-
margin-bottom: 1.5rem;
97+
.o-booking__content {
98+
h4 {
99+
@extend %h3;
100+
}
101+
102+
h5 {
103+
@extend %h4;
104+
}
105+
106+
h6 {
107+
@extend %h5;
108+
}
103109
}

assets/sass/button.scss

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
button {
2+
border-radius: var(--border-radius-s);
3+
@include focus-indicator(0.2rem);
4+
5+
&:not(:disabled) {
6+
cursor: pointer;
7+
}
8+
}
9+
110
.a-button {
211
padding: 1rem;
312
display: inline-flex;
@@ -13,6 +22,7 @@
1322
background: transparent;
1423
color: var(--body-color);
1524
width: fit-content;
25+
border: 0.2rem solid var(--link-default);
1626

1727
&:hover,
1828
&:focus {
@@ -26,10 +36,6 @@
2636
display: block;
2737
}
2838

29-
&__external {
30-
border: 0.2rem solid var(--link-default);
31-
}
32-
3339
&__internal {
3440
border: none;
3541
}

assets/sass/contentNavigation.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,8 @@
189189
&__header {
190190
display: flex;
191191
align-items: center;
192+
justify-content: space-between;
192193
flex-direction: column;
193-
gap: 1.5rem;
194194
width: 100%;
195195
border-top: var(--border);
196196
border-bottom: 1px solid #3d444d;

assets/sass/dialog.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,5 +66,9 @@
6666
> *:last-child {
6767
margin-bottom: 0;
6868
}
69+
70+
> :first-child {
71+
margin-top: 0;
72+
}
6973
}
7074
}

assets/sass/dropdown.scss

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@
2020
}
2121
}
2222

23+
@position-try --dropdown-align-right {
24+
left: auto;
25+
right: 1rem;
26+
}
27+
2328
.o-dropdown {
2429
position: relative;
2530

@@ -112,7 +117,8 @@
112117
&__menu {
113118
z-index: 20;
114119
display: none;
115-
position: absolute;
120+
position: fixed;
121+
position-try-fallbacks: --dropdown-align-right;
116122
background: var(--bg-default);
117123
border-radius: var(--border-radius-m);
118124
list-style: none;
@@ -123,23 +129,29 @@
123129
border: var(--border-visible);
124130
animation-duration: 0.2s;
125131
animation-timing-function: ease;
132+
max-height: 20rem;
133+
overflow-y: auto;
126134

127135
&--above {
128-
bottom: 100%;
129-
top: auto;
136+
bottom: anchor(top);
130137
animation-name: dropdown-open-above;
131138
margin-bottom: 0.5rem;
132139
}
133140

134141
&--below {
135-
top: 100%;
136-
bottom: auto;
142+
top: anchor(bottom);
137143
animation-name: dropdown-open-below;
138144
margin-top: 0.5rem;
139145
}
140146

141147
&--right {
142-
right: 0;
148+
right: anchor(right);
149+
left: auto;
150+
}
151+
152+
&--left {
153+
left: anchor(left);
154+
right: auto;
143155
}
144156
}
145157
}

0 commit comments

Comments
 (0)