Debian Codegraph @

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