-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbootstrap-toggle.css
More file actions
107 lines (107 loc) · 1.93 KB
/
bootstrap-toggle.css
File metadata and controls
107 lines (107 loc) · 1.93 KB
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
/*
* Accompanying style in vanilla CSS.
* You can just rename this file to .scss/.less if your environment requires.
*/
.checkbox label .toggle,
.checkbox-inline .toggle {
margin-left: -20px;
margin-right: 5px;
}
.toggle {
/*font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;*/
position: relative;
overflow: hidden;
}
DIV.toggle {
/*box-shadow: 3px 3px 9px 0 rgba(0,0,0,0.15);*/ /* enable if you want shadow */
}
.toggle.btn:focus, .toggle.btn.focus,
.toggle.btn:active:focus, .toggle.btn:active.focus,
.toggle.btn.active:focus, .toggle.btn.active.focus {
outline: none;
}
.toggle-group {
position: absolute;
width: 200%;
top: 0;
bottom: 0;
left: 0;
-webkit-transition: left 0.35s ease-out;
transition: left 0.35s ease-out;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.toggle.off .toggle-group {
left: -100%;
}
.toggle-on, .toggle-off {
/*border: 0;*/
border: none;
position: absolute;
top: 0;
bottom: 0;
margin: 0;
border-radius: 6px; /*set to 0 if you don't want rounded corners */
}
.toggle-on {
left: 0;
right: 50%;
}
.toggle-off {
left: 50%;
right: 0;
}
.toggle-handle {
position: relative;
margin: 0 auto;
padding-top: 0;
padding-bottom: 0;
height: 100%;
width: 0;
border-width: 0 1px;
}
.toggle.btn {
min-width: 59px;
min-height: 34px;
}
.toggle-on.btn {
padding-right: 24px;
}
.toggle-off.btn {
padding-left: 24px;
}
.toggle.btn-lg {
min-width: 79px;
min-height: 45px;
}
.toggle-on.btn-lg {
padding-right: 31px;
}
.toggle-off.btn-lg {
padding-left: 31px;
}
.toggle-handle.btn-lg {
width: 40px;
}
.toggle.btn-sm {
min-width: 50px;
min-height: 30px;
}
.toggle-on.btn-sm {
padding-right: 20px;
}
.toggle-off.btn-sm {
padding-left: 20px;
}
.toggle.btn-xs {
min-width: 35px;
min-height: 22px;
}
.toggle-on.btn-xs {
padding-right: 12px;
}
.toggle-off.btn-xs {
padding-left: 12px;
}