-
Notifications
You must be signed in to change notification settings - Fork 18
/
checkbox.css
114 lines (89 loc) · 3.57 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
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
113
114
.digit-Checkbox {
position: relative;
display: inline-block;
-moz-box-sizing: border-box;
box-sizing: border-box;
vertical-align: middle;
width: 1.5em;
height: 1.5em;
border-radius: .25em;
border: 1px solid;
fill: #fff;
cursor: pointer;
-webkit-tap-highlight-color: transparent;
}
.digit-Checkbox:after {
position: absolute;
content: "";
top: -16px;
left: -16px;
bottom: -16px;
right: -16px;
}
/* States --------------------- */
.digit-Checkbox.montage--active,
.digit-Checkbox.montage-Checkbox--checked {
background-color: currentColor;
}
.digit-Checkbox.montage-Checkbox--disabled {
opacity: .5;
border-style: dashed;
pointer-events: none;
}
/* Icon --------------------- */
.digit-Checkbox-icon {
fill: transparent;
}
.digit-Checkbox.montage-Checkbox--checked .digit-Checkbox-icon {
fill: inherit;
}
.digit-Checkbox.montage--active .digit-Checkbox-icon {
fill: transparent;
}
/* Wireframe ---------------------------------------------------------- */
[data-montage-skin="wireframe"] .digit-Checkbox {
fill: #4D4D4D;
border-color: #b3b3b3;
background-color: #f2f2f2;
}
[data-montage-skin="wireframe"] .digit-Checkbox.montage--active {
background-color: #e5e5e5;
}
/* Light ---------------------------------------------------------- */
[data-montage-skin="light"] .digit-Checkbox {
fill: hsla(0,0%,0%,.7);
border-color: hsl(0,0%,80%);
background-image: -webkit-linear-gradient(top, hsl(0,0%,96%), hsl(0,0%,92%) );
background-image: -moz-linear-gradient(top, hsl(0,0%,96%), hsl(0,0%,92%) );
background-image: -ms-linear-gradient(top, hsl(0,0%,96%), hsl(0,0%,92%) );
background-image: linear-gradient(top, hsl(0,0%,96%), hsl(0,0%,92%) );
box-shadow: inset 0 1px 1px hsla(0,0%,100%,.8), inset 0 -1px 1px hsla(0,0%,0%,.04), 0 1px 0 hsla(0,0%,100%,.6);
}
[data-montage-skin="light"] .digit-Checkbox.montage--active,
[data-montage-skin="light"] .digit-Checkbox.montage-Checkbox--checked {
border-color: hsla(0,0%,70%,1);
background-image: -webkit-linear-gradient(top, hsl(0,0%,90%), hsl(0,0%,86%) );
background-image: -moz-linear-gradient(top, hsl(0,0%,90%), hsl(0,0%,86%) );
background-image: -ms-linear-gradient(top, hsl(0,0%,90%), hsl(0,0%,86%) );
background-image: linear-gradient(top, hsl(0,0%,90%), hsl(0,0%,86%) );
box-shadow: inset 0 1px 3px hsla(0,0%,0%,.2), 0 1px 0 hsla(0,0%,100%,.6);
}
/* Dark ---------------------------------------------------------- */
[data-montage-skin="dark"] .digit-Checkbox {
fill: hsl(0,0%,80%);
border-color: hsl(0,0%,15%);
background-image: -webkit-linear-gradient(top, hsl(0,0%,30%), hsl(0,0%,24%) );
background-image: -moz-linear-gradient(top, hsl(0,0%,30%), hsl(0,0%,24%) );
background-image: -ms-linear-gradient(top, hsl(0,0%,30%), hsl(0,0%,24%) );
background-image: linear-gradient(top, hsl(0,0%,30%), hsl(0,0%,24%) );
box-shadow: inset 0 1px 1px hsla(0,0%,100%,.1), inset 0 -1px 1px hsla(0,0%,0%,.06), 0 1px 0 hsla(0,0%,100%,.1);
}
[data-montage-skin="dark"] .digit-Checkbox.montage--active,
[data-montage-skin="dark"] .digit-Checkbox.montage-Checkbox--checked {
border-color: hsl(0,0%,15%);
background-image: -webkit-linear-gradient(top, hsl(0,0%,20%), hsl(0,0%,16%) );
background-image: -moz-linear-gradient(top, hsl(0,0%,20%), hsl(0,0%,16%) );
background-image: -ms-linear-gradient(top, hsl(0,0%,20%), hsl(0,0%,16%) );
background-image: linear-gradient(top, hsl(0,0%,20%), hsl(0,0%,16%) );
box-shadow: inset 0 1px 3px hsla(0,0%,0%,.3), 0 1px 0 hsla(0,0%,100%,.1);
}