-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcheckbox-radiobox.css
More file actions
112 lines (108 loc) · 2.67 KB
/
checkbox-radiobox.css
File metadata and controls
112 lines (108 loc) · 2.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
* {
box-sizing: border-box;
}
.md-checkbox, .md-radio {
position: relative;
}
.md-checkbox input[type=checkbox], .md-radio input[type=radio] {
visibility: hidden;
position: absolute;
}
input[type=checkbox], input[type=radio] {
margin: 4px 0 0;
margin-top: 1px \9;
line-height: normal;
}
input[type=checkbox], input[type=radio] {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
padding: 0;
-webkit-border-radius: 0 !important;
-moz-border-radius: 0 !important;
border-radius: 0 !important;
}
.md-checkbox label, .md-radio label {
font-weight: 400;
font-size: 14px;
cursor: pointer;
padding-left: 30px;
}
.md-checkbox label > span, .md-radio label > span {
display: block;
position: absolute;
left: 0;
-webkit-transition-duration: 0.3s;
-moz-transition-duration: 0.3s;
transition-duration: 0.3s;
}
.md-checkbox label > .check {
top: -4px;
left: 6px;
width: 10px;
height: 20px;
border: 2px solid #FF6C60;
border-top: none;
border-left: none;
opacity: 0;
z-index: 5;
-webkit-transform: rotate(180deg);
-moz-transform: rotate(180deg);
transform: rotate(180deg);
-webkit-transition-delay: 0.3s;
-moz-transition-delay: 0.3s;
transition-delay: 0.3s;
}
.md-checkbox input[type=checkbox]:checked ~ label > .check {
opacity: 1;
-webkit-transform: scale(1) rotate(45deg);
-moz-transform: scale(1) rotate(45deg);
transform: scale(1) rotate(45deg);
}
.md-checkbox label > .box {
top: 0px;
border: 2px solid #666;
height: 20px;
width: 20px;
z-index: 5;
-webkit-transition-delay: 0.2s;
-moz-transition-delay: 0.2s;
transition-delay: 0.2s;
}
.md-checkbox input[type=checkbox]:checked ~ label > .box {
opacity: 0;
-webkit-transform: scale(0) rotate(-180deg);
-moz-transform: scale(0) rotate(-180deg);
transform: scale(0) rotate(-180deg);
}
.md-radio label > .check {
top: 5px;
left: 5px;
width: 10px;
height: 10px;
background: #FF6C60;
opacity: 0;
z-index: 6;
border-radius: 50% !important;
-moz-border-radius: 50% !important;
-webkit-border-radius: 50% !important;
-webkit-transform: scale(0);
-moz-transform: scale(0);
transform: scale(0);
}
.md-radio input[type=radio]:checked ~ label > .check {
opacity: 1;
-webkit-transform: scale(1);
-moz-transform: scale(1);
transform: scale(1);
}
.md-radio label > .box {
top: 0px;
border: 2px solid #666;
height: 20px;
width: 20px;
border-radius: 50% !important;
-moz-border-radius: 50% !important;
-webkit-border-radius: 50% !important;
z-index: 5;
}