|
| 1 | +/** |
| 2 | + * @file button.scss |
| 3 | + * Styles for buttons |
| 4 | + */ |
1 | 5 | .button { |
| 6 | + --button-padding: 0.7em 1em; |
| 7 | + --button-font-size: var(--font-size-2xs, 0.875rem); |
| 8 | + --button-inline-gap: var(--space-sm, 8px); |
| 9 | + --button-bg: var(--color-button-primary-background, #186cd5); |
| 10 | + --button-color: var(--color-button-primary-color, #ffffff); |
| 11 | + --button-disabled-bg: var(--color-button-disabled-background, #94A3B8); |
2 | 12 | display: inline-flex; |
3 | | - padding: var(--space-lg, 16px); |
| 13 | + min-width: max-content; |
| 14 | + max-width: 100%; |
| 15 | + padding: var(--button-padding); |
4 | 16 | align-items: center; |
5 | | - gap: var(--space-sm, 8px); |
| 17 | + gap: var(--button-inline-gap); |
| 18 | + min-width: max-content; |
| 19 | + border: 0; |
6 | 20 | border-radius: var(--radius-xs, 3px); |
7 | | - font-size: var(--font-size-3xs, 12px); |
| 21 | + font-size: var(--button-font-size); |
8 | 22 | text-transform: uppercase; |
9 | 23 | } |
10 | 24 | .button--with-badge { |
11 | 25 | position: relative; |
12 | 26 | } |
| 27 | +.button__text { |
| 28 | + flex-shrink: 1; |
| 29 | + text-align: center; |
| 30 | + white-space: nowrap; |
| 31 | +} |
| 32 | +.button .button__icon { |
| 33 | + flex-shrink: 0; |
| 34 | + display: block; |
| 35 | + fill: currentColor; |
| 36 | +} |
13 | 37 | .button--primary { |
14 | | - color: var(--color-buttons-button-primary-color, #ffffff); |
15 | | - background: var(--color-buttons-button-primary-background, #186cd5); |
| 38 | + color: var(--button-color); |
| 39 | + background: var(--button-bg); |
16 | 40 | } |
17 | 41 | .button--primary[disabled] { |
18 | | - background: var(--color-buttons-button-disabled-background, #94A3B8); |
| 42 | + background: var(--button-disabled-bg); |
| 43 | +} |
| 44 | +.button--large { |
| 45 | + --button-font-size: var(--font-size-xs, 16px); |
| 46 | +} |
| 47 | +.button--small { |
| 48 | + --button-font-size: var(--font-size-3xs, 12px); |
19 | 49 | } |
0 commit comments