-
Notifications
You must be signed in to change notification settings - Fork 33
Expand file tree
/
Copy pathbutton-vars.scss
More file actions
61 lines (41 loc) · 2.25 KB
/
button-vars.scss
File metadata and controls
61 lines (41 loc) · 2.25 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
@import "../style/base";
// /\* (.+) \*/\n\$([^:]+): .*$\n?
// * @cssprop --$2 - $1
/* Letter spacing */
$button-letter-spacing: var(--button-letter-spacing, #{size(2)});
/* Transition */
$button-transition: var(--button-transition, box-shadow #{$transition-duration-slow} #{$transition-ease}, background #{$transition-duration-medium} #{$transition-ease}, color #{$transition-duration-medium} #{$transition-ease});
/* Padding */
$button-padding: var(--button-padding, #{$spacing-m} #{$spacing-l});
/* Font size */
$button-font-size: var(--button-font-size, #{$font-size-m});
/* Border radius */
$button-border-radius: var(--button-border-radius, #{$border-radius-m});
/* Font family */
$button-font-family: var(--button-font-family, #{$font-family-sans-serif});
/* Size of the button when fab attribute is present. */
$button-fab-size: var(--button-fab-size, #{size(40)});
/* Default color */
$button-color: var(--button-color, #{color-contrast("primary")});
/* Default background */
$button-bg: var(--button-bg, #{color("primary")});
/* Default shadow color */
$button-shadow-color: var(--button-shadow-color, #{color("primary", $default-hue, 0.2)});
/* Color when :hover or :focus */
$button-color-hover: var(--button-color-hover, #{color-contrast("primary", $light-hue)});
/* Background when :hover or :focus */
$button-bg-hover: var(--button-bg-hover, #{color("primary", $light-hue)});
/* Shadow color when :hover or :focus */
$button-shadow-color-hover: var(--button-shadow-color-hover, #{color("primary", $default-hue, 0.5)});
/* Button color when :active */
$button-color-active: var(--button-color-active, #{color-contrast("primary", $default-hue)});
/* Background when :active */
$button-bg-active: var(--button-bg-active, #{color("primary", $default-hue)});
/* Background when :active and flat attribute is present. */
$button-bg-active-flat: var(--button-bg-active-flat, #{color("primary", $default-hue, 0.08)});
/* Color when disabled */
$button-color-disabled: var(--button-color-disabled, #{color-contrast("shade", $light-hue)});
/* Background when disabled */
$button-bg-disabled: var(--button-bg-disabled, #{color("shade", $light-hue)});
/* Border when outlined attribute is present */
$button-border-outlined: var(--button-border-outlined, #{size(2)} solid currentColor);