Debian Codegraph @

dojox/mobile/themes/windows/Switch.css

raw symbols SCIP
1 /* dojox.mobile.Switch */
2 /* Switch - common */
3 .mblSwitch {
4 margin: 0;
5 position: relative;
6 display: inline-block;
7 height: 27px;
8 line-height: 29px;
9 overflow: hidden;
10 text-align: left;
11 -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
12 }
13 .mblListItem .mblSwitch {
14 position: absolute;
15 right: 12px;
16 top: 8px;
17 }
18 .mblSwitchInner {
19 position: absolute;
20 top: 0;
21 height: 27px;
22 }
23 .mblSwitchAnimation .mblSwitchInner {
24 -webkit-transition-property: left;
25 transition-property: left;
26 -webkit-transition-duration: 0.1s;
27 transition-duration: 0.1s;
28 }
29 .mblSwitchOn .mblSwitchInner {
30 left: 0;
31 }
32 .mblSwitchBg {
33 position: absolute;
34 top: 0;
35 width: 94px;
36 height: 27px;
37 font-family: Helvetica;
38 font-size: 16px;
39 font-weight: bold;
40 line-height: 29px;
41 -webkit-box-sizing: border-box;
42 box-sizing: border-box;
43 border: none;
44 }
45 .mblSwitchBgLeft {
46 left: 0;
47 color: white;
48 background-color: #3f84eb;
49 }
50 .mblSwitchBgRight {
51 color: #7f7f7f;
52 }
53 .mblSwitchKnob {
54 position: absolute;
55 top: 0;
56 height: 27px;
57 font-size: 1px;
58 -webkit-box-sizing: border-box;
59 box-sizing: border-box;
60 border: 2px solid #000000;
61 background-color: #ffffff;
62 width: 18px !important;
63 z-index: 3;
64 border-radius: 0 !important;
65 }
66 .mblSwitchText {
67 position: relative;
68 top: 0;
69 width: 53px;
70 height: 27px;
71 padding: 0;
72 line-height: 28px;
73 text-align: center;
74 }
75 .mblSwitchTextLeft {
76 left: 0;
77 }
78 .mblSwitchTextRight {
79 left: 40px;
80 }
81 /* Square Shape */
82 .mblSwSquareShape {
83 width: 94px;
84 }
85 .mblSwSquareShape.mblSwitchOff .mblSwitchInner {
86 left: -53px;
87 }
88 .mblSwSquareShape .mblSwitchBg {
89 border-radius: 2px;
90 }
91 .mblSwSquareShape .mblSwitchBgRight {
92 left: 53px;
93 }
94 .mblSwSquareShape .mblSwitchKnob {
95 left: 53px;
96 width: 41px;
97 border-radius: 2px;
98 }
99 .mblSwSquareShape .mblSwitchText {
100 width: 53px;
101 }
102 .mblSwSquareShape .mblSwitchTextRight {
103 left: 40px;
104 }
105 /* Round Shape1 */
106 .mblSwRoundShape1 {
107 width: 77px;
108 }
109 .mblSwRoundShape1.mblSwitchOff .mblSwitchInner {
110 left: -50px;
111 }
112 .mblSwRoundShape1 .mblSwitchBg {
113 width: 77px;
114 border-radius: 14px;
115 }
116 .mblSwRoundShape1 .mblSwitchBgRight {
117 left: 50px;
118 }
119 .mblSwRoundShape1 .mblSwitchKnob {
120 left: 50px;
121 width: 27px;
122 border-radius: 13px;
123 }
124 .mblSwRoundShape1 .mblSwitchText {
125 width: 50px;
126 }
127 .mblSwRoundShape1 .mblSwitchTextRight {
128 left: 26px;
129 }
130 /* Round Shape2 */
131 .mblSwRoundShape2 {
132 width: 94px;
133 }
134 .mblSwRoundShape2.mblSwitchOff .mblSwitchInner {
135 left: -51px;
136 }
137 .mblSwRoundShape2 .mblSwitchBg {
138 border-radius: 14px;
139 }
140 .mblSwRoundShape2 .mblSwitchBgRight {
141 left: 51px;
142 }
143 .mblSwRoundShape2 .mblSwitchKnob {
144 left: 51px;
145 width: 43px;
146 border-radius: 13px;
147 }
148 .mblSwRoundShape2 .mblSwitchText {
149 width: 51px;
150 }
151 .mblSwRoundShape2 .mblSwitchTextRight {
152 left: 42px;
153 }
154 /* Arc Shape1 */
155 .mblSwArcShape1 {
156 width: 77px;
157 }
158 .mblSwArcShape1.mblSwitchOff .mblSwitchInner {
159 left: -50px;
160 }
161 .mblSwArcShape1 .mblSwitchBg {
162 width: 77px;
163 border-radius: 5px/14px;
164 }
165 .mblSwArcShape1 .mblSwitchBgRight {
166 left: 50px;
167 }
168 .mblSwArcShape1 .mblSwitchKnob {
169 left: 50px;
170 width: 27px;
171 border-radius: 5px/13px;
172 }
173 .mblSwArcShape1 .mblSwitchText {
174 width: 50px;
175 }
176 .mblSwArcShape1 .mblSwitchTextRight {
177 left: 26px;
178 }
179 /* Arc Shape2 */
180 .mblSwArcShape2 {
181 width: 94px;
182 }
183 .mblSwArcShape2.mblSwitchOff .mblSwitchInner {
184 left: -51px;
185 }
186 .mblSwArcShape2 .mblSwitchBg {
187 border-radius: 5px/14px;
188 }
189 .mblSwArcShape2 .mblSwitchBgRight {
190 left: 51px;
191 }
192 .mblSwArcShape2 .mblSwitchKnob {
193 left: 51px;
194 width: 43px;
195 border-radius: 5px/13px;
196 }
197 .mblSwArcShape2 .mblSwitchText {
198 width: 51px;
199 }
200 .mblSwArcShape2 .mblSwitchTextRight {
201 left: 42px;
202 }
203 /* Default Shape */
204 .mblSwDefaultShape {
205 width: 94px;
206 }
207 .mblSwDefaultShape.mblSwitchOff .mblSwitchInner {
208 left: -53px;
209 }
210 .mblSwDefaultShape .mblSwitchBg {
211 border-radius: 2px;
212 }
213 .mblSwDefaultShape .mblSwitchBgRight {
214 left: 53px;
215 }
216 .mblSwDefaultShape .mblSwitchKnob {
217 left: 53px;
218 width: 41px;
219 border-radius: 2px;
220 }
221 .mblSwDefaultShape .mblSwitchText {
222 width: 53px;
223 }
224 .mblSwDefaultShape .mblSwitchTextRight {
225 left: 40px;
226 }
227 .mblSwitchBgLeft {
228 background-color: Highlight;
229 height: 14px;
230 margin: auto 4px;
231 top: 50%;
232 bottom: 50%;
233 border-radius: 0 !important;
234 width: 45px !important;
235 z-index: 1;
236 }
237 .mblSwitch {
238 width: 65px;
239 float: right;
240 display: block;
241 clear: right;
242 }
243 .mblSwitch:before {
244 content: '';
245 width: 85%;
246 height: 65%;
247 position: absolute;
248 border: 2px solid #ffffff;
249 margin: auto 0;
250 top: 50%;
251 bottom: 50%;
252 z-index: 2;
253 }
254 .mblSwitch.mblSwitchOn .mblSwitchKnob {
255 left: 45px !important;
256 }
257 .mblSwitch .mblSwitchInner {
258 width: 100%;
259 }
260 .mblSwitch[disabled] .mblSwitchKnob,
261 .mblSwitch[disabled] .mblSwitchBgLeft {
262 background-color: #808080;
263 }
264 .mblSwitch[disabled]:before {
265 border-color: #808080;
266 }
267 .mblSwitchText {
268 display: none !important;
269 }
270 .mblSwitchLabel {
271 color: #ffffff;
272 position: relative;
273 float: left;
274 clear: both;
275 margin: 3px 0;
276 }
277 .mblSwitchContainer {
278 width: 100%;
279 min-height: 27px;
280 margin-top: 8px;
281 margin-bottom: 8px;
282 }