@de-kit/st-ui 0.1.10 → 0.1.11
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.
|
@@ -21,25 +21,30 @@
|
|
|
21
21
|
gap: 8px;
|
|
22
22
|
text-decoration: none;
|
|
23
23
|
|
|
24
|
-
&:hover:not(:active, :disabled, [aria-disabled='true']) {
|
|
24
|
+
&:hover:not(:active, [data-active], :disabled, [aria-disabled='true']) {
|
|
25
25
|
background-color: var(--color-primary-hover);
|
|
26
26
|
border-color: var(--color-primary-hover);
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
|
|
29
|
+
// data-* повторяют псевдоклассы: в Storybook :active и :focus-visible
|
|
30
|
+
// на нескольких кнопках сразу не удержать.
|
|
31
|
+
&:focus:not(:focus-visible),
|
|
32
|
+
&[data-focus]:not([data-focus-visible]) {
|
|
30
33
|
outline: none;
|
|
31
34
|
}
|
|
32
35
|
|
|
33
|
-
&:focus-visible
|
|
36
|
+
&:focus-visible,
|
|
37
|
+
&[data-focus-visible] {
|
|
34
38
|
outline: var(--focus-ring-width) solid var(--focus-ring-color);
|
|
35
39
|
outline-offset: var(--focus-ring-offset);
|
|
36
40
|
}
|
|
37
41
|
|
|
38
|
-
&:active:not(:disabled, [aria-disabled='true'])
|
|
39
|
-
|
|
40
|
-
color: var(--color-
|
|
42
|
+
&:active:not(:disabled, [aria-disabled='true']),
|
|
43
|
+
&[data-active]:not(:disabled, [aria-disabled='true']) {
|
|
44
|
+
background-color: var(--color-primary);
|
|
45
|
+
color: var(--color-primary-foreground);
|
|
41
46
|
fill: currentColor;
|
|
42
|
-
border-color: var(--color-
|
|
47
|
+
border-color: var(--color-primary);
|
|
43
48
|
}
|
|
44
49
|
|
|
45
50
|
// pointer-events не гасим: нативный disabled и так не пускает клик, а так
|
|
@@ -62,7 +67,7 @@
|
|
|
62
67
|
fill: currentColor;
|
|
63
68
|
border: 2px solid var(--color-foreground);
|
|
64
69
|
|
|
65
|
-
&:hover:not(:active, :disabled, [aria-disabled='true']) {
|
|
70
|
+
&:hover:not(:active, [data-active], :disabled, [aria-disabled='true']) {
|
|
66
71
|
background-color: transparent;
|
|
67
72
|
border-color: var(--color-foreground);
|
|
68
73
|
color: var(--color-foreground);
|
|
@@ -80,14 +85,15 @@
|
|
|
80
85
|
background-color: transparent;
|
|
81
86
|
color: var(--color-foreground);
|
|
82
87
|
fill: currentColor;
|
|
83
|
-
border-radius:
|
|
88
|
+
border-radius: var(--radius-sm);
|
|
84
89
|
padding: 0;
|
|
85
90
|
|
|
86
|
-
&:hover:not(:active, :disabled, [aria-disabled='true']) {
|
|
91
|
+
&:hover:not(:active, [data-active], :disabled, [aria-disabled='true']) {
|
|
87
92
|
background-color: transparent;
|
|
88
93
|
}
|
|
89
94
|
|
|
90
95
|
&:active:not([aria-disabled='true']),
|
|
96
|
+
&[data-active]:not([aria-disabled='true']),
|
|
91
97
|
&:disabled,
|
|
92
98
|
&[aria-disabled='true']:not([aria-busy='true']) {
|
|
93
99
|
background-color: transparent;
|
|
@@ -103,12 +109,18 @@
|
|
|
103
109
|
width: var(--size);
|
|
104
110
|
height: var(--size);
|
|
105
111
|
position: relative;
|
|
112
|
+
justify-content: center;
|
|
106
113
|
|
|
107
114
|
@include mixins.min-width(md) {
|
|
108
115
|
--size: 100px;
|
|
109
116
|
}
|
|
110
117
|
|
|
111
|
-
&:hover:not(:active, :disabled, [aria-disabled='true']) {
|
|
118
|
+
&:hover:not(:active, [data-active], :disabled, [aria-disabled='true']) {
|
|
119
|
+
background-color: var(--color-secondary);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
&:active:not(:disabled, [aria-disabled='true']),
|
|
123
|
+
&[data-active]:not(:disabled, [aria-disabled='true']) {
|
|
112
124
|
background-color: var(--color-secondary);
|
|
113
125
|
}
|
|
114
126
|
|