File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
src/framework/theme/components/toggle Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 18
18
We need to set initial positions as Angular animations won't work in IE11 if positions have no initial value.
19
19
Setting it in SCSS as we don't have access to theme variables from TS.
20
20
*/
21
-
22
- $switcher-vertical-offset : (nb-theme (toggle-height ) - nb-theme (toggle-switcher-size )) / 2 ;
23
21
@include nb-ltr () {
24
22
& .checked .toggle-switcher {
25
23
left : calc (100%
26
24
- #{nb-theme (toggle-switcher-size )}
27
25
- #{nb-theme (toggle-border-width )}
28
- - #{$switcher-vertical-offset } );
26
+ - #{nb-theme ( toggle-border-width ) } );
29
27
}
30
28
31
29
& :not (.checked ) .toggle-switcher {
38
36
right : calc (100%
39
37
- #{nb-theme (toggle-switcher-size )}
40
38
- #{nb-theme (toggle-border-width )}
41
- - #{$switcher-vertical-offset } );
39
+ - #{nb-theme ( toggle-border-width ) } );
42
40
}
43
41
44
42
& :not (.checked ) .toggle-switcher {
You can’t perform that action at this time.
0 commit comments