-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbutton.scss
More file actions
72 lines (59 loc) · 1.34 KB
/
button.scss
File metadata and controls
72 lines (59 loc) · 1.34 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
/**
* @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;
&--with-badge {
position: relative;
}
&__text {
flex-shrink: 1;
text-align: center;
white-space: nowrap;
}
.button__icon {
flex-shrink: 0;
display: block;
fill: currentColor;
}
&--primary {
color: var(--button-color);
background: var(--button-bg);
&[disabled] {
background: var(--button-disabled-bg);
}
}
&--secondary {
//
}
// Size.
&--large {
--button-font-size: var(--font-size-xs, 16px);
}
&--regular {
--button-font-size: var(--font-size-2xs, 14px);
}
&--small {
--button-font-size: var(--font-size-3xs, 12px);
}
&--icon-only {
--button-padding: 0;
}
}