summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVolpeon <git@volpeon.ink>2024-11-23 15:59:48 +0100
committerVolpeon <git@volpeon.ink>2024-11-23 15:59:48 +0100
commit8e57b7245f6b804f3d4bf83cfd72cd46757cbe3a (patch)
treea1b7e7b86a0dc2d502b938913f4a0817c6de67a9 /src
parentUpdate (diff)
downloadiro-design-8e57b7245f6b804f3d4bf83cfd72cd46757cbe3a.tar.gz
iro-design-8e57b7245f6b804f3d4bf83cfd72cd46757cbe3a.tar.bz2
iro-design-8e57b7245f6b804f3d4bf83cfd72cd46757cbe3a.zip
Update
Diffstat (limited to 'src')
-rw-r--r--src/objects/_tabbar.scss36
1 files changed, 23 insertions, 13 deletions
diff --git a/src/objects/_tabbar.scss b/src/objects/_tabbar.scss
index e0dbcb0..0d18f77 100644
--- a/src/objects/_tabbar.scss
+++ b/src/objects/_tabbar.scss
@@ -18,15 +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 block-size: 100%; 22 block-size: 100%;
23 margin-inline: calc(-.5 * props.get(vars.$spacing)); 23 margin-inline-start: calc(-.5 * props.get(vars.$spacing));
24
25 &::after {
26 display: block;
27 inline-size: props.get(vars.$spacing);
28 content: '';
29 }
30 } 24 }
31 25
32 @include bem.modifier('quiet') { 26 @include bem.modifier('quiet') {
@@ -57,6 +51,16 @@
57 transform: translateY(-50%); 51 transform: translateY(-50%);
58 } 52 }
59 53
54 &::after {
55 position: absolute;
56 inset-block-end: 0;
57 inset-inline: calc(.5 * props.get(vars.$spacing));
58 z-index: 10;
59 display: none;
60 content: '';
61 background-color: props.get(vars.$tab--selected--text-color);
62 }
63
60 &:link, 64 &:link,
61 &:visited { 65 &:visited {
62 &:hover, 66 &:hover,
@@ -78,16 +82,22 @@
78 } 82 }
79 83
80 @include bem.is('selected') { 84 @include bem.is('selected') {
81 color: props.get(vars.$tab--selected--text-color); 85 color: props.get(vars.$tab--selected--text-color);
82 border-block-end-color: props.get(vars.$tab--selected--text-color); 86
87 &::after {
88 display: block;
89 }
83 } 90 }
84 } 91 }
85 92
86 @include bem.modifier('accent') { 93 @include bem.modifier('accent') {
87 @include bem.elem('tab') { 94 @include bem.elem('tab') {
95 &::after {
96 background-color: props.get(vars.$tab--accent--text-color);
97 }
98
88 @include bem.is('selected') { 99 @include bem.is('selected') {
89 color: props.get(vars.$tab--accent--text-color); 100 color: props.get(vars.$tab--accent--text-color);
90 border-block-end-color: props.get(vars.$tab--accent--text-color);
91 } 101 }
92 } 102 }
93 } 103 }