diff options
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; |