-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcustom-field-toggle.css
88 lines (87 loc) · 2.61 KB
/
custom-field-toggle.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
/**
* Toggle CSS
*
* @package Custom Field Toggle
*
*/
.full-width {
text-align: center;
}
.ui-toggle {
border-radius: 6px;
display: inline-block;
height: 36px;
margin-top: 6px;
outline: none !important;
position: relative;
width: 120px;
}
.ui-toggle.on-off {
/* background-image: url(images/ui-button-on-off-slide.png); */
}
.ui-toggle.on-off:before, .ui-toggle.on-off:after {
box-shadow: inset 0 0 5px rgba(0,0,0,0.5);
font: bold 16px/38px Helvetica;
height: 100%;
position: absolute;
text-transform: uppercase;
width: 50%;
z-index: 1;
}
.ui-toggle.on-off:before {
background: #32A6E8; /* Old browsers */
border-radius: 6px 0 0 6px;
color: #FFFFFF;
content: "On";
left: 0;
text-shadow: 1px 1px 0 rgba(100,100,100,0.75);
}
.ui-toggle.on-off:after {
background: #B1B8BD;
border-radius: 0 6px 6px 0;
color: #565656;
content: "Off";
right: 0;
text-shadow: 1px 1px 0 rgba(255,255,255,0.75);
}
.ui-toggle i {
background: #ffffff; /* Old browsers */
background: -moz-linear-gradient(top, #ffffff 0%, #e3e3e3 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ffffff), color-stop(100%,#e3e3e3)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, #ffffff 0%,#e3e3e3 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, #ffffff 0%,#e3e3e3 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, #ffffff 0%,#e3e3e3 100%); /* IE10+ */
background: linear-gradient(to bottom, #ffffff 0%,#e3e3e3 100%); /* W3C */
border: 1px solid #BBBBBB;
border-radius: 5px;
box-shadow: inset 0 -2px 0 white, 0 1px 0 rgba(0,0,0,0.5);
content: "";
height: 100%;
margin-top: -3px;
overflow: hidden;
padding: 2px 0;
position: absolute;
text-indent: -9999px;
top: 0;
-webkit-transition: left 200ms linear;
-moz-transition: left 200ms linear;
transition: left 200ms linear;
width: 50px;
z-index: 5;
}
.ui-state-on i {
left: 56px;
}
.ui-state-on:hover i,
.ui-state-off:hover i {
background: #f9f9f9; /* Old browsers */
background: -moz-linear-gradient(top, #f9f9f9 0%, #dddddd 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f9f9f9), color-stop(100%,#dddddd)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, #f9f9f9 0%,#dddddd 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, #f9f9f9 0%,#dddddd 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, #f9f9f9 0%,#dddddd 100%); /* IE10+ */
background: linear-gradient(to bottom, #f9f9f9 0%,#dddddd 100%); /* W3C */
}
.ui-state-off i {
left: 14px;
}