11@import ' ../core/theming/theming' ;
22@import ' ../core/style/elevation' ;
3- @import ' ../core/style/variables' ;
3+ @import ' ../core/style/checkbox- variables' ;
44@import ' ../core/ripple/ripple' ;
55
6-
7- // The width/height of the checkbox element.
8- $md-checkbox-size : $md-toggle-size !default ;
9- // The width of the line used to draw the checkmark / mixedmark.
10- $md-checkbox-mark-stroke-size : 2 / 15 * $md-checkbox-size !default ;
11- // The width of the checkbox border shown when the checkbox is unchecked.
12- $md-checkbox-border-width : 2px ;
13- // The base duration used for the majority of transitions for the checkbox.
14- $md-checkbox-transition-duration : 90ms ;
15- // The amount of spacing between the checkbox and its label.
16- $md-checkbox-item-spacing : $md-toggle-padding ;
17-
186// Manual calculation done on SVG
197$_md-checkbox-mark-path-length : 22.910259 ;
208$_md-checkbox-indeterminate-checked-easing-function : cubic-bezier (0.14 , 0 , 0 , 1 );
219
2210// The ripple size of the checkbox
23- $md-checkbox-ripple-size : 15px ;
11+ $_md-checkbox-ripple-size : 15px ;
12+
13+ // The amount of spacing between the checkbox and its label.
14+ $_md-checkbox-item-spacing : $md-toggle-padding ;
15+
16+ // The width of the line used to draw the checkmark / mixedmark.
17+ $_md-checkbox-mark-stroke-size : 2 / 15 * $md-checkbox-size !default ;
18+
2419
2520// Fades in the background of the checkbox when it goes from unchecked -> {checked,indeterminate}.
2621@keyframes md-checkbox-fade-in-background {
@@ -213,7 +208,7 @@ md-checkbox {
213208 height : $md-checkbox-size ;
214209 line-height : 0 ;
215210 margin : auto ;
216- margin-right : $md -checkbox-item-spacing ;
211+ margin-right : $_md -checkbox-item-spacing ;
217212 order : 0 ;
218213 position : relative ;
219214 vertical-align : middle ;
@@ -223,7 +218,7 @@ md-checkbox {
223218
224219 [dir = ' rtl' ] & {
225220 margin : {
226- left : $md -checkbox-item-spacing ;
221+ left : $_md -checkbox-item-spacing ;
227222 right : auto ;
228223 }
229224 }
@@ -266,14 +261,14 @@ md-checkbox {
266261 stroke : {
267262 dashoffset : $_md-checkbox-mark-path-length ;
268263 dasharray : $_md-checkbox-mark-path-length ;
269- width : $md -checkbox-mark-stroke-size ;
264+ width : $_md -checkbox-mark-stroke-size ;
270265 }
271266}
272267
273268.md-checkbox-mixedmark {
274269 @extend %md-checkbox-mark ;
275270
276- height : floor ($md -checkbox-mark-stroke-size );
271+ height : floor ($_md -checkbox-mark-stroke-size );
277272 opacity : 0 ;
278273 transform : scaleX (0 ) rotate (0deg );
279274}
@@ -282,14 +277,14 @@ md-checkbox {
282277 .md-checkbox-inner-container {
283278 order : 1 ;
284279 margin : {
285- left : $md -checkbox-item-spacing ;
280+ left : $_md -checkbox-item-spacing ;
286281 right : auto ;
287282 }
288283
289284 [dir = ' rtl' ] & {
290285 margin : {
291286 left : auto ;
292- right : $md -checkbox-item-spacing ;
287+ right : $_md -checkbox-item-spacing ;
293288 }
294289 }
295290 }
@@ -421,10 +416,10 @@ md-checkbox {
421416
422417.md-checkbox-ripple {
423418 position : absolute ;
424- left : - $md -checkbox-ripple-size ;
425- top : - $md -checkbox-ripple-size ;
426- right : - $md -checkbox-ripple-size ;
427- bottom : - $md -checkbox-ripple-size ;
419+ left : - $_md -checkbox-ripple-size ;
420+ top : - $_md -checkbox-ripple-size ;
421+ right : - $_md -checkbox-ripple-size ;
422+ bottom : - $_md -checkbox-ripple-size ;
428423 border-radius : 50% ;
429424 z-index : 1 ;
430425 pointer-events : none ;
0 commit comments