Skip to content

Commit fac9308

Browse files
committed
feat: Add mobile support for booking snippets
1 parent ffff6b9 commit fac9308

File tree

2 files changed

+22
-12
lines changed

2 files changed

+22
-12
lines changed

assets/sass/booking.scss

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@
44
gap: 2rem;
55
width: 100%;
66
align-content: center;
7+
8+
@media (max-width: #{$breakpoint-md}) {
9+
display: flex;
10+
flex-direction: column;;
11+
gap: 1rem;
12+
align-content: start;
13+
}
714
}
815

916
.o-booking__header {
@@ -21,9 +28,17 @@
2128
}
2229

2330
.o-booking__classes {
31+
display: flex;
32+
align-items: center;
33+
justify-content: center;
34+
flex-direction: column;
2435
> p {
2536
margin-bottom: 0rem;
2637
}
38+
39+
@media (max-width: #{$breakpoint-md}) {
40+
align-items: start;
41+
}
2742
}
2843

2944
.o-booking__title-wrapper {
@@ -45,17 +60,14 @@
4560
font-size: 1.4rem;
4661
}
4762

48-
.o-booking__header-last-column {
49-
display: flex;
50-
align-items: center;
51-
justify-content: center;
52-
gap: 1rem;
53-
}
54-
5563
.o-booking__meta{
5664
text-align: center;
5765
display: flex;
5866
flex-direction: column;
5967
align-items: center;
6068
justify-content: center;
69+
70+
@media (max-width: #{$breakpoint-md}) {
71+
align-items: start;
72+
}
6173
}

layouts/shortcodes/booking.html

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,16 @@
1818
</div>
1919
</div>
2020
<div class="o-booking__meta">
21-
{{ if ne $reservations "nil" }}{{ T "booking.reservation" }} {{ if $reservations }}✅{{ else }}⛔{{ end }}{{ end }}
22-
{{ if ne $fip_50 "nil" }}{{ T "booking.fip-50" }} {{ if $fip_50 }}✅{{ else }}⛔{{ end }}{{ end }}
23-
{{ if ne $fip_global_fare "nil" }}{{ T "booking.fip-global-fare" }} {{ if $fip_global_fare }}✅{{ else }}⛔{{ end }}{{ end }}
21+
{{ if ne $reservations "nil" }}<div>{{ T "booking.reservation" }} {{ if $reservations }}✅{{ else }}⛔{{ end }}</div>{{ end }}
22+
{{ if ne $fip_50 "nil" }}<div>{{ T "booking.fip-50" }} {{ if $fip_50 }}✅{{ else }}⛔{{ end }}</div>{{ end }}
23+
{{ if ne $fip_global_fare "nil" }}<div>{{ T "booking.fip-global-fare" }} {{ if $fip_global_fare }}✅{{ else }}⛔{{ end }}</div>{{ end }}
2424
</div>
25-
<div class="o-booking__header-last-column">
2625
<div class="o-booking__classes">
2726
{{ range $k, $v := .Params.classes }}
2827
<strong>{{ T (print "booking.classes." $k) }}:</strong> {{ $v }}
2928
{{ end }}
3029
</div>
3130
</div>
32-
</div>
3331
<div class="o-booking__header-actions">
3432
{{ partial "icon" "arrow_drop_down" }}
3533
</div>

0 commit comments

Comments
 (0)