1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 | @use 'sass:color';
|
24 | @use '@material/animation/variables' as animation-variables;
|
25 | @use '@material/density/variables' as density-variables;
|
26 | @use '@material/theme/theme-color';
|
27 |
|
28 | $fill-color-default: color.mix(
|
29 | theme-color.prop-value(on-surface),
|
30 | theme-color.prop-value(surface),
|
31 | 12%
|
32 | ) !default;
|
33 | $ink-color-default: rgba(theme-color.prop-value(on-surface), 0.87) !default;
|
34 | $horizontal-padding: 12px !default;
|
35 | $height: 32px !default;
|
36 | $shape-radius: 50% !default;
|
37 |
|
38 | $minimum-height: 24px !default;
|
39 | $maximum-height: $height !default;
|
40 | $density-scale: density-variables.$default-scale !default;
|
41 | $density-config: (
|
42 | height: (
|
43 | default: $height,
|
44 | maximum: $maximum-height,
|
45 | minimum: $minimum-height,
|
46 | ),
|
47 | ) !default;
|
48 |
|
49 | $icon-color: theme-color.prop-value(on-surface) !default;
|
50 | $icon-opacity: 0.54 !default;
|
51 | $trailing-icon-hover-opacity: 0.62 !default;
|
52 | $trailing-icon-focus-opacity: 0.87 !default;
|
53 | $leading-icon-size: 20px !default;
|
54 | $trailing-icon-size: 18px !default;
|
55 |
|
56 | $leading-icon-delay: -50ms !default;
|
57 | $checkmark-with-leading-icon-delay: 80ms !default;
|
58 |
|
59 | $checkmark-animation-delay: 50ms !default;
|
60 | $checkmark-animation-duration: 150ms !default;
|
61 | $width-animation-duration: 150ms !default;
|
62 | $opacity-animation-duration: 75ms !default;
|
63 |
|
64 | $leading-icon-margin-right: 4px !default;
|
65 | $leading-icon-margin-left: -4px !default;
|
66 |
|
67 | $trailing-icon-margin-right: -4px !default;
|
68 | $trailing-icon-margin-left: 4px !default;
|
69 |
|
70 | $exit-transition: opacity 75ms
|
71 | animation-variables.$standard-curve-timing-function,
|
72 | width 150ms animation-variables.$deceleration-curve-timing-function,
|
73 | padding 100ms linear, margin 100ms linear !default;
|