File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
scaladoc/resources/dotty_res/styles/theme/components Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change 11.switch {
22 position : relative;
33 display : inline-block;
4- width : 32 px ;
5- height : 18 px ;
4+ width : calc ( 4 * var ( --base-spacing )) ;
5+ height : calc ( calc ( 2 * var ( --base-spacing )) + 2 px ) ;
66 margin : var (--base-spacing );
77}
88
2222 background-color : var (--switch-background-default );
2323 -webkit-transition : .4s ;
2424 transition : .4s ;
25- border-radius : 34 px ;
25+ border-radius : calc ( calc ( 4 * var ( --base-spacing )) + 2 px ) ;
2626}
2727
2828.slider : before {
2929 position : absolute;
3030 content : "" ;
31- height : 16 px ;
32- width : 16 px ;
31+ height : calc ( 2 * var ( --base-spacing )) ;
32+ width : calc ( 2 * var ( --base-spacing )) ;
3333 left : 1px ;
3434 bottom : 1px ;
3535 background-color : var (--switch-button );
@@ -47,7 +47,7 @@ input:focus + .slider {
4747}
4848
4949input : checked + .slider : before {
50- -webkit-transform : translateX (14 px );
51- -ms-transform : translateX (14 px );
52- transform : translateX (14 px );
50+ -webkit-transform : translateX (calc ( calc ( 2 * var ( --base-spacing )) - 2 px ) );
51+ -ms-transform : translateX (calc ( calc ( 2 * var ( --base-spacing )) - 2 px ) );
52+ transform : translateX (calc ( calc ( 2 * var ( --base-spacing )) - 2 px ) );
5353}
You can’t perform that action at this time.
0 commit comments