material_components_web-sass 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.gitignore +11 -0
- data/.rspec +2 -0
- data/.travis.yml +7 -0
- data/CHANGELOG.md +8 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +21 -0
- data/README.md +97 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/lib/material_components_web-sass.rb +52 -0
- data/lib/material_components_web/sass/engine.rb +18 -0
- data/lib/material_components_web/sass/version.rb +5 -0
- data/material_components_web-sass.gemspec +32 -0
- data/vendor/assets/fonts/material-icons/LICENSE +202 -0
- data/vendor/assets/fonts/material-icons/MaterialIcons-Regular.eot +0 -0
- data/vendor/assets/fonts/material-icons/MaterialIcons-Regular.ttf +0 -0
- data/vendor/assets/fonts/material-icons/MaterialIcons-Regular.woff +0 -0
- data/vendor/assets/fonts/material-icons/MaterialIcons-Regular.woff2 +0 -0
- data/vendor/assets/fonts/roboto/LICENSE.txt +202 -0
- data/vendor/assets/fonts/roboto/Roboto-Bold.ttf +0 -0
- data/vendor/assets/fonts/roboto/Roboto-Bold.woff +0 -0
- data/vendor/assets/fonts/roboto/Roboto-Bold.woff2 +0 -0
- data/vendor/assets/fonts/roboto/Roboto-Light.ttf +0 -0
- data/vendor/assets/fonts/roboto/Roboto-Light.woff +0 -0
- data/vendor/assets/fonts/roboto/Roboto-Light.woff2 +0 -0
- data/vendor/assets/fonts/roboto/Roboto-Medium.ttf +0 -0
- data/vendor/assets/fonts/roboto/Roboto-Medium.woff +0 -0
- data/vendor/assets/fonts/roboto/Roboto-Medium.woff2 +0 -0
- data/vendor/assets/fonts/roboto/Roboto-Regular.ttf +0 -0
- data/vendor/assets/fonts/roboto/Roboto-Regular.woff +0 -0
- data/vendor/assets/fonts/roboto/Roboto-Regular.woff2 +0 -0
- data/vendor/assets/fonts/roboto/Roboto-Thin.ttf +0 -0
- data/vendor/assets/fonts/roboto/Roboto-Thin.woff +0 -0
- data/vendor/assets/fonts/roboto/Roboto-Thin.woff2 +0 -0
- data/vendor/assets/javascripts/material-components-web.js +5492 -0
- data/vendor/assets/stylesheets/@material/animation/_functions.scss +25 -0
- data/vendor/assets/stylesheets/@material/animation/_mixins.scss +29 -0
- data/vendor/assets/stylesheets/@material/animation/_variables.scss +19 -0
- data/vendor/assets/stylesheets/@material/animation/mdc-animation.scss +31 -0
- data/vendor/assets/stylesheets/@material/button/mdc-button.scss +199 -0
- data/vendor/assets/stylesheets/@material/card/mdc-card.scss +179 -0
- data/vendor/assets/stylesheets/@material/checkbox/_keyframes.scss +180 -0
- data/vendor/assets/stylesheets/@material/checkbox/_variables.scss +31 -0
- data/vendor/assets/stylesheets/@material/checkbox/mdc-checkbox.scss +310 -0
- data/vendor/assets/stylesheets/@material/drawer/_mixins.scss +145 -0
- data/vendor/assets/stylesheets/@material/drawer/mdc-drawer.scss +18 -0
- data/vendor/assets/stylesheets/@material/drawer/permanent/mdc-permanent-drawer.scss +54 -0
- data/vendor/assets/stylesheets/@material/drawer/temporary/mdc-temporary-drawer.scss +134 -0
- data/vendor/assets/stylesheets/@material/elevation/_mixins.scss +68 -0
- data/vendor/assets/stylesheets/@material/elevation/_variables.scss +122 -0
- data/vendor/assets/stylesheets/@material/elevation/mdc-elevation.scss +27 -0
- data/vendor/assets/stylesheets/@material/fab/mdc-fab.scss +122 -0
- data/vendor/assets/stylesheets/@material/fonts/material-icons.scss +36 -0
- data/vendor/assets/stylesheets/@material/fonts/roboto.scss +45 -0
- data/vendor/assets/stylesheets/@material/form-field/mdc-form-field.scss +64 -0
- data/vendor/assets/stylesheets/@material/icon-toggle/mdc-icon-toggle.scss +133 -0
- data/vendor/assets/stylesheets/@material/list/mdc-list.scss +207 -0
- data/vendor/assets/stylesheets/@material/menu/mdc-menu.scss +22 -0
- data/vendor/assets/stylesheets/@material/menu/simple/mdc-simple-menu.scss +194 -0
- data/vendor/assets/stylesheets/@material/radio/mdc-radio.scss +198 -0
- data/vendor/assets/stylesheets/@material/ripple/_keyframes.scss +61 -0
- data/vendor/assets/stylesheets/@material/ripple/_mixins.scss +196 -0
- data/vendor/assets/stylesheets/@material/ripple/_variables.scss +17 -0
- data/vendor/assets/stylesheets/@material/ripple/mdc-ripple.scss +80 -0
- data/vendor/assets/stylesheets/@material/rtl/_mixins.scss +251 -0
- data/vendor/assets/stylesheets/@material/select/mdc-select.scss +174 -0
- data/vendor/assets/stylesheets/@material/snackbar/_variables.scss +22 -0
- data/vendor/assets/stylesheets/@material/snackbar/mdc-snackbar.scss +126 -0
- data/vendor/assets/stylesheets/@material/textfield/mdc-textfield.scss +512 -0
- data/vendor/assets/stylesheets/@material/theme/_constants.scss +285 -0
- data/vendor/assets/stylesheets/@material/theme/_functions.scss +64 -0
- data/vendor/assets/stylesheets/@material/theme/_mixins.scss +104 -0
- data/vendor/assets/stylesheets/@material/theme/_variables.scss +80 -0
- data/vendor/assets/stylesheets/@material/theme/mdc-theme.scss +43 -0
- data/vendor/assets/stylesheets/@material/typography/_mixins.scss +45 -0
- data/vendor/assets/stylesheets/@material/typography/_variables.scss +109 -0
- data/vendor/assets/stylesheets/@material/typography/mdc-typography.scss +32 -0
- data/vendor/assets/stylesheets/_material-components-web.scss +36 -0
- metadata +195 -0
@@ -0,0 +1,180 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright 2016 Google Inc. All Rights Reserved.
|
3
|
+
*
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
* you may not use this file except in compliance with the License.
|
6
|
+
* You may obtain a copy of the License at
|
7
|
+
*
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
*
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
* See the License for the specific language governing permissions and
|
14
|
+
* limitations under the License.
|
15
|
+
*/
|
16
|
+
|
17
|
+
@import "@material/theme/mixins";
|
18
|
+
@import "./variables";
|
19
|
+
|
20
|
+
@keyframes mdc-checkbox-fade-in-background {
|
21
|
+
0% {
|
22
|
+
border-color: $mdc-checkbox-border-color;
|
23
|
+
background-color: transparent;
|
24
|
+
}
|
25
|
+
|
26
|
+
50% {
|
27
|
+
@include mdc-theme-prop(border-color, primary);
|
28
|
+
@include mdc-theme-prop(background-color, primary);
|
29
|
+
}
|
30
|
+
}
|
31
|
+
|
32
|
+
@keyframes mdc-checkbox-fade-out-background {
|
33
|
+
0%,
|
34
|
+
80% {
|
35
|
+
@include mdc-theme-prop(border-color, primary);
|
36
|
+
@include mdc-theme-prop(background-color, primary);
|
37
|
+
}
|
38
|
+
|
39
|
+
100% {
|
40
|
+
border-color: $mdc-checkbox-border-color;
|
41
|
+
background-color: transparent;
|
42
|
+
}
|
43
|
+
}
|
44
|
+
|
45
|
+
@keyframes mdc-checkbox-fade-in-background-dark {
|
46
|
+
0% {
|
47
|
+
border-color: $mdc-checkbox-border-color-dark;
|
48
|
+
background-color: transparent;
|
49
|
+
}
|
50
|
+
|
51
|
+
50% {
|
52
|
+
@include mdc-theme-prop(border-color, primary);
|
53
|
+
@include mdc-theme-prop(background-color, primary);
|
54
|
+
}
|
55
|
+
}
|
56
|
+
|
57
|
+
@keyframes mdc-checkbox-fade-out-background-dark {
|
58
|
+
0%,
|
59
|
+
80% {
|
60
|
+
@include mdc-theme-prop(border-color, primary);
|
61
|
+
@include mdc-theme-prop(background-color, primary);
|
62
|
+
}
|
63
|
+
|
64
|
+
100% {
|
65
|
+
border-color: $mdc-checkbox-border-color-dark;
|
66
|
+
background-color: transparent;
|
67
|
+
}
|
68
|
+
}
|
69
|
+
|
70
|
+
@keyframes mdc-checkbox-unchecked-checked-checkmark-path {
|
71
|
+
0%,
|
72
|
+
50% {
|
73
|
+
stroke-dashoffset: $_mdc-checkbox-mark-path-length;
|
74
|
+
}
|
75
|
+
|
76
|
+
50% {
|
77
|
+
@include mdc-animation-linear-out-slow-in;
|
78
|
+
}
|
79
|
+
|
80
|
+
100% {
|
81
|
+
stroke-dashoffset: 0;
|
82
|
+
}
|
83
|
+
}
|
84
|
+
|
85
|
+
@keyframes mdc-checkbox-unchecked-indeterminate-mixedmark {
|
86
|
+
0%,
|
87
|
+
68.2% {
|
88
|
+
transform: scaleX(0);
|
89
|
+
}
|
90
|
+
|
91
|
+
68.2% {
|
92
|
+
animation-timing-function: cubic-bezier(0, 0, 0, 1);
|
93
|
+
}
|
94
|
+
|
95
|
+
100% {
|
96
|
+
transform: scaleX(1);
|
97
|
+
}
|
98
|
+
}
|
99
|
+
|
100
|
+
@keyframes mdc-checkbox-checked-unchecked-checkmark-path {
|
101
|
+
from {
|
102
|
+
@include mdc-animation-fast-out-linear-in;
|
103
|
+
|
104
|
+
opacity: 1;
|
105
|
+
stroke-dashoffset: 0;
|
106
|
+
}
|
107
|
+
|
108
|
+
to {
|
109
|
+
opacity: 0;
|
110
|
+
stroke-dashoffset: $_mdc-checkbox-mark-path-length * -1;
|
111
|
+
}
|
112
|
+
}
|
113
|
+
|
114
|
+
@keyframes mdc-checkbox-checked-indeterminate-checkmark {
|
115
|
+
from {
|
116
|
+
transform: rotate(0deg);
|
117
|
+
opacity: 1;
|
118
|
+
|
119
|
+
@include mdc-animation-linear-out-slow-in;
|
120
|
+
}
|
121
|
+
|
122
|
+
to {
|
123
|
+
transform: rotate(45deg);
|
124
|
+
opacity: 0;
|
125
|
+
}
|
126
|
+
}
|
127
|
+
|
128
|
+
@keyframes mdc-checkbox-indeterminate-checked-checkmark {
|
129
|
+
from {
|
130
|
+
transform: rotate(45deg);
|
131
|
+
opacity: 0;
|
132
|
+
animation-timing-function: $_mdc-checkbox-indeterminate-checked-easing-function;
|
133
|
+
}
|
134
|
+
|
135
|
+
to {
|
136
|
+
transform: rotate(360deg);
|
137
|
+
opacity: 1;
|
138
|
+
}
|
139
|
+
}
|
140
|
+
|
141
|
+
@keyframes mdc-checkbox-checked-indeterminate-mixedmark {
|
142
|
+
from {
|
143
|
+
transform: rotate(-45deg);
|
144
|
+
opacity: 0;
|
145
|
+
|
146
|
+
@include mdc-animation-linear-out-slow-in;
|
147
|
+
}
|
148
|
+
|
149
|
+
to {
|
150
|
+
transform: rotate(0deg);
|
151
|
+
opacity: 1;
|
152
|
+
}
|
153
|
+
}
|
154
|
+
|
155
|
+
@keyframes mdc-checkbox-indeterminate-checked-mixedmark {
|
156
|
+
from {
|
157
|
+
transform: rotate(0deg);
|
158
|
+
opacity: 1;
|
159
|
+
animation-timing-function: $_mdc-checkbox-indeterminate-checked-easing-function;
|
160
|
+
}
|
161
|
+
|
162
|
+
to {
|
163
|
+
transform: rotate(315deg);
|
164
|
+
opacity: 0;
|
165
|
+
}
|
166
|
+
}
|
167
|
+
|
168
|
+
@keyframes mdc-checkbox-indeterminate-unchecked-mixedmark {
|
169
|
+
0% {
|
170
|
+
transform: scaleX(1);
|
171
|
+
opacity: 1;
|
172
|
+
animation-timing-function: linear;
|
173
|
+
}
|
174
|
+
|
175
|
+
32.8%,
|
176
|
+
100% {
|
177
|
+
transform: scaleX(0);
|
178
|
+
opacity: 0;
|
179
|
+
}
|
180
|
+
}
|
@@ -0,0 +1,31 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright 2016 Google Inc. All Rights Reserved.
|
3
|
+
*
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
* you may not use this file except in compliance with the License.
|
6
|
+
* You may obtain a copy of the License at
|
7
|
+
*
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
*
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
* See the License for the specific language governing permissions and
|
14
|
+
* limitations under the License.
|
15
|
+
*/
|
16
|
+
|
17
|
+
$mdc-checkbox-mark-color: white !default;
|
18
|
+
$mdc-checkbox-border-color: rgba(black, .54) !default;
|
19
|
+
$mdc-checkbox-border-color-dark: white !default;
|
20
|
+
$mdc-checkbox-disabled-color: rgba(black, .26) !default;
|
21
|
+
$mdc-checkbox-disabled-color-dark: rgba(white, .3) !default;
|
22
|
+
|
23
|
+
$mdc-checkbox-size: 18px;
|
24
|
+
$mdc-checkbox-mark-stroke-size: 2/15 * $mdc-checkbox-size;
|
25
|
+
$mdc-checkbox-border-width: 2px;
|
26
|
+
$mdc-checkbox-transition-duration: 90ms;
|
27
|
+
$mdc-checkbox-item-spacing: 4px;
|
28
|
+
|
29
|
+
/* Manual calculation done on SVG */
|
30
|
+
$_mdc-checkbox-mark-path-length: 29.7833385;
|
31
|
+
$_mdc-checkbox-indeterminate-checked-easing-function: cubic-bezier(.14, 0, 0, 1);
|
@@ -0,0 +1,310 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright 2016 Google Inc. All Rights Reserved.
|
3
|
+
*
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
* you may not use this file except in compliance with the License.
|
6
|
+
* You may obtain a copy of the License at
|
7
|
+
*
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
*
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
* See the License for the specific language governing permissions and
|
14
|
+
* limitations under the License.
|
15
|
+
*/
|
16
|
+
|
17
|
+
@import "@material/animation/functions";
|
18
|
+
@import "@material/animation/mixins";
|
19
|
+
@import "./variables";
|
20
|
+
@import "./keyframes";
|
21
|
+
|
22
|
+
@function mdc-checkbox-transition($property, $timing-function, $delay: 0ms, $duration: $mdc-checkbox-transition-duration) {
|
23
|
+
@return $property $duration $timing-function $delay;
|
24
|
+
}
|
25
|
+
|
26
|
+
@function mdc-checkbox-transition-enter($property, $delay: 0ms, $duration: $mdc-checkbox-transition-duration) {
|
27
|
+
@return mdc-animation-enter($property, $duration, $delay);
|
28
|
+
}
|
29
|
+
|
30
|
+
@function mdc-checkbox-transition-exit($property, $delay: 0ms, $duration: $mdc-checkbox-transition-duration) {
|
31
|
+
@return mdc-animation-exit($property, $duration, $delay);
|
32
|
+
}
|
33
|
+
|
34
|
+
@mixin mdc-checkbox-cover-element {
|
35
|
+
position: absolute;
|
36
|
+
top: 0;
|
37
|
+
right: 0;
|
38
|
+
bottom: 0;
|
39
|
+
left: 0;
|
40
|
+
}
|
41
|
+
|
42
|
+
@mixin mdc-checkbox-outer-box {
|
43
|
+
border-radius: 2px;
|
44
|
+
|
45
|
+
@include mdc-checkbox-cover-element;
|
46
|
+
|
47
|
+
box-sizing: border-box;
|
48
|
+
pointer-events: none;
|
49
|
+
}
|
50
|
+
|
51
|
+
/* postcss-bem-linter: define checkbox */
|
52
|
+
.mdc-checkbox {
|
53
|
+
display: inline-block;
|
54
|
+
position: relative;
|
55
|
+
width: $mdc-checkbox-size;
|
56
|
+
height: $mdc-checkbox-size;
|
57
|
+
line-height: 0;
|
58
|
+
white-space: nowrap;
|
59
|
+
cursor: pointer;
|
60
|
+
vertical-align: bottom;
|
61
|
+
|
62
|
+
&__background {
|
63
|
+
@include mdc-checkbox-outer-box;
|
64
|
+
|
65
|
+
display: inline-flex;
|
66
|
+
align-items: center;
|
67
|
+
justify-content: center;
|
68
|
+
transition:
|
69
|
+
mdc-checkbox-transition-exit(background-color),
|
70
|
+
mdc-checkbox-transition-exit(border-color);
|
71
|
+
border: $mdc-checkbox-border-width solid $mdc-checkbox-border-color;
|
72
|
+
background-color: transparent;
|
73
|
+
will-change: background-color, border-color;
|
74
|
+
|
75
|
+
@include mdc-theme-dark(".mdc-checkbox") {
|
76
|
+
border-color: $mdc-checkbox-border-color-dark;
|
77
|
+
}
|
78
|
+
|
79
|
+
/** The frame's ::before element is used as a focus indicator for the checkbox */
|
80
|
+
&::before {
|
81
|
+
@include mdc-checkbox-cover-element;
|
82
|
+
|
83
|
+
transform: scale(0, 0);
|
84
|
+
transition: mdc-checkbox-transition-exit(opacity), mdc-checkbox-transition-exit(transform);
|
85
|
+
border-radius: 50%;
|
86
|
+
content: "";
|
87
|
+
opacity: 0;
|
88
|
+
pointer-events: none;
|
89
|
+
will-change: opacity, transform;
|
90
|
+
|
91
|
+
@include mdc-theme-prop(background, primary);
|
92
|
+
}
|
93
|
+
}
|
94
|
+
|
95
|
+
&__native-control {
|
96
|
+
position: absolute;
|
97
|
+
top: 0;
|
98
|
+
left: 0;
|
99
|
+
width: 100%;
|
100
|
+
height: 100%;
|
101
|
+
margin: 0;
|
102
|
+
padding: 0;
|
103
|
+
cursor: inherit;
|
104
|
+
opacity: 0;
|
105
|
+
}
|
106
|
+
|
107
|
+
&__checkmark {
|
108
|
+
@include mdc-checkbox-cover-element;
|
109
|
+
|
110
|
+
width: 100%;
|
111
|
+
transition: mdc-checkbox-transition-exit(opacity, 0ms, $mdc-checkbox-transition-duration * 2);
|
112
|
+
opacity: 0;
|
113
|
+
fill: $mdc-checkbox-mark-color;
|
114
|
+
|
115
|
+
&__path {
|
116
|
+
transition:
|
117
|
+
mdc-checkbox-transition-exit(
|
118
|
+
stroke-dashoffset,
|
119
|
+
0ms,
|
120
|
+
$mdc-checkbox-transition-duration * 2
|
121
|
+
);
|
122
|
+
// !important is needed here because a stroke must be set as an attribute on the SVG in order
|
123
|
+
// for line animation to work properly.
|
124
|
+
stroke: $mdc-checkbox-mark-color !important;
|
125
|
+
stroke-width: $mdc-checkbox-mark-stroke-size * 1.3;
|
126
|
+
stroke-dashoffset: $_mdc-checkbox-mark-path-length;
|
127
|
+
stroke-dasharray: $_mdc-checkbox-mark-path-length;
|
128
|
+
}
|
129
|
+
}
|
130
|
+
|
131
|
+
&__mixedmark {
|
132
|
+
width: 100%;
|
133
|
+
height: floor($mdc-checkbox-mark-stroke-size);
|
134
|
+
transform: scaleX(0) rotate(0deg);
|
135
|
+
transition: mdc-checkbox-transition-exit(opacity), mdc-checkbox-transition-exit(transform);
|
136
|
+
background-color: $mdc-checkbox-mark-color;
|
137
|
+
opacity: 0;
|
138
|
+
}
|
139
|
+
}
|
140
|
+
|
141
|
+
.mdc-checkbox__native-control:focus {
|
142
|
+
~ .mdc-checkbox__background::before {
|
143
|
+
transform: scale(2.75, 2.75);
|
144
|
+
transition:
|
145
|
+
mdc-checkbox-transition-enter(opacity, 0ms, 80ms),
|
146
|
+
mdc-checkbox-transition-enter(transform, 0ms, 80ms);
|
147
|
+
opacity: .26;
|
148
|
+
}
|
149
|
+
}
|
150
|
+
|
151
|
+
.mdc-checkbox__native-control:checked {
|
152
|
+
~ .mdc-checkbox__background {
|
153
|
+
transition:
|
154
|
+
mdc-checkbox-transition-enter(border-color),
|
155
|
+
mdc-checkbox-transition-enter(background-color);
|
156
|
+
|
157
|
+
@include mdc-theme-prop(border-color, primary);
|
158
|
+
@include mdc-theme-prop(background-color, primary);
|
159
|
+
|
160
|
+
.mdc-checkbox__checkmark {
|
161
|
+
transition:
|
162
|
+
mdc-checkbox-transition-enter(opacity, 0ms, $mdc-checkbox-transition-duration * 2),
|
163
|
+
mdc-checkbox-transition-enter(transform, 0ms, $mdc-checkbox-transition-duration * 2);
|
164
|
+
opacity: 1;
|
165
|
+
|
166
|
+
&__path {
|
167
|
+
stroke-dashoffset: 0;
|
168
|
+
}
|
169
|
+
}
|
170
|
+
|
171
|
+
.mdc-checkbox__mixedmark {
|
172
|
+
transform: scaleX(1) rotate(-45deg);
|
173
|
+
}
|
174
|
+
}
|
175
|
+
}
|
176
|
+
|
177
|
+
.mdc-checkbox__native-control:indeterminate {
|
178
|
+
~ .mdc-checkbox__background {
|
179
|
+
@include mdc-theme-prop(border-color, primary);
|
180
|
+
@include mdc-theme-prop(background-color, primary);
|
181
|
+
|
182
|
+
.mdc-checkbox__checkmark {
|
183
|
+
transform: rotate(45deg);
|
184
|
+
transition:
|
185
|
+
mdc-checkbox-transition-exit(opacity, 0ms, $mdc-checkbox-transition-duration),
|
186
|
+
mdc-checkbox-transition-exit(transform, 0ms, $mdc-checkbox-transition-duration);
|
187
|
+
opacity: 0;
|
188
|
+
|
189
|
+
&__path {
|
190
|
+
stroke-dashoffset: 0;
|
191
|
+
}
|
192
|
+
}
|
193
|
+
|
194
|
+
.mdc-checkbox__mixedmark {
|
195
|
+
transform: scaleX(1) rotate(0deg);
|
196
|
+
opacity: 1;
|
197
|
+
}
|
198
|
+
}
|
199
|
+
}
|
200
|
+
|
201
|
+
.mdc-checkbox__native-control:disabled,
|
202
|
+
fieldset:disabled .mdc-checkbox__native-control,
|
203
|
+
[aria-disabled="true"] .mdc-checkbox__native-control {
|
204
|
+
cursor: default;
|
205
|
+
|
206
|
+
/* postcss-bem-linter: ignore */
|
207
|
+
~ .mdc-checkbox__background {
|
208
|
+
border-color: $mdc-checkbox-disabled-color;
|
209
|
+
|
210
|
+
@include mdc-theme-dark(".mdc-checkbox") {
|
211
|
+
border-color: $mdc-checkbox-disabled-color-dark;
|
212
|
+
}
|
213
|
+
}
|
214
|
+
|
215
|
+
&:checked,
|
216
|
+
&:indeterminate {
|
217
|
+
~ .mdc-checkbox__background {
|
218
|
+
border-color: transparent;
|
219
|
+
background-color: $mdc-checkbox-disabled-color;
|
220
|
+
/* stylelint-disable selector-max-compound-selectors, selector-max-specificity */
|
221
|
+
@include mdc-theme-dark(".mdc-checkbox") {
|
222
|
+
background-color: $mdc-checkbox-disabled-color-dark;
|
223
|
+
}
|
224
|
+
/* stylelint-enable selector-max-compound-selectors, selector-max-specificity */
|
225
|
+
}
|
226
|
+
}
|
227
|
+
}
|
228
|
+
|
229
|
+
.mdc-checkbox--anim {
|
230
|
+
$_mdc-checkbox-indeterminate-change-duration: 500ms;
|
231
|
+
|
232
|
+
&-unchecked-checked,
|
233
|
+
&-unchecked-indeterminate {
|
234
|
+
.mdc-checkbox__background {
|
235
|
+
animation: mdc-checkbox-fade-in-background $mdc-checkbox-transition-duration * 2 linear;
|
236
|
+
|
237
|
+
@include mdc-theme-dark(".mdc-checkbox") {
|
238
|
+
animation-name: mdc-checkbox-fade-in-background-dark;
|
239
|
+
}
|
240
|
+
}
|
241
|
+
}
|
242
|
+
|
243
|
+
&-checked-unchecked,
|
244
|
+
&-indeterminate-unchecked {
|
245
|
+
.mdc-checkbox__background {
|
246
|
+
animation: mdc-checkbox-fade-out-background $mdc-checkbox-transition-duration * 2 linear;
|
247
|
+
|
248
|
+
@include mdc-theme-dark(".mdc-checkbox") {
|
249
|
+
animation-name: mdc-checkbox-fade-out-background-dark;
|
250
|
+
}
|
251
|
+
}
|
252
|
+
}
|
253
|
+
|
254
|
+
&-unchecked-checked {
|
255
|
+
.mdc-checkbox__checkmark__path {
|
256
|
+
// Instead of delaying the animation, we simply multiply its length by 2 and begin the
|
257
|
+
// animation at 50% in order to prevent a flash of styles applied to a checked checkmark
|
258
|
+
// as the background is fading in before the animation begins.
|
259
|
+
animation: $mdc-checkbox-transition-duration * 2 linear 0s mdc-checkbox-unchecked-checked-checkmark-path;
|
260
|
+
transition: none;
|
261
|
+
}
|
262
|
+
}
|
263
|
+
|
264
|
+
&-unchecked-indeterminate {
|
265
|
+
.mdc-checkbox__mixedmark {
|
266
|
+
animation: $mdc-checkbox-transition-duration linear 0s mdc-checkbox-unchecked-indeterminate-mixedmark;
|
267
|
+
transition: none;
|
268
|
+
}
|
269
|
+
}
|
270
|
+
|
271
|
+
&-checked-unchecked {
|
272
|
+
.mdc-checkbox__checkmark__path {
|
273
|
+
animation: $mdc-checkbox-transition-duration linear 0s mdc-checkbox-checked-unchecked-checkmark-path;
|
274
|
+
transition: none;
|
275
|
+
}
|
276
|
+
}
|
277
|
+
|
278
|
+
&-checked-indeterminate {
|
279
|
+
.mdc-checkbox__checkmark {
|
280
|
+
animation: $mdc-checkbox-transition-duration linear 0s mdc-checkbox-checked-indeterminate-checkmark;
|
281
|
+
transition: none;
|
282
|
+
}
|
283
|
+
|
284
|
+
.mdc-checkbox__mixedmark {
|
285
|
+
animation: $mdc-checkbox-transition-duration linear 0s mdc-checkbox-checked-indeterminate-mixedmark;
|
286
|
+
transition: none;
|
287
|
+
}
|
288
|
+
}
|
289
|
+
|
290
|
+
&-indeterminate-checked {
|
291
|
+
.mdc-checkbox__checkmark {
|
292
|
+
animation: $_mdc-checkbox-indeterminate-change-duration linear 0s mdc-checkbox-indeterminate-checked-checkmark;
|
293
|
+
transition: none;
|
294
|
+
}
|
295
|
+
|
296
|
+
.mdc-checkbox__mixedmark {
|
297
|
+
animation: $_mdc-checkbox-indeterminate-change-duration linear 0s mdc-checkbox-indeterminate-checked-mixedmark;
|
298
|
+
transition: none;
|
299
|
+
}
|
300
|
+
}
|
301
|
+
|
302
|
+
&-indeterminate-unchecked {
|
303
|
+
.mdc-checkbox__mixedmark {
|
304
|
+
animation: $_mdc-checkbox-indeterminate-change-duration * .6 linear 0s mdc-checkbox-indeterminate-unchecked-mixedmark;
|
305
|
+
transition: none;
|
306
|
+
}
|
307
|
+
}
|
308
|
+
}
|
309
|
+
|
310
|
+
/* postcss-bem-linter: end */
|