-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCheckbox.css
67 lines (58 loc) · 1.44 KB
/
Checkbox.css
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
input[type="checkbox"] {
-webkit-appearance: none;
background-color: #ffffff;
border: 2px solid #4d4d4d;
-webkit-box-shadow: 2px 2px 2px 0 rgba(0,0,0,0.5) inset;
box-shadow: 2px 2px 2px 0 rgba(0,0,0,0.5) inset;
padding: 9px;
display: inline-block;
position: relative;
cursor: pointer;
transition: all .2s;
outline: none;
}
input[type="checkbox"]:hover {
border: 4px solid #4d4d4d;
-webkit-box-shadow: 2px 2px 2px 0 rgba(0,0,0,0.5) inset;
box-shadow: 2px 2px 2px 0 rgba(0,0,0,0.5) inset;
-webkit-transition-duration: 0.3s;
-o-transition-duration: 0.3s;
transition-duration: 0.3s;
}
/*
input[type="checkbox"]:checked:after {
content: ' ';
width: 25px;
height: 25px;
position: absolute;
top: 1px;
background: #ffcc00;
box-shadow: inset 0px 0px 10px rgba(0,0,0,0.3);
text-shadow: 0px;
left: 1px;
font-size: 32px;
cursor: pointer;
transition: all .2s;
}
*/
input[type="checkbox"]:checked {
background-color: #cccccc;
border: 4px solid #4d4d4d;
-webkit-box-shadow: 2px 2px 2px 0 rgba(0,0,0,0.5) inset;
box-shadow: 2px 2px 2px 0 rgba(0,0,0,0.5) inset;
cursor: pointer;
transition: all .2s;
}
input[type="checkbox"]:active, input[type="checkbox"]:checked:active {
-webkit-box-shadow: 2px 2px 2px 0 rgba(0,0,0,0.5) inset;
box-shadow: 2px 2px 2px 0 rgba(0,0,0,0.5) inset;
cursor: pointer;
transition: all .2s;
}
/*input type="text" */
input[type="text"] {
outline: none;
}
*::-webkit-input-placeholder {
color: #4d4d4d;
}