diff options
author | Volpeon <git@volpeon.ink> | 2024-11-23 14:33:44 +0100 |
---|---|---|
committer | Volpeon <git@volpeon.ink> | 2024-11-23 14:33:44 +0100 |
commit | 65e65f44620699f1d14206d503594bafa5e0ea49 (patch) | |
tree | 86fce1bbd3ee8f9e26786955d837ce157772de7b /src/objects/_tabbar.scss | |
parent | Tabbar again (diff) | |
download | iro-design-65e65f44620699f1d14206d503594bafa5e0ea49.tar.gz iro-design-65e65f44620699f1d14206d503594bafa5e0ea49.tar.bz2 iro-design-65e65f44620699f1d14206d503594bafa5e0ea49.zip |
Tabbar
Diffstat (limited to 'src/objects/_tabbar.scss')
-rw-r--r-- | src/objects/_tabbar.scss | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/src/objects/_tabbar.scss b/src/objects/_tabbar.scss index b059b6e..342cd60 100644 --- a/src/objects/_tabbar.scss +++ b/src/objects/_tabbar.scss | |||
@@ -20,10 +20,20 @@ | |||
20 | padding-inline: calc(.5 * props.get(vars.$spacing)); | 20 | padding-inline: calc(.5 * props.get(vars.$spacing)); |
21 | margin-inline: calc(-.5 * props.get(vars.$spacing)); | 21 | margin-inline: calc(-.5 * props.get(vars.$spacing)); |
22 | overflow-inline: auto; | 22 | overflow-inline: auto; |
23 | box-shadow: 0 calc(-1 * props.get(vars.$indicator--width)) 0 0 props.get(vars.$railing--bg-color) inset; | 23 | |
24 | &::after { | ||
25 | display: block; | ||
26 | flex: 1 1 auto; | ||
27 | block-size: props.get(vars.$indicator--width); | ||
28 | margin-block-start: auto; | ||
29 | content: ''; | ||
30 | background-color: props.get(vars.$railing--bg-color); | ||
31 | } | ||
24 | 32 | ||
25 | @include bem.modifier('quiet') { | 33 | @include bem.modifier('quiet') { |
26 | box-shadow: none; | 34 | &::after { |
35 | display: none; | ||
36 | } | ||
27 | } | 37 | } |
28 | 38 | ||
29 | @include bem.modifier('adapt') { | 39 | @include bem.modifier('adapt') { |
@@ -36,7 +46,7 @@ | |||
36 | align-items: center; | 46 | align-items: center; |
37 | color: props.get(vars.$tab--text-color); | 47 | color: props.get(vars.$tab--text-color); |
38 | white-space: nowrap; | 48 | white-space: nowrap; |
39 | border-block: props.get(vars.$indicator--width) solid transparent; | 49 | border-block: props.get(vars.$indicator--width) solid props.get(vars.$railing--bg-color); |
40 | 50 | ||
41 | &::before { | 51 | &::before { |
42 | position: absolute; | 52 | position: absolute; |