From 5387622b87ef568224a72be6eb7c0984d6d7a015 Mon Sep 17 00:00:00 2001 From: Florian Eisenmenger Date: Fri, 23 Feb 2024 15:51:00 +0100 Subject: [PATCH] feature over full width --- .../stories/sections/feature/feature.scss | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/gfi-ihk-2024/stories/sections/feature/feature.scss b/gfi-ihk-2024/stories/sections/feature/feature.scss index 7033258..4fd187f 100644 --- a/gfi-ihk-2024/stories/sections/feature/feature.scss +++ b/gfi-ihk-2024/stories/sections/feature/feature.scss @@ -9,6 +9,26 @@ padding: var(--section-padding) 0; border-bottom: var(--border-width) solid var(--theme-color-secondary); margin: var(--section-margin) auto; + position: relative; + + &:after { + content: ""; + background: var(--theme-color-primary); + border-bottom: var(--border-width) solid var(--theme-color-secondary); + position: absolute; + left: 50%; + top: 0; + width: 100vw; + height: calc(100% + var(--border-width)); + margin: 0 -50vw; + z-index: -1; + } + .has-sidebar & { + padding: var(--section-padding); + &:after { + display: none; + } + } h2 { margin-bottom: 0.4em;