|
46 | 46 | outline: none; |
47 | 47 | } |
48 | 48 |
|
49 | | - &__icon { |
| 49 | + #{$root}__icon { |
50 | 50 | width: 16px; |
51 | 51 | height: 16px; |
52 | 52 | line-height: 16px; |
| 53 | + color: currentColor; |
53 | 54 |
|
54 | 55 | + #{$root}__content { |
55 | 56 | margin-left: 8px; |
|
98 | 99 | background-color: $st-button-default-fill; |
99 | 100 | border-color: mix($st-color-white-smoke, $st-color-white); |
100 | 101 | } |
101 | | - |
102 | | - #{$root}__icon { |
103 | | - color: mix($st-color-taupe-gray, $st-color-white); |
104 | | - } |
105 | 102 | } |
106 | 103 |
|
107 | 104 | &:hover, |
|
110 | 107 | background-color: $st-color-white; |
111 | 108 | border-color: $st-color-white-smoke; |
112 | 109 | } |
113 | | - |
114 | | - #{$root}__icon { |
115 | | - color: $st-color-taupe-gray; |
116 | | - } |
117 | 110 | } |
118 | 111 |
|
119 | 112 | &--primary { |
|
126 | 119 | &#{$root}--plain:hover { |
127 | 120 | color: $st-color-mantis; |
128 | 121 | background-color: $st-color-white; |
129 | | - |
130 | | - #{$root}__icon { |
131 | | - color: $st-color-mantis; |
132 | | - } |
133 | | - } |
134 | | - |
135 | | - #{$root}__icon { |
136 | | - color: $st-color-white; |
137 | 122 | } |
138 | 123 | } |
139 | 124 |
|
140 | 125 | &--secondary { |
141 | 126 | min-width: 192px; |
142 | 127 | border-radius: $st-button-secondary-border-radius; |
143 | 128 |
|
144 | | - #{$root}__icon { |
145 | | - color: $st-color-mantis; |
146 | | - } |
147 | | - |
148 | 129 | &:focus { |
149 | 130 | color: $st-color-white; |
150 | 131 | background-color: mix($st-color-mantis, $st-color-white, 80%); |
151 | | - |
152 | | - #{$root}__icon { |
153 | | - color: $st-color-white; |
154 | | - } |
155 | 132 | } |
156 | 133 |
|
157 | 134 | &:hover { |
158 | 135 | color: $st-color-white; |
159 | 136 | background-color: $st-color-mantis; |
160 | | - |
161 | | - #{$root}__icon { |
162 | | - color: $st-color-white; |
163 | | - } |
164 | 137 | } |
165 | 138 |
|
166 | 139 | &#{$root}--plain { |
|
169 | 142 | } |
170 | 143 | } |
171 | 144 |
|
172 | | - &#{$root}--disabled { |
173 | | - #{$root}__icon { |
174 | | - color: mix($st-color-mantis, $st-color-white, 50%); |
175 | | - } |
176 | | - } |
177 | | - |
178 | | - &#{$root}__approve { |
179 | | - #{$root}__icon { |
180 | | - color: $st-color-mantis; |
181 | | - } |
182 | | - |
183 | | - &:not(#{$root}--disabled):hover, |
184 | | - &:not(#{$root}--disabled):focus { |
185 | | - #{$root}__icon { |
186 | | - color: $st-color-white; |
187 | | - } |
188 | | - } |
189 | | - |
190 | | - &#{$root}--disabled { |
191 | | - &, |
192 | | - &:hover, |
193 | | - &:focus { |
194 | | - #{$root}__icon { |
195 | | - color: mix($st-color-mantis, $st-color-white); |
196 | | - } |
197 | | - } |
198 | | - } |
199 | | - } |
200 | | - |
201 | 145 | &#{$root}--cancel { |
202 | 146 | color: $st-color-taupe-gray; |
203 | 147 | border-color: $st-color-pastel-gray; |
204 | 148 |
|
205 | 149 | &:not(#{$root}--disabled) { |
206 | | - #{$root}__icon { |
207 | | - color: $st-color-pastel-gray; |
208 | | - } |
209 | | - |
210 | 150 | &:focus, |
211 | 151 | &:hover { |
212 | 152 | color: $st-color-white; |
213 | | - |
214 | | - #{$root}__icon { |
215 | | - color: $st-color-white; |
216 | | - } |
217 | 153 | } |
218 | 154 |
|
219 | 155 | &:focus { |
|
236 | 172 | &:focus { |
237 | 173 | color: mix($st-color-taupe-gray, $st-color-white); |
238 | 174 | border-color: mix($st-color-pastel-gray, $st-color-white); |
239 | | - |
240 | | - #{$root}__icon { |
241 | | - color: mix($st-color-taupe-gray, $st-color-white); |
242 | | - } |
243 | 175 | } |
244 | 176 |
|
245 | 177 | &#{$root}--plain { |
246 | 178 | background-color: mix($st-color-pastel-gray, $st-color-white, 10%); |
247 | 179 | } |
248 | 180 | } |
249 | | - |
250 | | - #{$root}__icon { |
251 | | - color: $st-color-taupe-gray; |
252 | | - } |
253 | 181 | } |
254 | 182 |
|
255 | 183 | &#{$root}--remove { |
256 | 184 | color: $st-color-sunset-orange; |
257 | 185 | border-color: $st-color-sunset-orange; |
258 | 186 |
|
259 | | - #{$root}__icon { |
260 | | - color: $st-color-sunset-orange; |
261 | | - } |
262 | | - |
263 | 187 | &:not(#{$root}--disabled):focus { |
264 | 188 | color: $st-color-white; |
265 | 189 | background-color: mix($st-color-sunset-orange, $st-color-white, 80%); |
266 | | - |
267 | | - #{$root}__icon { |
268 | | - color: $st-color-white; |
269 | | - } |
270 | 190 | } |
271 | 191 |
|
272 | 192 | &:not(#{$root}--disabled):hover { |
273 | 193 | color: $st-color-white; |
274 | 194 | background-color: $st-color-sunset-orange; |
275 | 195 | border-color: $st-color-sunset-orange; |
276 | | - |
277 | | - #{$root}__icon { |
278 | | - color: $st-color-white; |
279 | | - } |
280 | 196 | } |
281 | 197 |
|
282 | 198 | &#{$root}--plain { |
|
289 | 205 | &:focus { |
290 | 206 | color: mix($st-color-sunset-orange, $st-color-white); |
291 | 207 | border-color: mix($st-color-sunset-orange, $st-color-white); |
292 | | - |
293 | | - #{$root}__icon { |
294 | | - color: mix($st-color-sunset-orange, $st-color-white); |
295 | | - } |
296 | 208 | } |
297 | 209 |
|
298 | 210 | &#{$root}--plain { |
|
321 | 233 | color: mix($st-color-blueberry, $st-color-white, 80%); |
322 | 234 | background-color: $st-color-white; |
323 | 235 | border-color: mix($st-color-blueberry, $st-color-white, 40%); |
324 | | - |
325 | | - #{$root}__icon { |
326 | | - color: mix($st-color-blueberry, $st-color-white, 80%); |
327 | | - } |
328 | 236 | } |
329 | 237 |
|
330 | 238 | &:not(#{$root}--disabled):hover { |
|
340 | 248 | border-color: transparent; |
341 | 249 | } |
342 | 250 |
|
343 | | - #{$root}__icon { |
344 | | - color: mix($st-color-blueberry, $st-color-white, 50%); |
345 | | - } |
346 | | - |
347 | 251 | &#{$root}--plain, |
348 | 252 | &#{$root}--plain:hover { |
349 | 253 | color: mix($st-color-blueberry, $st-color-white, 40%); |
|
362 | 266 | border-color: $st-color-blueberry; |
363 | 267 | } |
364 | 268 | } |
365 | | - |
366 | | - #{$root}__icon { |
367 | | - color: $st-button-info-color; |
368 | | - } |
369 | 269 | } |
370 | 270 |
|
371 | 271 | &--extra-large { |
|
414 | 314 | color: mix($st-color-taupe-gray, $st-color-white, 80%); |
415 | 315 | background-color: transparent; |
416 | 316 | border-color: transparent; |
417 | | - |
418 | | - #{$root}__icon { |
419 | | - color: mix($st-color-taupe-gray, $st-color-white, 80%); |
420 | | - } |
421 | 317 | } |
422 | 318 |
|
423 | 319 | &:not(#{$root}--disabled):active { |
424 | 320 | color: $st-color-taupe-gray; |
425 | 321 | background-color: transparent; |
426 | 322 | border-color: transparent; |
427 | | - |
428 | | - #{$root}__icon { |
429 | | - color: $st-color-taupe-gray; |
430 | | - } |
431 | 323 | } |
432 | 324 |
|
433 | 325 | &#{$root}--disabled, |
434 | 326 | &#{$root}--disabled:hover, |
435 | 327 | &#{$root}--disabled:focus { |
436 | 328 | color: mix($st-color-taupe-gray, $st-color-white, 40%); |
437 | 329 | border-color: transparent; |
438 | | - |
439 | | - #{$root}__icon { |
440 | | - color: mix($st-color-taupe-gray, $st-color-white, 40%); |
441 | | - } |
442 | 330 | } |
443 | 331 |
|
444 | 332 | &:not(#{$root}--disabled)#{$root}--search { |
445 | 333 | &:focus { |
446 | 334 | color: mix($st-text-color-regular, $st-color-white, 40%); |
447 | | - |
448 | | - #{$root}__icon { |
449 | | - color: mix($st-text-color-regular, $st-color-white, 40%); |
450 | | - } |
451 | 335 | } |
452 | 336 |
|
453 | 337 | &:hover { |
454 | 338 | color: $st-color-blueberry; |
455 | | - |
456 | | - #{$root}__icon { |
457 | | - color: $st-color-blueberry; |
458 | | - } |
459 | 339 | } |
460 | 340 |
|
461 | 341 | &:active { |
462 | 342 | color: $st-text-color-regular; |
463 | | - |
464 | | - #{$root}__icon { |
465 | | - color: $st-text-color-regular; |
466 | | - } |
467 | 343 | } |
468 | 344 | } |
469 | | - |
470 | | - #{$root}__icon { |
471 | | - color: mix($st-color-taupe-gray, $st-color-white, 50%); |
472 | | - } |
473 | 345 | } |
474 | 346 |
|
475 | 347 | &--active { |
|
500 | 372 | padding-bottom: 11px; |
501 | 373 | pointer-events: none; |
502 | 374 |
|
503 | | - &::before { |
| 375 | + &:not(#{$root}--disabled)::before { |
504 | 376 | position: absolute; |
505 | 377 | top: -1px; |
506 | 378 | right: -1px; |
|
0 commit comments