Skip to content

Commit 8dda47b

Browse files
fix: Add back missing margin for paragraphs in booking providers (#367)
In booking providers, each section has it's own paragraph. The CSS rule removed the margin for these paragraphs as it was the last element in relation to the parent. This leads to missing margins, here in the example between the text and the Reservations heading: <img width="827" height="198" alt="image" src="https://github.com/user-attachments/assets/20cdb1e4-fc76-44b7-9ac6-b8481ea45a6a" /> After the change: <img width="826" height="211" alt="image" src="https://github.com/user-attachments/assets/f78956da-06e0-4dd1-b4b1-98e191b7e66c" /> --------- Co-authored-by: Robert Schuster <77234379+therobrob@users.noreply.github.com>
1 parent e5666bd commit 8dda47b

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

assets/sass/content.scss

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ td {
7171
.footnotes {
7272
p {
7373
text-align: left;
74+
margin-bottom: 0;
7475
}
7576

7677
hr {
@@ -80,14 +81,15 @@ td {
8081
ol {
8182
padding-left: 2rem;
8283
list-style-position: outside;
84+
margin-bottom: 0;
8385
}
8486
}
8587

8688
p:has(+ span) {
8789
margin-bottom: 0;
8890
}
8991

90-
article p:last-child,
91-
section p:last-child {
92+
.o-single__content > *:last-child,
93+
.o-single__container > *:last-child {
9294
margin-bottom: 0;
9395
}

layouts/country/single.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ <h1 data-pagefind-meta="title">{{ .Title }}</h1>
1414
{{ partial "updateDate.html" . }}
1515
</div>
1616

17-
<div data-pagefind-weight="2">
17+
<div class="o-single__content" data-pagefind-weight="2">
1818
{{ partial "content" . }}
1919
</div>
2020
</div>

layouts/news/single.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ <h1 data-pagefind-meta="title">{{ .Title }}</h1>
4141
<div class="o-single__news-image">
4242
{{ partial "image" (partial "helper/contentImage" .) }}
4343
</div>
44-
<div data-pagefind-body>
44+
<div data-pagefind-body class="o-single__content">
4545
{{ .Content }}
4646
</div>
4747
</div>

layouts/operator/single.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ <h1 data-pagefind-meta="title">{{ .Title }}</h1>
1010
</div>
1111
{{ partial "updateDate.html" . }}
1212
</div>
13-
<div data-pagefind-weight="2.5">
13+
<div class="o-single__content" data-pagefind-weight="2.5">
1414
{{ partial "content" . }}
1515
</div>
1616
</div>

0 commit comments

Comments
 (0)