Debian Codegraph @

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