From 80716c79a7db19d6d95070125e1af7946a9849ec Mon Sep 17 00:00:00 2001 From: Volpeon Date: Tue, 28 Dec 2021 21:18:02 +0100 Subject: Support for more complex layouts --- assets/css/components/_header.scss | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'assets/css/components') diff --git a/assets/css/components/_header.scss b/assets/css/components/_header.scss index 15fa5a1..56d09cd 100644 --- a/assets/css/components/_header.scss +++ b/assets/css/components/_header.scss @@ -15,6 +15,7 @@ --height: 4rem, --icon: 1.5rem, --pad-x: calc(.5 * (var(--header--dims--height) - var(--header--dims--icon))), + --gap: 2px, ) )); @@ -33,6 +34,8 @@ @include component(namespace()) { display: flex; height: prop(--dims --height); + padding: prop(--dims --gap); + gap: prop(--dims --gap); filter: drop-shadow(#{prop(--dims --obj-shadow, $global: true)} #{prop(--colors --obj-shadow, $global: true)}); @include element('item') { @@ -43,10 +46,6 @@ line-height: prop(--dims --height); text-decoration: none; - @include next-twin-element { - margin-left: 2px; - } - &:hover, &:focus { border-left-color: prop(--colors --hover --bg); @@ -73,7 +72,7 @@ @include media('>=lg') { position: sticky; - top: 2px; + top: 0; margin-bottom: calc(-.75 * #{prop(--dims --height)}); } -- cgit v1.2.3-70-g09d2