@oardi/css-utils 0.19.1 → 0.19.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
:root {
|
|
2
2
|
--tab-highlight: var(--highlight);
|
|
3
|
+
--tab-bg-color: var(--white);
|
|
4
|
+
--tab-content-bg-color: var(--white);
|
|
3
5
|
}
|
|
4
6
|
|
|
5
7
|
.tabs {
|
|
@@ -8,31 +10,28 @@
|
|
|
8
10
|
-webkit-tap-highlight-color: transparent;
|
|
9
11
|
overflow-x: scroll;
|
|
10
12
|
overflow-y: visible;
|
|
11
|
-
padding-inline: 0.2rem; // fix for box-shadow on focus
|
|
12
|
-
padding-block: 0.2rem; // fix for box-shadow on focus
|
|
13
|
-
margin-inline: -0.2rem; // fix for box-shadow on focus
|
|
14
13
|
|
|
15
14
|
.tab {
|
|
16
15
|
color: var(--font-color);
|
|
16
|
+
background-color: var(--tab-bg-color);
|
|
17
|
+
|
|
17
18
|
padding: 16px 20px;
|
|
18
19
|
border-bottom: 3px solid var(--gray-80);
|
|
19
20
|
flex: 0 0 auto;
|
|
20
21
|
|
|
21
22
|
&.active {
|
|
22
23
|
color: var(--primary);
|
|
23
|
-
background: var(--body-bg-color);
|
|
24
24
|
border-bottom: 3px solid var(--primary);
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
&:focus {
|
|
28
28
|
outline: 0;
|
|
29
29
|
box-shadow: var(--box-shadow);
|
|
30
|
-
z-index:
|
|
30
|
+
z-index: 10;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
&:hover {
|
|
34
34
|
cursor: pointer;
|
|
35
|
-
background-color: var(--tab-highlight);
|
|
36
35
|
}
|
|
37
36
|
}
|
|
38
37
|
}
|
|
@@ -40,6 +39,7 @@
|
|
|
40
39
|
.tab-content {
|
|
41
40
|
display: none;
|
|
42
41
|
padding: 20px;
|
|
42
|
+
background-color: var(--tab-content-bg-color);
|
|
43
43
|
|
|
44
44
|
&.active {
|
|
45
45
|
display: block;
|
package/scss/typography.scss
CHANGED