-
Notifications
You must be signed in to change notification settings - Fork 0
/
_auk-tabs.scss
131 lines (104 loc) · 2.49 KB
/
_auk-tabs.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
@use "settings";
@use "tools";
/* ==========================================================================
auk-tabs
========================================================================== */
.auk-tabs {
display: flex;
// overflow: hidden;
// overflow-x: scroll; disable scrollbar on tabs
}
.auk-tabs--border-bottom {
border-bottom: 0.1rem solid settings.$color-gray-300;
}
.auk-tabs__tab {
//
}
.auk-tabs__tab__link {
display: flex;
align-items: center;
height: 5rem;
padding: 0;
border: none;
border-bottom: 0.3rem solid transparent;
background-color: transparent;
color: settings.$color-blue-500;
font-family: flanders-sans, sans-serif;
font-weight: 500;
font-size: 1.5rem;
text-decoration: none;
white-space: nowrap;
&:is(button) {
appearance: none;
}
&:hover {
background-color: settings.$color-gray-100;
}
@include tools.mixin-element-focus;
}
.auk-tabs__tab__inner {
padding: 0 1rem;
position: relative;
display: flex;
align-items: center;
gap: 0.6rem;
top: 0.15rem;
.auk-tabs__tab:not(:last-child) & {
border-right: 0.1rem solid #ccc;
}
}
.auk-tabs__tab__counter {
font-weight: 400;
color: settings.$color-blue-500;
}
.auk-tabs__tab__link--active {
color: settings.$color-gray-900;
&,
&:focus {
border-bottom: 0.3rem solid settings.$color-gray-900;
}
.auk-tabs__tab__counter {
color: settings.$color-gray-600;
}
}
/* Reversed tabs
========================================================================== */
.auk-tabs--reversed {
border-top: 0.1rem solid settings.$color-gray-300;
margin-top: 1.2rem;
}
.auk-tabs--reversed {
.auk-tabs__tab__link {
border-top: 0.3rem solid transparent;
border-bottom: none;
@include tools.mixin-element-focus;
}
}
.auk-tabs--reversed .auk-tabs__tab__inner {
bottom: 0.15rem;
}
.auk-tabs--reversed .auk-tabs__tab__link--active {
color: settings.$color-gray-900;
&,
&:focus {
border-top: 0.3rem solid settings.$color-gray-900;
border-bottom: none;
}
}
/* Hierarchical back tab
========================================================================== */
.auk-tabs__hierarchical-back {
.auk-tabs__tab__link--active {
color: settings.$color-blue-500;
border-bottom: 0.3rem solid transparent;
}
}
.auk-tabs--reversed .auk-tabs__hierarchical-back {
.auk-tabs__tab__link--active {
border-top: 0.3rem solid transparent;
border-bottom: none;
}
}
.auk-tabs__hierarchical-back .auk-tabs__tab__label {
display: none;
}