UNPKG

2.81 kBSCSSView Raw
1//
2// Copyright 2017 Google Inc.
3//
4// Permission is hereby granted, free of charge, to any person obtaining a copy
5// of this software and associated documentation files (the "Software"), to deal
6// in the Software without restriction, including without limitation the rights
7// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8// copies of the Software, and to permit persons to whom the Software is
9// furnished to do so, subject to the following conditions:
10//
11// The above copyright notice and this permission notice shall be included in
12// all copies or substantial portions of the Software.
13//
14// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20// THE SOFTWARE.
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// Speed up delay to bridge gap between leading icon and checkmark transition.
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;