Make the list of rooms mobile aware

This commit is contained in:
2024-01-07 14:18:17 +01:00
parent 46aa612ed5
commit 8d41136787
5 changed files with 39 additions and 4 deletions

View File

@@ -612,6 +612,27 @@ h1 {
max-width: 100%;
}
.room {
.image {
max-width: 70%;
}
@include media-large() {
display: flex;
align-items: start;
.image {
flex: 50% 0 1;
}
.address {
margin-left: 10px;
}
p {
margin: 0;
}
}
}
:root {
--color-vhvorne: #ddcb55;
--color-vhmitte: #c98879;

View File

@@ -0,0 +1 @@
<div class="address">{{ .Inner }}</div>

View File

@@ -0,0 +1,4 @@
<div class="image">
{{ $resource := .Page.Resources.GetMatch (.Get "image") }}
<img src="{{ $resource.RelPermalink}} ">
</div>

View File

@@ -0,0 +1 @@
<div class="room">{{ .Inner }}</div>