diff --git a/assets/sass/navigation.scss b/assets/sass/navigation.scss index f191a26..909d2c7 100644 --- a/assets/sass/navigation.scss +++ b/assets/sass/navigation.scss @@ -14,6 +14,7 @@ .o-header__wrapper { display: flex; justify-content: space-between; + padding: 0; @media (min-width: #{$breakpoint-md}) { justify-content: unset; @@ -56,9 +57,8 @@ .o-header__logo { display: flex; - margin: .6rem; + margin: .6rem 0; position: relative; - left: -1.6rem; text-decoration: none; border-radius: var(--border-radius-m); diff --git a/assets/sass/styles.scss b/assets/sass/styles.scss index 2dce8cc..05f34dd 100644 --- a/assets/sass/styles.scss +++ b/assets/sass/styles.scss @@ -180,11 +180,20 @@ img { } .o-startpage .row { - margin-bottom: 3.2rem; + margin-bottom: 2.4rem; } .o-startpage__intro { text-wrap: balance; + margin-bottom: 2rem; + display: grid; + grid-template-columns: 1fr 1fr; + gap: 2rem; + + @media (max-width: #{$breakpoint-md}) { + display: flex; + flex-direction: column; + } h2 { font-family: Sansita,Arial,Helvetica,sans-serif; @@ -196,4 +205,47 @@ img { > div { align-content: center; } + + @media (max-width: #{$breakpoint-md}) { + h2 { + font-size: 4.8rem; + } + } +} + +.o-startpage__image { + @media (max-width: #{$breakpoint-md}) { + display: none; + } +} + +.o-startpage__shortcut-wrapper { + display: grid; + grid-template-columns: 1fr 1fr 1fr 3fr; + gap: 2rem; + margin-bottom: 2rem; + + @media (max-width: #{$breakpoint-lg}) { + display: flex; + flex-wrap: wrap; + gap: 1rem; + } + +} + +.o-startpage__search { + margin-bottom: 2rem; + width: 100%; +} + +.o-startpage__news-teaser-wrapper { + display: grid; + grid-template-columns: 1fr 1fr 1fr; + gap: 2rem; + + @media (max-width: #{$breakpoint-md}) { + display: flex; + flex-direction: column; + } + } diff --git a/assets/sass/teaser.scss b/assets/sass/teaser.scss index 55a0d65..f4f1037 100644 --- a/assets/sass/teaser.scss +++ b/assets/sass/teaser.scss @@ -10,44 +10,35 @@ border-radius: var(--border-radius-l); display: flex; flex-direction: column; - - &:nth-child(-n+3) { - @media (max-width: #{$breakpoint-lg}) { - margin-bottom: 2rem; - } - } } .m-teaser--listview .m-teaser__wrapper { margin-bottom: 2.4rem; - flex-direction: row; + display: grid; + grid-template-columns: 1fr 2fr; @media (max-width: #{$breakpoint-md}) { + display: flex; flex-direction: column; } - .m-teaser__image { - @media (min-width: #{$breakpoint-md}) { - max-width: 33%; - } - - img { - border-radius: var(--border-radius-l) 0 0 var(--border-radius-l); + .m-teaser__image img { + border-radius: var(--border-radius-l) 0 0 var(--border-radius-l); - @media (max-width: #{$breakpoint-md}) { - border-radius: var(--border-radius-l) var(--border-radius-l) 0 0; - width: 100%; - } + @media (max-width: #{$breakpoint-md}) { + border-radius: var(--border-radius-l) var(--border-radius-l) 0 0; + width: 100%; } } } .m-teaser--shortcut-tile { + flex-basis: calc( 50% - 0.5rem ); + .m-teaser__wrapper { width: 100%; - height: 12rem; - padding: .8rem; - flex-direction: row; + height: 11rem; + padding: 1.4rem; justify-content: space-between; span { @@ -59,16 +50,29 @@ a { h3 { - text-decoration: underline; - align-self: center; + overflow-wrap: normal; + word-break: normal; + white-space: normal; + hyphens: manual; margin-bottom: 0; } + + transition: background 0.2s, color 0.2s; + + &:hover, + &:focus { + background: var(--link-hovered); + border-color: var(--link-hovered); + color: #fff; + } } } .m-teaser__image img { aspect-ratio: 16/9; border-radius: var(--border-radius-l) var(--border-radius-l) 0 0; + object-fit: cover; + height: 100%; } .m-teaser__dateline { @@ -80,5 +84,13 @@ } .m-teaser__content { - padding: .8rem; + padding: 1.4rem; +} + +.m-teaser__text { + line-clamp: 3; + display: -webkit-box; + -webkit-line-clamp: 3; + -webkit-box-orient: vertical; + overflow: hidden; } diff --git a/content/operator/_index.de.md b/content/operator/_index.de.md index 8db859a..55d83a7 100644 --- a/content/operator/_index.de.md +++ b/content/operator/_index.de.md @@ -1,5 +1,5 @@ --- -title: "Übersicht der Betreiber mit FIP" +title: "Übersicht der Betreiber" description: "Übersicht über die Betreiber, die FIP-Vergünstigungen anbieten." --- diff --git a/content/operator/_index.en.md b/content/operator/_index.en.md index 3997c4f..8eaec5a 100644 --- a/content/operator/_index.en.md +++ b/content/operator/_index.en.md @@ -1,5 +1,5 @@ --- -title: "Overview of operators supporting FIP" +title: "Overview of operators" description: "Overview of the operators providing FIP benefits." --- diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index ac6338c..968ca55 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -4,7 +4,7 @@ dir="{{ or site.Language.LanguageDirection `ltr` }}" >
- {{ partial "head.html" . }} + {{ partial "head" . }}