Debian Codegraph @

dojox/mobile/themes/ios7/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: 11.5px;
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: rgba(176, 176, 176, 0.5) 1px inset;
44 }
45 .mblSwitchBgLeft {
46 left: 0;
47 color: white;
48 background-color: #3f84eb;
49 background-image: none;
50 }
51 .mblSwitchBgRight {
52 color: #7f7f7f;
53 background-image: -webkit-gradient(linear, left top, left bottom, from(#bdbebd), to(#f7f3f7));
54 background-image: linear-gradient(to bottom, #bdbebd 0%, #f7f3f7 100%);
55 }
56 .mblSwitchKnob {
57 position: absolute;
58 top: 0;
59 height: 27px;
60 background-image: -webkit-gradient(linear, left top, left bottom, from(#9c9a9c), to(#848284));
61 background-image: linear-gradient(to bottom, #9c9a9c 0%, #848284 100%);
62 font-size: 1px;
63 -webkit-box-sizing: border-box;
64 box-sizing: border-box;
65 border: rgba(157, 157, 157, 0.5) 1px outset;
66 }
67 .mblSwitchText {
68 position: relative;
69 top: 0;
70 width: 53px;
71 height: 27px;
72 padding: 0;
73 line-height: 28px;
74 text-align: center;
75 }
76 .mblSwitchTextLeft {
77 left: 0;
78 }
79 .mblSwitchTextRight {
80 left: 40px;
81 }
82 /* Square Shape */
83 .mblSwSquareShape {
84 width: 94px;
85 }
86 .mblSwSquareShape.mblSwitchOff .mblSwitchInner {
87 left: -53px;
88 }
89 .mblSwSquareShape .mblSwitchBg {
90 border-radius: 0px;
91 }
92 .mblSwSquareShape .mblSwitchBgRight {
93 left: 53px;
94 }
95 .mblSwSquareShape .mblSwitchKnob {
96 left: 53px;
97 width: 41px;
98 border-radius: 0px;
99 }
100 .mblSwSquareShape .mblSwitchText {
101 width: 53px;
102 }
103 .mblSwSquareShape .mblSwitchTextRight {
104 left: 40px;
105 }
106 /* Round Shape1 */
107 .mblSwRoundShape1 {
108 width: 77px;
109 }
110 .mblSwRoundShape1.mblSwitchOff .mblSwitchInner {
111 left: -50px;
112 }
113 .mblSwRoundShape1 .mblSwitchBg {
114 width: 77px;
115 border-radius: 14px;
116 }
117 .mblSwRoundShape1 .mblSwitchBgRight {
118 left: 50px;
119 }
120 .mblSwRoundShape1 .mblSwitchKnob {
121 left: 50px;
122 width: 27px;
123 border-radius: 13px;
124 }
125 .mblSwRoundShape1 .mblSwitchText {
126 width: 50px;
127 }
128 .mblSwRoundShape1 .mblSwitchTextRight {
129 left: 26px;
130 }
131 /* Round Shape2 */
132 .mblSwRoundShape2 {
133 width: 94px;
134 }
135 .mblSwRoundShape2.mblSwitchOff .mblSwitchInner {
136 left: -51px;
137 }
138 .mblSwRoundShape2 .mblSwitchBg {
139 border-radius: 14px;
140 }
141 .mblSwRoundShape2 .mblSwitchBgRight {
142 left: 51px;
143 }
144 .mblSwRoundShape2 .mblSwitchKnob {
145 left: 51px;
146 width: 43px;
147 border-radius: 13px;
148 }
149 .mblSwRoundShape2 .mblSwitchText {
150 width: 51px;
151 }
152 .mblSwRoundShape2 .mblSwitchTextRight {
153 left: 42px;
154 }
155 /* Arc Shape1 */
156 .mblSwArcShape1 {
157 width: 77px;
158 }
159 .mblSwArcShape1.mblSwitchOff .mblSwitchInner {
160 left: -50px;
161 }
162 .mblSwArcShape1 .mblSwitchBg {
163 width: 77px;
164 border-radius: 5px/14px;
165 }
166 .mblSwArcShape1 .mblSwitchBgRight {
167 left: 50px;
168 }
169 .mblSwArcShape1 .mblSwitchKnob {
170 left: 50px;
171 width: 27px;
172 border-radius: 5px/13px;
173 }
174 .mblSwArcShape1 .mblSwitchText {
175 width: 50px;
176 }
177 .mblSwArcShape1 .mblSwitchTextRight {
178 left: 26px;
179 }
180 /* Arc Shape2 */
181 .mblSwArcShape2 {
182 width: 94px;
183 }
184 .mblSwArcShape2.mblSwitchOff .mblSwitchInner {
185 left: -51px;
186 }
187 .mblSwArcShape2 .mblSwitchBg {
188 border-radius: 5px/14px;
189 }
190 .mblSwArcShape2 .mblSwitchBgRight {
191 left: 51px;
192 }
193 .mblSwArcShape2 .mblSwitchKnob {
194 left: 51px;
195 width: 43px;
196 border-radius: 5px/13px;
197 }
198 .mblSwArcShape2 .mblSwitchText {
199 width: 51px;
200 }
201 .mblSwArcShape2 .mblSwitchTextRight {
202 left: 42px;
203 }
204 /* Default Shape */
205 .mblSwDefaultShape {
206 width: 77px;
207 }
208 .mblSwDefaultShape.mblSwitchOff .mblSwitchInner {
209 left: -50px;
210 }
211 .mblSwDefaultShape .mblSwitchBg {
212 width: 77px;
213 border-radius: 14px;
214 }
215 .mblSwDefaultShape .mblSwitchBgRight {
216 left: 50px;
217 }
218 .mblSwDefaultShape .mblSwitchKnob {
219 left: 50px;
220 width: 27px;
221 border-radius: 13px;
222 }
223 .mblSwDefaultShape .mblSwitchText {
224 width: 50px;
225 }
226 .mblSwDefaultShape .mblSwitchTextRight {
227 left: 26px;
228 }
229 .mblSwitchKnob {
230 background-color: white;
231 background-image: none;
232 }
233 .mblSwitchBgLeft {
234 background-color: #4BD260;
235 background-image: none;
236 }
237 .mblSwitchBgRight {
238 background-color: #eeeeee;
239 background-image: none;
240 }