Commit cfb8617 1 parent 23f032e commit cfb8617 Copy full SHA for cfb8617
File tree 1 file changed +10
-9
lines changed
1 file changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ input[type="radio"] {
66
66
}
67
67
.ui .toggle .checkbox input {
68
68
width : 3.5rem ;
69
- height : 1.5 rem ;
69
+ height : 21 px ;
70
70
opacity : 0 ;
71
71
z-index : 3 ;
72
72
}
@@ -81,29 +81,30 @@ input[type="radio"] {
81
81
content : "" ;
82
82
z-index : 1 ;
83
83
top : 0 ;
84
- width : 3.5 rem ;
85
- height : 1.5 rem ;
84
+ width : 49 px ;
85
+ height : 21 px ;
86
86
border-radius : 500rem ;
87
87
left : 0 ;
88
88
}
89
89
.ui .toggle .checkbox label ::after {
90
90
background : var (--color-white );
91
+ box-shadow : 1px 1px 4px 1px var (--color-shadow );
91
92
position : absolute;
92
93
content : "" ;
93
94
opacity : 1 ;
94
95
z-index : 2 ;
95
- width : 1.5 rem ;
96
- height : 1.5 rem ;
97
- top : 0 ;
98
- left : 0 ;
96
+ width : 18 px ;
97
+ height : 18 px ;
98
+ top : 1.5 px ;
99
+ left : 1.5 px ;
99
100
border-radius : 500rem ;
100
101
transition : background 0.3s ease, left 0.3s ease;
101
102
}
102
103
.ui .toggle .checkbox input ~ label ::after {
103
- left : -0.05 rem ;
104
+ left : 1.5 px ;
104
105
}
105
106
.ui .toggle .checkbox input : checked ~ label ::after {
106
- left : 2.15 rem ;
107
+ left : 29 px ;
107
108
}
108
109
.ui .toggle .checkbox input : focus ~ label ::before ,
109
110
.ui .toggle .checkbox label ::before {
You can’t perform that action at this time.
0 commit comments