-
Notifications
You must be signed in to change notification settings - Fork 75
/
calcite-tab-nav.scss
67 lines (56 loc) · 1.13 KB
/
calcite-tab-nav.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
:host {
@apply relative flex;
}
:host([scale="s"]) {
min-height: theme("spacing.6");
}
:host([scale="m"]) {
min-height: theme("spacing.8");
}
:host([scale="l"]) {
min-height: theme("spacing.11");
}
.tab-nav {
@apply flex
w-full
overflow-auto
justify-start
p-1
-m-1;
}
:host([layout="center"]) .tab-nav {
@apply justify-center;
}
// prevent indicator overflow in horizontal scrolling situations
.tab-nav-active-indicator-container {
@apply w-full
inset-x-0
bottom-0
absolute
overflow-hidden
h-0.5;
}
.tab-nav-active-indicator {
@apply absolute
bottom-0
block
transition-all
ease-out
bg-brand
h-0.5;
}
:host([position="below"]) .tab-nav-active-indicator {
bottom: unset;
@apply top-0;
}
:host([position="below"]) .tab-nav-active-indicator-container {
bottom: unset;
@apply top-0;
}
:host([bordered]) .tab-nav-active-indicator-container {
bottom: unset; // display active blue line above instead of below
}
:host([bordered][position="below"]) .tab-nav-active-indicator-container {
bottom: 0; // display active blue line below instead of above
top: unset;
}