16825 |
efrain |
1 |
/*\
|
|
|
2 |
|*| ========================================================================
|
|
|
3 |
|*| Bootstrap Toggle: bootstrap4-toggle.css v3.7.0
|
|
|
4 |
|*| https://gitbrent.github.io/bootstrap4-toggle/
|
|
|
5 |
|*| ========================================================================
|
|
|
6 |
|*| Copyright 2018-2019 Brent Ely
|
|
|
7 |
|*| Licensed under MIT
|
|
|
8 |
|*| ========================================================================
|
|
|
9 |
\*/
|
|
|
10 |
|
|
|
11 |
/*
|
|
|
12 |
* @added 3.0.0: Return support for "*-xs" removed in Bootstrap-4
|
|
|
13 |
* @see: [Comment](https://github.com/twbs/bootstrap/issues/21881#issuecomment-341972830)
|
|
|
14 |
*/
|
|
|
15 |
.btn-group-xs > .btn, .btn-xs {
|
|
|
16 |
padding: .35rem .4rem .25rem .4rem;
|
|
|
17 |
font-size: .875rem;
|
|
|
18 |
line-height: .5;
|
|
|
19 |
border-radius: .2rem;
|
|
|
20 |
}
|
|
|
21 |
|
|
|
22 |
.checkbox label .toggle, .checkbox-inline .toggle {
|
|
|
23 |
margin-left: -1.25rem;
|
|
|
24 |
margin-right: .35rem;
|
|
|
25 |
}
|
|
|
26 |
|
|
|
27 |
.toggle {
|
|
|
28 |
position: relative;
|
|
|
29 |
overflow: hidden;
|
|
|
30 |
}
|
|
|
31 |
.toggle.btn.btn-light, .toggle.btn.btn-outline-light {
|
|
|
32 |
/* bootstrap-4 - add a border so toggle is delineated */
|
|
|
33 |
border-color: rgba(0, 0, 0, .15);
|
|
|
34 |
}
|
|
|
35 |
.toggle input[type="checkbox"] {
|
|
|
36 |
display: none;
|
|
|
37 |
}
|
|
|
38 |
.toggle-group {
|
|
|
39 |
position: absolute;
|
|
|
40 |
width: 200%;
|
|
|
41 |
top: 0;
|
|
|
42 |
bottom: 0;
|
|
|
43 |
left: 0;
|
|
|
44 |
transition: left 0.35s;
|
|
|
45 |
-webkit-transition: left 0.35s;
|
|
|
46 |
-moz-user-select: none;
|
|
|
47 |
-webkit-user-select: none;
|
|
|
48 |
}
|
|
|
49 |
.toggle-group label, .toggle-group span { cursor: pointer; }
|
|
|
50 |
.toggle.off .toggle-group {
|
|
|
51 |
left: -100%;
|
|
|
52 |
}
|
|
|
53 |
.toggle-on {
|
|
|
54 |
position: absolute;
|
|
|
55 |
top: 0;
|
|
|
56 |
bottom: 0;
|
|
|
57 |
left: 0;
|
|
|
58 |
right: 50%;
|
|
|
59 |
margin: 0;
|
|
|
60 |
border: 0;
|
|
|
61 |
border-radius: 0;
|
|
|
62 |
}
|
|
|
63 |
.toggle-off {
|
|
|
64 |
position: absolute;
|
|
|
65 |
top: 0;
|
|
|
66 |
bottom: 0;
|
|
|
67 |
left: 50%;
|
|
|
68 |
right: 0;
|
|
|
69 |
margin: 0;
|
|
|
70 |
border: 0;
|
|
|
71 |
border-radius: 0;
|
|
|
72 |
box-shadow: none; /* Bootstrap 4.0 Support via (Issue #186)[https://github.com/minhur/bootstrap-toggle/issues/186]) */
|
|
|
73 |
}
|
|
|
74 |
.toggle-handle {
|
|
|
75 |
position: relative;
|
|
|
76 |
margin: 0 auto;
|
|
|
77 |
padding-top: 0px;
|
|
|
78 |
padding-bottom: 0px;
|
|
|
79 |
height: 100%;
|
|
|
80 |
width: 0px;
|
|
|
81 |
border-width: 0 1px;
|
|
|
82 |
background-color: #fff;
|
|
|
83 |
}
|
|
|
84 |
|
|
|
85 |
.toggle.btn-outline-primary .toggle-handle {
|
|
|
86 |
background-color: var(--primary);
|
|
|
87 |
border-color: var(--primary);
|
|
|
88 |
}
|
|
|
89 |
.toggle.btn-outline-secondary .toggle-handle {
|
|
|
90 |
background-color: var(--secondary);
|
|
|
91 |
border-color: var(--secondary);
|
|
|
92 |
}
|
|
|
93 |
.toggle.btn-outline-success .toggle-handle {
|
|
|
94 |
background-color: var(--success);
|
|
|
95 |
border-color: var(--success);
|
|
|
96 |
}
|
|
|
97 |
.toggle.btn-outline-danger .toggle-handle {
|
|
|
98 |
background-color: var(--danger);
|
|
|
99 |
border-color: var(--danger);
|
|
|
100 |
}
|
|
|
101 |
.toggle.btn-outline-warning .toggle-handle {
|
|
|
102 |
background-color: var(--warning);
|
|
|
103 |
border-color: var(--warning);
|
|
|
104 |
}
|
|
|
105 |
.toggle.btn-outline-info .toggle-handle {
|
|
|
106 |
background-color: var(--info);
|
|
|
107 |
border-color: var(--info);
|
|
|
108 |
}
|
|
|
109 |
.toggle.btn-outline-light .toggle-handle {
|
|
|
110 |
background-color: var(--light);
|
|
|
111 |
border-color: var(--light);
|
|
|
112 |
}
|
|
|
113 |
.toggle.btn-outline-dark .toggle-handle {
|
|
|
114 |
background-color: var(--dark);
|
|
|
115 |
border-color: var(--dark);
|
|
|
116 |
}
|
|
|
117 |
.toggle[class*="btn-outline"]:hover .toggle-handle {
|
|
|
118 |
background-color: var(--light);
|
|
|
119 |
opacity: 0.5;
|
|
|
120 |
}
|
|
|
121 |
|
|
|
122 |
/* NOTE: Must come first, so classes below override as needed */
|
|
|
123 |
/* [default] (bootstrap-4.1.3 - .btn - h:38px) */
|
|
|
124 |
.toggle.btn { min-width: 3.7rem; min-height: 2.15rem; }
|
|
|
125 |
.toggle-on.btn { padding-right: 1.5rem; }
|
|
|
126 |
.toggle-off.btn { padding-left: 1.5rem; }
|
|
|
127 |
|
|
|
128 |
/* `lg` (bootstrap-4.1.3 - .btn - h:48px) */
|
|
|
129 |
.toggle.btn-lg { min-width: 5rem; min-height: 2.815rem; }
|
|
|
130 |
.toggle-on.btn-lg { padding-right: 2rem; }
|
|
|
131 |
.toggle-off.btn-lg { padding-left: 2rem; }
|
|
|
132 |
.toggle-handle.btn-lg { width: 2.5rem; }
|
|
|
133 |
|
|
|
134 |
/* `sm` (bootstrap-4.1.3 - .btn - h:31px) */
|
|
|
135 |
.toggle.btn-sm { min-width: 3.125rem; min-height: 1.938rem; }
|
|
|
136 |
.toggle-on.btn-sm { padding-right: 1rem; }
|
|
|
137 |
.toggle-off.btn-sm { padding-left: 1rem; }
|
|
|
138 |
|
|
|
139 |
/* `xs` (bootstrap-3.3 - .btn - h:22px) */
|
|
|
140 |
.toggle.btn-xs { min-width: 2.19rem; min-height: 1.375rem; }
|
|
|
141 |
.toggle-on.btn-xs { padding-right: .8rem; }
|
|
|
142 |
.toggle-off.btn-xs { padding-left: .8rem; }
|