File tree Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change 15
15
16
16
.ui .checkbox {
17
17
line-height : 1 ;
18
+ position : relative;
18
19
19
20
> input {
20
- display : none;
21
+ position : absolute;
22
+ top : 0 ; left : 0 ;
23
+ width : 100% ;
24
+ height : 100% ;
25
+ opacity : 0 ;
21
26
}
22
27
23
28
> span {
39
44
.icon {
40
45
width : 0 ;
41
46
font-size : var (--field-font-size-tiny );
42
- margin-left : -calc (var (--field-height ) - .85var (--unit ));
43
- margin-right : calc (1.4em + var (--checkbox-label-gutter ));
47
+ position : absolute;
48
+ top : 50% ; left : 50% ;
49
+ transform : translate3d (-50% , -50% , 1px );
44
50
overflow : hidden;
45
51
transition : ease var (--checkbox-transition-duration );
46
52
transition-property : width, margin;
58
64
}
59
65
60
66
.icon {
61
- width : 1.4 em ;
67
+ width : 1.2 em ;
62
68
margin-right : var (--checkbox-label-gutter );
63
69
}
64
70
}
98
104
height : var (--field-height-large );
99
105
}
100
106
}
101
- }
107
+ }
You can’t perform that action at this time.
0 commit comments