forked from twitter/opensource-website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
_feather-component-button.scss
629 lines (628 loc) · 25.8 KB
/
_feather-component-button.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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
/*! Copyright 2022 Twitter Inc. All rights reserved. */
/* @generated */
/* Button groups */
.ButtonGroup {
display: inline-block;
vertical-align: middle;
}
.ButtonGroup > .Button {
position: relative;
float: left;
text-align: center;
}
.ButtonGroup > .Button:focus {
outline: none;
}
.ButtonGroup > .Button {
z-index: 1;
transition-property: background-color, border-color;
}
.ButtonGroup > .Button:hover {
z-index: 2;
}
.ButtonGroup > .Button.is-selected {
z-index: 3;
}
.ButtonGroup > .Button.is-selected,
.ButtonGroup > .Button.is-selected:visited {
background-color: var(--feather-button-group-selected-background-color);
border: 1px solid var(--feather-button-group-selected-border-color);
color: var(--feather-button-group-selected-color);
}
.ButtonGroup > .Button.is-selected:focus,
.ButtonGroup > .Button.is-selected.is-focus {
background: var(--feather-button-group-selected-background-color);
border-color: var(--feather-button-group-selected-border-color);
color: var(--feather-button-group-selected-color);
}
.ButtonGroup > .Button.is-selected:focus:not(.is-mouseFocus),
.ButtonGroup > .Button.is-selected.is-focus:not(.is-mouseFocus) {
box-shadow: 0 0 0 1px white, 0 0 0 3px var(--feather-button-group-selected-outline-color-focus), 0 0 2px 3px var(--feather-button-group-selected-outline-color-focus);
}
.u-featherBackgroundDark .ButtonGroup > .Button.is-selected:focus:not(.is-mouseFocus),
.u-featherBackgroundDark .ButtonGroup > .Button.is-selected.is-focus:not(.is-mouseFocus) {
box-shadow: 0 0 0 1px black, 0 0 0 3px var(--feather-button-group-selected-outline-color-focus), 0 0 2px 3px var(--feather-button-group-selected-outline-color-focus);
}
.ButtonGroup > .Button.is-selected:hover,
.ButtonGroup > .Button.is-selected.is-hover {
background-color: var(--feather-button-group-selected-background-color-hover);
border-color: var(--feather-button-group-selected-border-color-hover);
color: var(--feather-button-group-selected-color);
}
.ButtonGroup > .Button.is-selected:active,
.ButtonGroup > .Button.is-selected.is-active {
background-color: var(--feather-button-group-selected-background-color-active);
border-color: var(--feather-button-group-selected-border-color-active);
color: var(--feather-button-group-selected-color);
}
.ButtonGroup > .Button.is-selected[disabled],
.ButtonGroup > .Button.is-selected.is-disabled,
fieldset[disabled] .ButtonGroup > .Button.is-selected {
background-color: var(--feather-button-group-selected-background-color);
border-color: var(--feather-button-group-selected-border-color);
box-shadow: none;
}
.ButtonGroup > .Button:focus:not(.is-mouseFocus),
.ButtonGroup > .Button.is-focus:not(.is-mouseFocus) {
z-index: 4;
}
.ButtonGroup > .Button + .Button {
margin-left: -1px;
}
.ButtonGroup > .Button:not(:first-child):not(:last-child) {
border-radius: 0;
}
.ButtonGroup > .Button:first-child:not(:last-child) {
border-bottom-right-radius: 0;
border-top-right-radius: 0;
}
.ButtonGroup > .Button:last-child:not(:first-child) {
border-bottom-left-radius: 0;
border-top-left-radius: 0;
}
/* Sizing */
/* Variants */
.ButtonGroup--primary > .Button + .Button {
margin-left: 1px;
}
.ButtonGroup--justified {
display: flex;
width: 100%;
}
.ButtonGroup--justified > .Button {
flex: 1;
}
.Button .Icon {
line-height: 1;
vertical-align: -1px;
}
.Button--large .Icon {
vertical-align: -2px;
}
.ButtonGroup .Icon {
line-height: 1;
vertical-align: -1px;
}
.ButtonGroup--large .Icon {
vertical-align: -2px;
}
.Button > .Icon--caretDown {
margin: 0 var(--feather-form-control-default-adornment-margin);
}
.Button--xsmall > .Icon--caretDown {
margin: 0 var(--feather-form-control-xsmall-adornment-margin);
}
.Button--small > .Icon--caretDown {
margin: 0 var(--feather-form-control-small-adornment-margin);
}
.Button--large > .Icon--caretDown {
margin: 0 var(--feather-form-control-large-adornment-margin);
}
.Button > .Icon--caretDown {
float: right;
margin-right: 0;
line-height: inherit;
}
.Button-label {
flex: 1 1 auto;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.Button-adornment {
margin: 0 var(--feather-form-control-default-adornment-margin);
flex: 0 0 auto;
}
.Button--xsmall .Button-adornment,
.ButtonGroup--xsmall .Button-adornment {
margin: 0 var(--feather-form-control-xsmall-adornment-margin);
}
.Button--small .Button-adornment,
.ButtonGroup--small .Button-adornment {
margin: 0 var(--feather-form-control-small-adornment-margin);
}
.Button--large .Button-adornment,
.ButtonGroup--large .Button-adornment {
margin: 0 var(--feather-form-control-large-adornment-margin);
}
.Button-adornment:only-child {
margin-right: 0;
margin-left: 0;
}
html:not([dir='rtl']) .Button:not([dir='rtl']) .Button-adornment:first-child,
.Button[dir='ltr'] .Button-adornment:first-child {
margin-left: 0;
}
html[dir='rtl'] .Button:not([dir='ltr']) .Button-adornment:first-child,
.Button[dir='rtl'] .Button-adornment:first-child {
margin-right: 0;
}
html:not([dir='rtl']) .Button:not([dir='rtl']) .Button-adornment:last-child,
.Button[dir='ltr'] .Button-adornment:last-child {
margin-right: 0;
}
html[dir='rtl'] .Button:not([dir='ltr']) .Button-adornment:last-child,
.Button[dir='rtl'] .Button-adornment:last-child {
margin-left: 0;
}
/* Category labels */
.Button--withCategoryLabel .Button-label {
font-weight: 400;
}
.Button-categoryLabel {
font-weight: 700;
}
.Button {
--feather-button-background-color-active: rgba(55, 67, 77, 0.2);
--feather-button-background-color: white;
--feather-button-background-color-hover: var(--tw-color-gray-100);
--feather-button-border-color-active: rgba(55, 67, 77, 0);
--feather-button-border-color: var(--tw-color-gray-200);
--feather-button-border-color-hover: var(--feather-button-border-color);
--feather-button-color: var(--tw-color-text-primary);
--feather-button-outline-color-focus: rgba(29, 155, 240, 0.5);
--feather-button-primary-background-color-active: #3f4347;
--feather-button-primary-background-color: var(--tw-color-gray-1100);
--feather-button-primary-background-color-hover: #272b30;
--feather-button-primary-border-color-active: var(--feather-button-primary-background-color-active);
--feather-button-primary-border-color: var(--feather-button-primary-background-color);
--feather-button-primary-border-color-hover: var(--feather-button-primary-background-color-hover);
--feather-button-primary-color: white;
--feather-button-primary-outline-color-focus: var(--feather-button-outline-color-focus);
--feather-button-brand-primary-background-color-active: #177cc0;
--feather-button-brand-primary-background-color: var(--tw-color-blue-500);
--feather-button-brand-primary-background-color-hover: #1a8cd8;
--feather-button-brand-primary-border-color-active: #177cc0;
--feather-button-brand-primary-border-color: var(--feather-button-brand-primary-background-color);
--feather-button-brand-primary-border-color-hover: #1a8cd8;
--feather-button-brand-primary-color: white;
--feather-button-brand-primary-outline-color-focus: var(--feather-button-outline-color-focus);
--feather-button-danger-primary-background-color-active: #c31a25;
--feather-button-danger-primary-background-color: var(--tw-color-red-500);
--feather-button-danger-primary-background-color-hover: #dc1e29;
--feather-button-danger-primary-border-color-active: var(--feather-button-danger-primary-background-color-active);
--feather-button-danger-primary-border-color: var(--feather-button-danger-primary-background-color);
--feather-button-danger-primary-border-color-hover: var(--feather-button-danger-primary-background-color-hover);
--feather-button-danger-primary-color: white;
--feather-button-danger-primary-outline-color-focus: var(--tw-color-red-500);
--feather-button-danger-secondary-background-color-active: rgba(244, 33, 46, 0.2);
--feather-button-danger-secondary-background-color: white;
--feather-button-danger-secondary-background-color-hover: rgba(244, 33, 46, 0.1);
--feather-button-danger-secondary-border-color-active: rgba(244, 33, 46, 0);
--feather-button-danger-secondary-border-color: var(--tw-color-red-100);
--feather-button-danger-secondary-border-color-hover: rgba(244, 33, 46, 0.1);
--feather-button-danger-secondary-color: var(--tw-color-red-500);
--feather-button-danger-secondary-outline-color-focus: rgba(244, 33, 46, 0.5);
--feather-button-link-color: var(--tw-color-text-primary);
--feather-button-link-font-weight: var(--feather-font-weight-bold);
--feather-button-danger-link-color: var(--tw-color-red-500);
--feather-button-group-selected-background-color-active: var(--feather-button-primary-background-color-active);
--feather-button-group-selected-background-color: var(--feather-button-primary-background-color);
--feather-button-group-selected-background-color-hover: var(--feather-button-primary-background-color-hover);
--feather-button-group-selected-border-color-active: var(--feather-button-primary-border-color-active);
--feather-button-group-selected-border-color: var(--feather-button-primary-border-color);
--feather-button-group-selected-border-color-hover: var(--feather-button-primary-border-color-hover);
--feather-button-group-selected-color: var(--feather-button-primary-color);
--feather-button-group-selected-outline-color-focus: var(--feather-button-primary-outline-color-focus);
}
.Button {
transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
transition-property: box-shadow, background-color, border-color;
text-align: center;
}
.Button:focus {
outline: none;
}
.Button:-moz-focusring,
.Button[type='button']:-moz-focusring,
.Button[type='reset']:-moz-focusring,
.Button[type='submit']:-moz-focusring {
outline: none;
}
.Button,
.Button:visited,
.Button.is-visited {
display: inline-flex;
align-items: center;
justify-content: center;
position: relative;
cursor: pointer;
font-family: var(--feather-font-family-base);
font-weight: 700;
}
.Button:focus,
.Button.is-focus {
text-decoration: none;
}
.Button:focus:not(.is-mouseFocus),
.Button.is-focus:not(.is-mouseFocus) {
box-shadow: 0 0 0 1px white, 0 0 0 3px rgba(29, 155, 240, 0.5), 0 0 2px 3px rgba(29, 155, 240, 0.5);
}
.Button:hover,
.Button.is-hover {
text-decoration: none;
}
.Button[disabled],
.Button.is-disabled,
fieldset[disabled] .Button {
cursor: default;
opacity: 0.5;
box-shadow: none;
}
a.Button.is-disabled,
fieldset[disabled] a.Button {
pointer-events: none;
}
.Button[type='button'] {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
}
/* Variants */
.Button,
.Button:visited {
background-color: var(--feather-button-background-color);
border: 1px solid var(--feather-button-border-color);
color: var(--feather-button-color);
}
.Button:focus,
.Button.is-focus {
background: var(--feather-button-background-color);
border-color: var(--feather-button-border-color);
color: var(--feather-button-color);
}
.Button:focus:not(.is-mouseFocus),
.Button.is-focus:not(.is-mouseFocus) {
box-shadow: 0 0 0 1px white, 0 0 0 3px var(--feather-button-outline-color-focus), 0 0 2px 3px var(--feather-button-outline-color-focus);
}
.u-featherBackgroundDark .Button:focus:not(.is-mouseFocus),
.u-featherBackgroundDark .Button.is-focus:not(.is-mouseFocus) {
box-shadow: 0 0 0 1px black, 0 0 0 3px var(--feather-button-outline-color-focus), 0 0 2px 3px var(--feather-button-outline-color-focus);
}
.Button:hover,
.Button.is-hover {
background-color: var(--feather-button-background-color-hover);
border-color: var(--feather-button-border-color-hover);
color: var(--feather-button-color);
}
.Button:active,
.Button.is-active {
background-color: var(--feather-button-background-color-active);
border-color: var(--feather-button-border-color-active);
color: var(--feather-button-color);
}
.Button[disabled],
.Button.is-disabled,
fieldset[disabled] .Button {
background-color: var(--feather-button-background-color);
border-color: var(--feather-button-border-color);
box-shadow: none;
}
.Button.Button--primary,
.Button.Button--primary:visited,
.ButtonGroup--primary > .Button,
.ButtonGroup--primary > .Button:visited {
background-color: var(--feather-button-primary-background-color);
border: 1px solid var(--feather-button-primary-border-color);
color: var(--feather-button-primary-color);
}
.Button.Button--primary:focus,
.Button.Button--primary.is-focus,
.ButtonGroup--primary > .Button:focus,
.ButtonGroup--primary > .Button.is-focus {
background: var(--feather-button-primary-background-color);
border-color: var(--feather-button-primary-border-color);
color: var(--feather-button-primary-color);
}
.Button.Button--primary:focus:not(.is-mouseFocus),
.Button.Button--primary.is-focus:not(.is-mouseFocus),
.ButtonGroup--primary > .Button:focus:not(.is-mouseFocus),
.ButtonGroup--primary > .Button.is-focus:not(.is-mouseFocus) {
box-shadow: 0 0 0 1px white, 0 0 0 3px var(--feather-button-primary-outline-color-focus), 0 0 2px 3px var(--feather-button-primary-outline-color-focus);
}
.u-featherBackgroundDark .Button.Button--primary:focus:not(.is-mouseFocus),
.u-featherBackgroundDark .Button.Button--primary.is-focus:not(.is-mouseFocus),
.u-featherBackgroundDark .ButtonGroup--primary > .Button:focus:not(.is-mouseFocus),
.u-featherBackgroundDark .ButtonGroup--primary > .Button.is-focus:not(.is-mouseFocus) {
box-shadow: 0 0 0 1px black, 0 0 0 3px var(--feather-button-primary-outline-color-focus), 0 0 2px 3px var(--feather-button-primary-outline-color-focus);
}
.Button.Button--primary:hover,
.Button.Button--primary.is-hover,
.ButtonGroup--primary > .Button:hover,
.ButtonGroup--primary > .Button.is-hover {
background-color: var(--feather-button-primary-background-color-hover);
border-color: var(--feather-button-primary-border-color-hover);
color: var(--feather-button-primary-color);
}
.Button.Button--primary:active,
.Button.Button--primary.is-active,
.ButtonGroup--primary > .Button:active,
.ButtonGroup--primary > .Button.is-active {
background-color: var(--feather-button-primary-background-color-active);
border-color: var(--feather-button-primary-border-color-active);
color: var(--feather-button-primary-color);
}
.Button.Button--primary[disabled],
.Button.Button--primary.is-disabled,
fieldset[disabled] .Button.Button--primary,
.ButtonGroup--primary > .Button[disabled],
.ButtonGroup--primary > .Button.is-disabled,
fieldset[disabled] .ButtonGroup--primary > .Button {
background-color: var(--feather-button-primary-background-color);
border-color: var(--feather-button-primary-border-color);
box-shadow: none;
}
.Button.Button--brandPrimary,
.Button.Button--brandPrimary:visited {
background-color: var(--feather-button-brand-primary-background-color);
border: 1px solid var(--feather-button-brand-primary-border-color);
color: var(--feather-button-brand-primary-color);
}
.Button.Button--brandPrimary:focus,
.Button.Button--brandPrimary.is-focus {
background: var(--feather-button-brand-primary-background-color);
border-color: var(--feather-button-brand-primary-border-color);
color: var(--feather-button-brand-primary-color);
}
.Button.Button--brandPrimary:focus:not(.is-mouseFocus),
.Button.Button--brandPrimary.is-focus:not(.is-mouseFocus) {
box-shadow: 0 0 0 1px white, 0 0 0 3px var(--feather-button-brand-primary-outline-color-focus), 0 0 2px 3px var(--feather-button-brand-primary-outline-color-focus);
}
.u-featherBackgroundDark .Button.Button--brandPrimary:focus:not(.is-mouseFocus),
.u-featherBackgroundDark .Button.Button--brandPrimary.is-focus:not(.is-mouseFocus) {
box-shadow: 0 0 0 1px black, 0 0 0 3px var(--feather-button-brand-primary-outline-color-focus), 0 0 2px 3px var(--feather-button-brand-primary-outline-color-focus);
}
.Button.Button--brandPrimary:hover,
.Button.Button--brandPrimary.is-hover {
background-color: var(--feather-button-brand-primary-background-color-hover);
border-color: var(--feather-button-brand-primary-border-color-hover);
color: var(--feather-button-brand-primary-color);
}
.Button.Button--brandPrimary:active,
.Button.Button--brandPrimary.is-active {
background-color: var(--feather-button-brand-primary-background-color-active);
border-color: var(--feather-button-brand-primary-border-color-active);
color: var(--feather-button-brand-primary-color);
}
.Button.Button--brandPrimary[disabled],
.Button.Button--brandPrimary.is-disabled,
fieldset[disabled] .Button.Button--brandPrimary {
background-color: var(--feather-button-brand-primary-background-color);
border-color: var(--feather-button-brand-primary-border-color);
box-shadow: none;
}
.Button.Button--dangerPrimary,
.Button.Button--danger,
.Button.Button--dangerPrimary:visited,
.Button.Button--danger:visited {
background-color: var(--feather-button-danger-primary-background-color);
border: 1px solid var(--feather-button-danger-primary-border-color);
color: var(--feather-button-danger-primary-color);
}
.Button.Button--dangerPrimary:focus,
.Button.Button--danger:focus,
.Button.Button--dangerPrimary.is-focus,
.Button.Button--danger.is-focus {
background: var(--feather-button-danger-primary-background-color);
border-color: var(--feather-button-danger-primary-border-color);
color: var(--feather-button-danger-primary-color);
}
.Button.Button--dangerPrimary:focus:not(.is-mouseFocus),
.Button.Button--danger:focus:not(.is-mouseFocus),
.Button.Button--dangerPrimary.is-focus:not(.is-mouseFocus),
.Button.Button--danger.is-focus:not(.is-mouseFocus) {
box-shadow: 0 0 0 1px white, 0 0 0 3px var(--feather-button-danger-primary-outline-color-focus), 0 0 2px 3px var(--feather-button-danger-primary-outline-color-focus);
}
.u-featherBackgroundDark .Button.Button--dangerPrimary:focus:not(.is-mouseFocus),
.u-featherBackgroundDark .Button.Button--danger:focus:not(.is-mouseFocus),
.u-featherBackgroundDark .Button.Button--dangerPrimary.is-focus:not(.is-mouseFocus),
.u-featherBackgroundDark .Button.Button--danger.is-focus:not(.is-mouseFocus) {
box-shadow: 0 0 0 1px black, 0 0 0 3px var(--feather-button-danger-primary-outline-color-focus), 0 0 2px 3px var(--feather-button-danger-primary-outline-color-focus);
}
.Button.Button--dangerPrimary:hover,
.Button.Button--danger:hover,
.Button.Button--dangerPrimary.is-hover,
.Button.Button--danger.is-hover {
background-color: var(--feather-button-danger-primary-background-color-hover);
border-color: var(--feather-button-danger-primary-border-color-hover);
color: var(--feather-button-danger-primary-color);
}
.Button.Button--dangerPrimary:active,
.Button.Button--danger:active,
.Button.Button--dangerPrimary.is-active,
.Button.Button--danger.is-active {
background-color: var(--feather-button-danger-primary-background-color-active);
border-color: var(--feather-button-danger-primary-border-color-active);
color: var(--feather-button-danger-primary-color);
}
.Button.Button--dangerPrimary[disabled],
.Button.Button--danger[disabled],
.Button.Button--dangerPrimary.is-disabled,
.Button.Button--danger.is-disabled,
fieldset[disabled] .Button.Button--dangerPrimary,
fieldset[disabled] .Button.Button--danger {
background-color: var(--feather-button-danger-primary-background-color);
border-color: var(--feather-button-danger-primary-border-color);
box-shadow: none;
}
.Button.Button--dangerSecondary,
.Button.Button--dangerSecondary:visited {
background-color: var(--feather-button-danger-secondary-background-color);
border: 1px solid var(--feather-button-danger-secondary-border-color);
color: var(--feather-button-danger-secondary-color);
}
.Button.Button--dangerSecondary:focus,
.Button.Button--dangerSecondary.is-focus {
background: var(--feather-button-danger-secondary-background-color);
border-color: var(--feather-button-danger-secondary-border-color);
color: var(--feather-button-danger-secondary-color);
}
.Button.Button--dangerSecondary:focus:not(.is-mouseFocus),
.Button.Button--dangerSecondary.is-focus:not(.is-mouseFocus) {
box-shadow: 0 0 0 1px white, 0 0 0 3px var(--feather-button-danger-secondary-outline-color-focus), 0 0 2px 3px var(--feather-button-danger-secondary-outline-color-focus);
}
.u-featherBackgroundDark .Button.Button--dangerSecondary:focus:not(.is-mouseFocus),
.u-featherBackgroundDark .Button.Button--dangerSecondary.is-focus:not(.is-mouseFocus) {
box-shadow: 0 0 0 1px black, 0 0 0 3px var(--feather-button-danger-secondary-outline-color-focus), 0 0 2px 3px var(--feather-button-danger-secondary-outline-color-focus);
}
.Button.Button--dangerSecondary:hover,
.Button.Button--dangerSecondary.is-hover {
background-color: var(--feather-button-danger-secondary-background-color-hover);
border-color: var(--feather-button-danger-secondary-border-color-hover);
color: var(--feather-button-danger-secondary-color);
}
.Button.Button--dangerSecondary:active,
.Button.Button--dangerSecondary.is-active {
background-color: var(--feather-button-danger-secondary-background-color-active);
border-color: var(--feather-button-danger-secondary-border-color-active);
color: var(--feather-button-danger-secondary-color);
}
.Button.Button--dangerSecondary[disabled],
.Button.Button--dangerSecondary.is-disabled,
fieldset[disabled] .Button.Button--dangerSecondary {
background-color: var(--feather-button-danger-secondary-background-color);
border-color: var(--feather-button-danger-secondary-border-color);
box-shadow: none;
}
.Button.Button--link {
padding-left: 0;
padding-right: 0;
background: transparent;
border: none;
border-radius: var(--feather-form-control-default-border-radius);
box-shadow: none;
color: var(--feather-button-link-color);
cursor: pointer;
font-family: var(--feather-font-family-base);
font-weight: var(--feather-button-link-font-weight);
text-decoration: underline;
text-decoration-thickness: var(--feather-space-1);
text-underline-offset: var(--feather-space-4);
}
.Button.Button--link:hover,
.Button.Button--link.is-hover,
.Button.Button--link:focus,
.Button.Button--link.is-focus,
.Button.Button--link:active,
.Button.Button--link.is-active,
.Button.Button--link.is-focus.is-active,
.Button.Button--link:focus:active:not(.is-mouseFocus),
.u-featherBackgroundDark .Button.Button--link:hover,
.u-featherBackgroundDark .Button.Button--link.is-hover,
.u-featherBackgroundDark .Button.Button--link:focus,
.u-featherBackgroundDark .Button.Button--link.is-focus,
.u-featherBackgroundDark .Button.Button--link:active,
.u-featherBackgroundDark .Button.Button--link.is-active,
.u-featherBackgroundDark .Button.Button--link.is-focus.is-active,
.u-featherBackgroundDark .Button.Button--link:focus:active:not(.is-mouseFocus) {
background: transparent;
border-color: transparent;
color: var(--feather-button-link-color);
text-decoration: underline;
text-decoration-thickness: var(--feather-space-2);
}
.Button.Button--link[disabled],
.Button.Button--link.is-disabled,
fieldset[disabled] .Button.Button--link {
cursor: default;
opacity: 0.5;
text-decoration: underline;
text-decoration-thickness: var(--feather-space-1);
}
.Button.Button--dangerLink {
padding-left: 0;
padding-right: 0;
background: transparent;
border: none;
border-radius: var(--feather-form-control-default-border-radius);
box-shadow: none;
color: var(--feather-button-danger-link-color);
cursor: pointer;
font-family: var(--feather-font-family-base);
font-weight: var(--feather-button-link-font-weight);
text-decoration: underline;
text-decoration-thickness: var(--feather-space-1);
text-underline-offset: var(--feather-space-4);
}
.Button.Button--dangerLink:hover,
.Button.Button--dangerLink.is-hover,
.Button.Button--dangerLink:focus,
.Button.Button--dangerLink.is-focus,
.Button.Button--dangerLink:active,
.Button.Button--dangerLink.is-active,
.Button.Button--dangerLink.is-focus.is-active,
.Button.Button--dangerLink:focus:active:not(.is-mouseFocus),
.u-featherBackgroundDark .Button.Button--dangerLink:hover,
.u-featherBackgroundDark .Button.Button--dangerLink.is-hover,
.u-featherBackgroundDark .Button.Button--dangerLink:focus,
.u-featherBackgroundDark .Button.Button--dangerLink.is-focus,
.u-featherBackgroundDark .Button.Button--dangerLink:active,
.u-featherBackgroundDark .Button.Button--dangerLink.is-active,
.u-featherBackgroundDark .Button.Button--dangerLink.is-focus.is-active,
.u-featherBackgroundDark .Button.Button--dangerLink:focus:active:not(.is-mouseFocus) {
background: transparent;
border-color: transparent;
color: var(--feather-button-danger-link-color);
text-decoration: underline;
text-decoration-thickness: var(--feather-space-2);
}
.Button.Button--dangerLink[disabled],
.Button.Button--dangerLink.is-disabled,
fieldset[disabled] .Button.Button--dangerLink {
cursor: default;
opacity: 0.5;
text-decoration: underline;
text-decoration-thickness: var(--feather-space-1);
}
/* Sizes */
.Button {
padding: 0 var(--feather-space-16);
border-radius: var(--feather-form-control-default-height);
font-size: var(--feather-form-control-default-font-size);
height: var(--feather-form-control-default-height);
line-height: calc(var(--feather-form-control-default-height) - (var(--feather-border-width-small-experimental) * 2));
}
.Button--xsmall,
.ButtonGroup--xsmall > .Button {
padding: 0 var(--feather-space-12);
border-radius: var(--feather-form-control-xsmall-height);
font-size: var(--feather-font-size-subtext-1);
height: var(--feather-form-control-xsmall-height);
line-height: calc(var(--feather-form-control-xsmall-height) - (var(--feather-border-width-small-experimental) * 2));
}
.Button--small,
.ButtonGroup--small > .Button {
padding: 0 var(--feather-space-16);
border-radius: var(--feather-form-control-small-height);
font-size: var(--feather-font-size-subtext-1);
height: var(--feather-form-control-small-height);
line-height: calc(var(--feather-form-control-small-height) - (var(--feather-border-width-small-experimental) * 2));
}
.Button--large,
.ButtonGroup--large > .Button {
padding: 0 var(--feather-space-24);
border-radius: var(--feather-form-control-large-height);
font-size: var(--feather-font-size-body);
height: var(--feather-form-control-large-height);
line-height: calc(var(--feather-form-control-large-height) - (var(--feather-border-width-small-experimental) * 2));
}