From c1895a915c479c49d180f8d134a9c96eee0bbdb5 Mon Sep 17 00:00:00 2001 From: Robert Schuster Date: Wed, 5 Mar 2025 17:29:54 +0100 Subject: [PATCH 01/16] feature: news styling --- assets/sass/teaser.scss | 10 ++++++++++ layouts/_default/list.html | 16 ++++++++-------- layouts/_default/single.html | 2 +- layouts/country/single.html | 2 +- layouts/operator/single.html | 2 +- 5 files changed, 21 insertions(+), 11 deletions(-) diff --git a/assets/sass/teaser.scss b/assets/sass/teaser.scss index b1665a81..e64e5f8e 100644 --- a/assets/sass/teaser.scss +++ b/assets/sass/teaser.scss @@ -9,6 +9,16 @@ } } +.m-teaser--listview { + margin-bottom: 2.4rem; +} + +.m-teaser__headline { + color: #ec0016; + text-decoration: underline; + +} + .m-teaser img { width: 100%; aspect-ratio: 16/9; diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 33a33a5b..5820d63c 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -1,13 +1,13 @@ {{ define "main" }} -
-

{{ .Title }}

- {{ .Content }} {{ range .Pages }} -
- -

{{ .LinkTitle }}

+
{{ end }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 58b6ef4f..8400b6e0 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,5 +1,5 @@ {{ define "main" }} -
+

{{ .Title }}

{{ $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00" }} diff --git a/layouts/country/single.html b/layouts/country/single.html index 09c7c5fa..92abfe30 100644 --- a/layouts/country/single.html +++ b/layouts/country/single.html @@ -1,5 +1,5 @@ {{ define "main" }} -
+

{{ .Title }}

{{ $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00" }} diff --git a/layouts/operator/single.html b/layouts/operator/single.html index 19a1905d..69a6304c 100644 --- a/layouts/operator/single.html +++ b/layouts/operator/single.html @@ -1,5 +1,5 @@ {{ define "main" }} -
+

{{ .Title }}

{{ $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00" }} From fa831fc6c93c4076c6bfdc77c298f5e7f085a2b5 Mon Sep 17 00:00:00 2001 From: Robert Schuster Date: Wed, 5 Mar 2025 17:30:37 +0100 Subject: [PATCH 02/16] feature: news styling --- layouts/operator/single.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/operator/single.html b/layouts/operator/single.html index 69a6304c..d2f366f5 100644 --- a/layouts/operator/single.html +++ b/layouts/operator/single.html @@ -26,5 +26,5 @@

See Also

{{ end }} {{ partial "terms.html" (dict "taxonomy" "tags" "page" .) }} -
+ {{ end }} \ No newline at end of file From 9253ceb66728a6cbc10c86bd17ebe6dbc4713a29 Mon Sep 17 00:00:00 2001 From: Robert Schuster Date: Wed, 5 Mar 2025 17:40:30 +0100 Subject: [PATCH 03/16] feature: general styling --- assets/sass/content.scss | 2 +- assets/sass/headings.scss | 10 +++++++--- assets/sass/styles.scss | 4 ++-- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/assets/sass/content.scss b/assets/sass/content.scss index 1216e81b..5be5b974 100644 --- a/assets/sass/content.scss +++ b/assets/sass/content.scss @@ -1,4 +1,4 @@ .updateDate { font-size: 1.3rem; - margin-bottom: 5px; + margin-bottom: 1.6rem; } \ No newline at end of file diff --git a/assets/sass/headings.scss b/assets/sass/headings.scss index ef8e86ff..f65a94f1 100644 --- a/assets/sass/headings.scss +++ b/assets/sass/headings.scss @@ -8,20 +8,24 @@ h1 { h2 { font-size: 2.4rem; line-height: 1.25; - margin-bottom: 1.6rem; + margin-bottom: 1.2rem; font-weight: 700; } h3 { font-size: 2rem; line-height: 1.25; - margin-bottom: 1.4rem; + margin-bottom: 1rem; font-weight: 700; } h4 { font-size: 1.8rem; line-height: 1.25; - margin-bottom: 1.2rem; + margin-bottom: 1rem; font-weight: 700; +} + +h2:has(+ .updateDate) { + margin-bottom: .4rem; } \ No newline at end of file diff --git a/assets/sass/styles.scss b/assets/sass/styles.scss index 9d1314d9..a94451c5 100644 --- a/assets/sass/styles.scss +++ b/assets/sass/styles.scss @@ -75,8 +75,8 @@ p { margin-bottom: 3.2rem; } -p:has(p + ul) { - margin-bottom: 0; +p:has( + ul) { + margin-bottom: 1rem; } article p:last-child { From fad51c075e75b574527b099fd67394ee9596109c Mon Sep 17 00:00:00 2001 From: Robert Schuster Date: Wed, 5 Mar 2025 17:45:29 +0100 Subject: [PATCH 04/16] fix: localization --- i18n/de.yaml | 1 + i18n/en.yaml | 1 + layouts/_default/home.html | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/i18n/de.yaml b/i18n/de.yaml index b54f4406..4df186a5 100644 --- a/i18n/de.yaml +++ b/i18n/de.yaml @@ -15,3 +15,4 @@ information-disclaimer-short: Diese Informationen sind inoffiziell und ohne Gew highlight-important: Wichtige Information highlight-inofficial: Inoffizielle Information highlight-tip: Persönlicher Tipp +news-headline: Was gibt's neues? diff --git a/i18n/en.yaml b/i18n/en.yaml index 05f723eb..4f43a296 100644 --- a/i18n/en.yaml +++ b/i18n/en.yaml @@ -15,3 +15,4 @@ information-disclaimer-short: The information provided is unofficial and without highlight-important: Important Information highlight-inofficial: Unofficial Information highlight-tip: Personal Tip +news-headline: What's new? diff --git a/layouts/_default/home.html b/layouts/_default/home.html index ac2f320a..e5612e34 100644 --- a/layouts/_default/home.html +++ b/layouts/_default/home.html @@ -6,7 +6,7 @@
-

Die neuesten Neuigkeiten đŸ”„

+

{{ T "news-headline"}}

{{ range first 3 (where site.RegularPages "Section" "news") }} {{ partial "teaser.html" . }} {{ end }} From 585b58b22282fdd5188d3e91b566f2c8140151a9 Mon Sep 17 00:00:00 2001 From: Robert Schuster Date: Wed, 5 Mar 2025 18:03:02 +0100 Subject: [PATCH 05/16] fix: footer-styling --- assets/sass/footer.scss | 18 ++++++++++++++---- layouts/partials/footer.html | 34 +++++++++++++++++++--------------- 2 files changed, 33 insertions(+), 19 deletions(-) diff --git a/assets/sass/footer.scss b/assets/sass/footer.scss index 3f760d58..3693411b 100644 --- a/assets/sass/footer.scss +++ b/assets/sass/footer.scss @@ -3,11 +3,21 @@ margin-bottom: 2rem; } -.o-footer div { +.o-footer__links { display: flex; - justify-content: flex-end; + justify-content: normal; + + @include media-breakpoint-up(md) { + justify-content: flex-end; + } } .o-footer__link { - margin-left: 1.6rem; -} \ No newline at end of file + margin-left: 0; + margin-right: 1.6rem; + + @include media-breakpoint-up(md) { + margin-left: 1.6rem; + margin-right: 0; + } +} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index f949cc46..d84e1156 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,18 +1,22 @@