11@import ' ../core/theming/theming' ;
22@import ' ../core/style/elevation' ;
3- @import ' ../core/style/variables ' ;
3+ @import ' ../core/style/checkbox-common ' ;
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 }
@@ -264,14 +259,14 @@ md-checkbox {
264259 stroke : {
265260 dashoffset : $_md-checkbox-mark-path-length ;
266261 dasharray : $_md-checkbox-mark-path-length ;
267- width : $md -checkbox-mark-stroke-size ;
262+ width : $_md -checkbox-mark-stroke-size ;
268263 }
269264}
270265
271266.md-checkbox-mixedmark {
272267 @extend %md-checkbox-mark ;
273268
274- height : floor ($md -checkbox-mark-stroke-size );
269+ height : floor ($_md -checkbox-mark-stroke-size );
275270 opacity : 0 ;
276271 transform : scaleX (0 ) rotate (0deg );
277272}
@@ -280,14 +275,14 @@ md-checkbox {
280275 .md-checkbox-inner-container {
281276 order : 1 ;
282277 margin : {
283- left : $md -checkbox-item-spacing ;
278+ left : $_md -checkbox-item-spacing ;
284279 right : auto ;
285280 }
286281
287282 [dir = ' rtl' ] & {
288283 margin : {
289284 left : auto ;
290- right : $md -checkbox-item-spacing ;
285+ right : $_md -checkbox-item-spacing ;
291286 }
292287 }
293288 }
@@ -419,10 +414,10 @@ md-checkbox {
419414
420415.md-checkbox-ripple {
421416 position : absolute ;
422- left : - $md -checkbox-ripple-size ;
423- top : - $md -checkbox-ripple-size ;
424- right : - $md -checkbox-ripple-size ;
425- bottom : - $md -checkbox-ripple-size ;
417+ left : - $_md -checkbox-ripple-size ;
418+ top : - $_md -checkbox-ripple-size ;
419+ right : - $_md -checkbox-ripple-size ;
420+ bottom : - $_md -checkbox-ripple-size ;
426421 border-radius : 50% ;
427422 z-index : 1 ;
428423 pointer-events : none ;
0 commit comments