From 3ddfc5c2e695b90615005c1eee37f1e25035d6e8 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Fri, 15 Nov 2024 22:31:15 +0100 Subject: Tabs --- src/objects/_tabs.scss | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/objects') diff --git a/src/objects/_tabs.scss b/src/objects/_tabs.scss index 64b0f43..c1fcb56 100644 --- a/src/objects/_tabs.scss +++ b/src/objects/_tabs.scss @@ -17,15 +17,14 @@ gap: props.get(vars.$spacing); min-inline-size: 0; block-size: 100%; - padding-inline: props.get(vars.$tab--pad-i); + padding-inline: calc(.5 * props.get(vars.$spacing)); + margin-inline: calc(-.5 * props.get(vars.$spacing)); overflow-inline: auto; @include bem.elem('tab') { position: relative; display: flex; align-items: center; - padding-inline: props.get(vars.$tab--pad-i); - margin-inline: calc(-1 * props.get(vars.$tab--pad-i)); color: props.get(vars.$tab--text-color); white-space: nowrap; @@ -38,7 +37,7 @@ &::before { inset-block-start: 50%; - inset-inline: 0; + inset-inline: calc(-1 * props.get(vars.$tab--pad-i)); block-size: 1.5em; border-radius: props.get(vars.$rounding); transform: translateY(-50%); @@ -46,7 +45,7 @@ &::after { inset-block-end: 0; - inset-inline: props.get(vars.$tab--pad-i); + inset-inline: 0; display: none; block-size: props.get(vars.$indicator--width); background-color: props.get(vars.$tab--selected--text-color); -- cgit v1.2.3-70-g09d2