@onereach/styles 0.1.14 → 0.1.15
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,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onereach/styles",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.15",
|
|
4
4
|
"description": "Styles for or-ui-next",
|
|
5
5
|
"main": "./dist/index.min.css",
|
|
6
6
|
"unpkg": "./dist/index.css",
|
|
@@ -38,5 +38,5 @@
|
|
|
38
38
|
"sass": "^1.35.1",
|
|
39
39
|
"stylelint": "^13.13.1"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "306d70a2adc6519d6afe300515bc402cfbd0a82c"
|
|
42
42
|
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
@use "../utils/index" as *;
|
|
2
|
+
@use "../variables/initial";
|
|
3
|
+
|
|
4
|
+
$tab-header-item-prefix: initial.$base-prefix !default;
|
|
5
|
+
$tab-header-item-color: var(--c-neutral-5) !default;
|
|
6
|
+
$tab-header-item-font-weight: var(--fw-2) !default;
|
|
7
|
+
$tab-header-item-font-size: var(--fs-1) !default;
|
|
8
|
+
$tab-header-item-line-height: var(--lh-1) !default;
|
|
9
|
+
|
|
10
|
+
$tab-header-item-color-hover: var(--c-neutral-6) !default;
|
|
11
|
+
$tab-header-item-color-active: var(--c-neutral-6) !default;
|
|
12
|
+
$tab-header-item-color-disabled: var(--c-neutral-3) !default;
|
|
13
|
+
|
|
14
|
+
.#{$tab-header-item-prefix}-tab-header-item {
|
|
15
|
+
padding: 0;
|
|
16
|
+
font-size: $tab-header-item-font-size;
|
|
17
|
+
font-weight: $tab-header-item-font-weight;
|
|
18
|
+
line-height: $tab-header-item-line-height;
|
|
19
|
+
color: $tab-header-item-color;
|
|
20
|
+
cursor: pointer;
|
|
21
|
+
background-color: transparent;
|
|
22
|
+
border: 0;
|
|
23
|
+
|
|
24
|
+
&:not(:last-child) {
|
|
25
|
+
margin-right: var(--s-6);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
@include transition(color);
|
|
29
|
+
|
|
30
|
+
@include hover {
|
|
31
|
+
color: $tab-header-item-color-hover;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
@include disabled {
|
|
35
|
+
color: $tab-header-item-color-disabled;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&.is-active {
|
|
39
|
+
color: $tab-header-item-color-active;
|
|
40
|
+
cursor: default;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
@use "../utils/index" as *;
|
|
2
|
+
@use "../variables/initial";
|
|
3
|
+
|
|
4
|
+
$tabs-prefix: initial.$base-prefix !default;
|
|
5
|
+
|
|
6
|
+
.#{$tabs-prefix}-tabs {
|
|
7
|
+
width: 100%;
|
|
8
|
+
overflow: hidden;
|
|
9
|
+
|
|
10
|
+
&--header {
|
|
11
|
+
position: relative;
|
|
12
|
+
padding: 0 var(--s-4) var(--s-3);
|
|
13
|
+
border-bottom: 1px solid var(--c-neutral-2);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&--tabs {
|
|
17
|
+
display: flex;
|
|
18
|
+
width: 100%;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
&--indicator {
|
|
22
|
+
position: absolute;
|
|
23
|
+
bottom: -1px;
|
|
24
|
+
left: 0;
|
|
25
|
+
z-index: 1;
|
|
26
|
+
width: auto;
|
|
27
|
+
height: px-to-rem(2);
|
|
28
|
+
background-color: var(--c-neutral-6);
|
|
29
|
+
|
|
30
|
+
@include transition(transform, width);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
@mixin hover {
|
|
2
2
|
@media (hover: hover) and (pointer: fine) {
|
|
3
|
-
&:not(
|
|
3
|
+
&:not(.is-loading):not(.is-disabled):not(.is-readonly):not(:disabled) {
|
|
4
4
|
&:hover {
|
|
5
5
|
@content;
|
|
6
6
|
}
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
|
|
11
|
-
&:not(
|
|
11
|
+
&:not(.is-loading):not(.is-disabled):not(.is-readonly):not(:disabled) {
|
|
12
12
|
&:hover {
|
|
13
13
|
@content;
|
|
14
14
|
}
|