Debian Codegraph @

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