diff options
Diffstat (limited to 'src/objects')
-rw-r--r-- | src/objects/_tabbar.scss | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/src/objects/_tabbar.scss b/src/objects/_tabbar.scss index b1cdcb9..e0dbcb0 100644 --- a/src/objects/_tabbar.scss +++ b/src/objects/_tabbar.scss | |||
@@ -18,11 +18,9 @@ | |||
18 | box-shadow: 0 calc(-1 * props.get(vars.$indicator--width)) 0 0 props.get(vars.$railing--bg-color) inset; | 18 | box-shadow: 0 calc(-1 * props.get(vars.$indicator--width)) 0 0 props.get(vars.$railing--bg-color) inset; |
19 | 19 | ||
20 | @include bem.elem('tabs') { | 20 | @include bem.elem('tabs') { |
21 | display: flex; | 21 | display: flex; |
22 | gap: props.get(vars.$spacing); | 22 | block-size: 100%; |
23 | block-size: 100%; | 23 | margin-inline: calc(-.5 * props.get(vars.$spacing)); |
24 | padding-inline-start: calc(.5 * props.get(vars.$spacing)); | ||
25 | margin-inline-start: calc(-.5 * props.get(vars.$spacing)); | ||
26 | 24 | ||
27 | &::after { | 25 | &::after { |
28 | display: block; | 26 | display: block; |
@@ -40,12 +38,13 @@ | |||
40 | } | 38 | } |
41 | 39 | ||
42 | @include bem.elem('tab') { | 40 | @include bem.elem('tab') { |
43 | position: relative; | 41 | position: relative; |
44 | display: flex; | 42 | display: flex; |
45 | align-items: center; | 43 | align-items: center; |
46 | color: props.get(vars.$tab--text-color); | 44 | padding-inline: calc(.5 * props.get(vars.$spacing)); |
47 | white-space: nowrap; | 45 | color: props.get(vars.$tab--text-color); |
48 | border-block: props.get(vars.$indicator--width) solid transparent; | 46 | white-space: nowrap; |
47 | border-block: props.get(vars.$indicator--width) solid transparent; | ||
49 | 48 | ||
50 | &::before { | 49 | &::before { |
51 | position: absolute; | 50 | position: absolute; |