UNPKG

5.62 kBCSSView Raw
1.mgc {
2 position: relative;
3 width: 16px;
4 height: 16px;
5 background-clip: border-box;
6 -webkit-appearance: none;
7 -moz-appearance: none;
8 appearance: none;
9 margin: -0.15px 0.6px 0 0;
10 vertical-align: text-bottom;
11 border-radius: 3px;
12 transition: background-color 0.25s;
13 background-color: #fff;
14 border: 1px solid #d7d7d7;
15}
16.mgc:checked:after {
17 content: '';
18 display: block;
19 height: 4px;
20 width: 7px;
21 border: 0 solid #333;
22 border-width: 0 0 2px 2px;
23 transform: rotate(-45deg);
24 position: absolute;
25 top: 3px;
26 left: 3px;
27}
28.mgc:disabled {
29 opacity: 0.65;
30}
31.mgc:focus {
32 outline: none;
33 box-shadow: inset 0 1px 1px rgba(255,255,255,0.075), 0 0px 2px #38a7ff;
34}
35.mgc:checked {
36 background-color: #fff;
37 border-color: #d7d7d7;
38}
39.mgc:checked:after {
40 border-color: #414141;
41}
42.mgc-primary {
43 background-color: #fff;
44 border: 1px solid #d7d7d7;
45}
46.mgc-primary:checked {
47 background-color: #337ab7;
48 border-color: #337ab7;
49}
50.mgc-primary:checked:after {
51 border-color: #fff;
52}
53.mgc-success {
54 background-color: #fff;
55 border: 1px solid #d7d7d7;
56}
57.mgc-success:checked {
58 background-color: #5cb85c;
59 border-color: #5cb85c;
60}
61.mgc-success:checked:after {
62 border-color: #fff;
63}
64.mgc-info {
65 background-color: #fff;
66 border: 1px solid #d7d7d7;
67}
68.mgc-info:checked {
69 background-color: #5bc0de;
70 border-color: #5bc0de;
71}
72.mgc-info:checked:after {
73 border-color: #fff;
74}
75.mgc-warning {
76 background-color: #fff;
77 border: 1px solid #d7d7d7;
78}
79.mgc-warning:checked {
80 background-color: #f0ad4e;
81 border-color: #f0ad4e;
82}
83.mgc-warning:checked:after {
84 border-color: #fff;
85}
86.mgc-danger {
87 background-color: #fff;
88 border: 1px solid #d7d7d7;
89}
90.mgc-danger:checked {
91 background-color: #cf3b3a;
92 border-color: #cf3b3a;
93}
94.mgc-danger:checked:after {
95 border-color: #fff;
96}
97.mgc-circle {
98 border-radius: 50%;
99}
100.mgc-sm {
101 width: 12px;
102 height: 12px;
103}
104.mgc-sm:checked:after {
105 top: 2px;
106 left: 1px;
107 height: 3px;
108 width: 6px;
109}
110.mgc-lg {
111 width: 19px;
112 height: 19px;
113}
114.mgc-lg:checked:after {
115 top: 3px;
116 left: 3px;
117 height: 5px;
118 width: 10px;
119}
120input[type="radio"].mgr {
121 position: relative;
122 width: 16px;
123 height: 16px;
124 background-clip: border-box;
125 -webkit-appearance: none;
126 -moz-appearance: none;
127 appearance: none;
128 margin: -0.15px 0.6px 0 0;
129 vertical-align: text-bottom;
130 border-radius: 50%;
131 background-color: #fff;
132 border: 1px solid #d7d7d7;
133}
134input[type="radio"].mgr:disabled {
135 opacity: 0.65;
136}
137input[type="radio"].mgr:before {
138 content: '';
139 display: block;
140 height: 0px;
141 width: 0px;
142 transition: width 0.25s, height 0.25s;
143}
144input[type="radio"].mgr:checked:before {
145 height: 8px;
146 width: 8px;
147 border-radius: 50%;
148 margin: 3px 0 0 3px;
149}
150input[type="radio"].mgr:focus {
151 outline: none;
152 box-shadow: inset 0 1px 1px rgba(255,255,255,0.075), 0 0px 2px #38a7ff;
153}
154input[type="radio"].mgr:checked {
155 border: 1px solid #555;
156}
157input[type="radio"].mgr:checked:before {
158 background-color: #555;
159}
160.mgr-primary {
161 background-color: #fff;
162 border: 1px solid #d7d7d7;
163}
164.mgr-primary:checked {
165 border: 1px solid #337ab7;
166}
167.mgr-primary:checked:before {
168 background-color: #337ab7;
169}
170.mgr-success {
171 background-color: #fff;
172 border: 1px solid #d7d7d7;
173}
174.mgr-success:checked {
175 border: 1px solid #5cb85c;
176}
177.mgr-success:checked:before {
178 background-color: #5cb85c;
179}
180.mgr-info {
181 background-color: #fff;
182 border: 1px solid #d7d7d7;
183}
184.mgr-info:checked {
185 border: 1px solid #5bc0de;
186}
187.mgr-info:checked:before {
188 background-color: #5bc0de;
189}
190.mgr-warning {
191 background-color: #fff;
192 border: 1px solid #d7d7d7;
193}
194.mgr-warning:checked {
195 border: 1px solid #f0ad4e;
196}
197.mgr-warning:checked:before {
198 background-color: #f0ad4e;
199}
200.mgr-danger {
201 background-color: #fff;
202 border: 1px solid #d7d7d7;
203}
204.mgr-danger:checked {
205 border: 1px solid #cf3b3a;
206}
207.mgr-danger:checked:before {
208 background-color: #cf3b3a;
209}
210.mgr-sm {
211 width: 12px;
212 height: 12px;
213}
214.mgr-sm:checked:before {
215 height: 6px;
216 width: 6px;
217 border-radius: 50%;
218 margin: 2px 0 0 2px;
219}
220.mgr-lg {
221 width: 19px;
222 height: 19px;
223}
224.mgr-lg:checked:before {
225 height: 11px;
226 width: 11px;
227 border-radius: 50%;
228 margin: 3px 0 0 3px;
229}
230.mgc-switch {
231 -webkit-appearance: none;
232 -moz-appearance: none;
233 appearance: none;
234 position: relative;
235 width: 41px;
236 height: 24px;
237 border: 1px solid #dfdfdf;
238 outline: 0;
239 border-radius: 16px;
240 box-sizing: border-box;
241 background: #dfdfdf;
242}
243.mgc-switch:before,
244.mgc-switch:after {
245 content: " ";
246 position: absolute;
247 top: 0;
248 left: 0;
249 border-radius: 15px;
250 transition: transform 0.3s;
251}
252.mgc-switch:before {
253 width: 39px;
254 height: 22px;
255 background-color: #fdfdfd;
256}
257.mgc-switch:after {
258 width: 22px;
259 height: 22px;
260 background-color: #fff;
261 box-shadow: 0 1px 3px rgba(0,0,0,0.4);
262}
263.mgc-switch:checked {
264 border-color: #04be02;
265 background-color: #04be02;
266}
267.mgc-switch:checked:before {
268 transform: scale(0);
269}
270.mgc-switch:checked:after {
271 transform: translateX(17px);
272}
273.mgc-switch:focus {
274 outline: 0;
275}
276.mgc-sm.mgc-switch {
277 height: 20px;
278 width: 32px;
279}
280.mgc-sm.mgc-switch:before {
281 height: 18px;
282 width: 30px;
283}
284.mgc-sm.mgc-switch:after {
285 width: 18px;
286 height: 18px;
287}
288.mgc-sm.mgc-switch:checked:after {
289 top: 0px;
290 left: 2px;
291 transform: translateX(10px);
292}
293.mgc-lg.mgc-switch {
294 height: 32px;
295 width: 52px;
296}
297.mgc-lg.mgc-switch:before {
298 height: 30px;
299 width: 50px;
300}
301.mgc-lg.mgc-switch:after {
302 width: 30px;
303 height: 30px;
304}
305.mgc-lg.mgc-switch:checked:after {
306 top: 0px;
307 left: 2px;
308 transform: translateX(18px);
309}