-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbutton.css
More file actions
55 lines (55 loc) · 1.29 KB
/
button.css
File metadata and controls
55 lines (55 loc) · 1.29 KB
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
/**
* @file button.scss
* Styles for buttons
*/
.button {
--button-padding: 0.7em 1em;
--button-font-size: var(--font-size-2xs, 0.875rem);
--button-inline-gap: var(--space-sm, 8px);
--button-bg: var(--color-button-primary-background, #186cd5);
--button-color: var(--color-button-primary-color, #ffffff);
--button-disabled-bg: var(--color-button-disabled-background, #94A3B8);
display: inline-flex;
min-width: max-content;
max-width: 100%;
padding: var(--button-padding);
align-items: center;
gap: var(--button-inline-gap);
min-width: max-content;
border: 0;
border-radius: var(--radius-xs, 3px);
font-size: var(--button-font-size);
text-transform: uppercase;
}
.button--with-badge {
position: relative;
}
.button__text {
flex-shrink: 1;
text-align: center;
white-space: nowrap;
}
.button .button__icon {
flex-shrink: 0;
display: block;
fill: currentColor;
}
.button--primary {
color: var(--button-color);
background: var(--button-bg);
}
.button--primary[disabled] {
background: var(--button-disabled-bg);
}
.button--large {
--button-font-size: var(--font-size-xs, 16px);
}
.button--regular {
--button-font-size: var(--font-size-2xs, 14px);
}
.button--small {
--button-font-size: var(--font-size-3xs, 12px);
}
.button--icon-only {
--button-padding: 0;
}