-
Notifications
You must be signed in to change notification settings - Fork 1
/
ajaxgpio.css
88 lines (88 loc) · 1.58 KB
/
ajaxgpio.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
body
{
font-family: sans-serif;
font-weight: normal;
margin: 10px;
color: #555;
background-image:
url('http://cdn3.crunchify.com/wp-content/uploads/2013/03/Crunchify.bg_.300.png');
}
form
{
margin: 40px 0;
}
div
{
clear: both;
margin: 0 50px;
}
input.switch:empty
{
margin-left: -999px;
}
input.switch:empty ~ label
{
position: relative;
float: left;
line-height: 1.6em;
text-indent: 4em;
margin: 2em 0;
cursor: pointer;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
}
input.switch:empty ~ label:before,
input.switch:empty ~ label:after
{
position: absolute;
display: block;
top: 0;
bottom: 0;
left: 0;
content: '\2718';
width: 3.6em;
text-indent: 2.4em;
color: #900;
background-color: #c33;
border-radius: 0.3em;
box-shadow: inset 0 0.2em 0 rgba(0,0,0,0.3);
}
input.switch:empty ~ label:after
{
content: ' ';
width: 1.4em;
top: 0.1em;
bottom: 0.1em;
text-align: center;
text-indent: 0;
margin-left: 0.1em;
color: #f88;
background-color: #fff;
border-radius: 0.15em;
box-shadow: inset 0 -0.2em 0 rgba(0,0,0,0.2);
-webkit-transition: all 100ms ease-in;
transition: all 100ms ease-in;
}
/* toggle on */
input.switch:checked ~ label:before
{
content: '\2714';
text-indent: 0.5em;
color: #6f6;
background-color: #393;
}
input.switch:checked ~ label:after
{
margin-left: 2.1em;
color: #6c6;
}
/* focus styles */
input.switch:focus ~ label
{
color: #000;
}
input.switch:focus ~ label:before
{
box-shadow: 0 0 0 3px #999;
}