Debian Codegraph @

dojox/mobile/themes/common/Switch-compat.less

raw
1 /* dojox.mobile.Switch */
2 /* Switch - common */
3 .dj_gecko {
4 .mblSwitchBg {
5 -moz-box-sizing: border-box;
6 }
7 .mblSwitchKnob {
8 -moz-box-sizing: border-box;
9 }
10 .mblSwitch {
11 .mblSwitchBgLeft {
12 background-image: @mbl-switch-bg-left-background-image-gecko;
13 }
14 .mblSwitchBgRight {
15 background-image: @mbl-switch-bg-right-background-image-gecko;
16 }
17 .mblSwitchKnob {
18 background-image: @mbl-switch-knob-background-image-gecko;
19 }
20 }
21 }
22
23 .dj_ie {
24 .mblSwitchBg {
25 border: none;
26 background: none;
27 }
28 .mblSwitchBgLeft {
29 background-repeat: no-repeat;
30 }
31 .mblSwitchBgRight {
32 background-repeat: no-repeat;
33 }
34 .mblSwitchKnob {
35 background: none;
36 background-repeat: no-repeat;
37 border: none;
38 }
39 }
40
41 /* Square Shape */
42 .mblSwSquareShape-styles () {
43 .mblSwitchBg {
44 -moz-border-radius: @mbl-switch-square-border-radius;
45 }
46 .mblSwitchBgLeft {
47 background-image: url(compat/switch-square-l.gif);
48 }
49 .mblSwitchBgRight {
50 background-image: url(compat/switch-square-r.gif);
51 }
52 .mblSwitchKnob {
53 -moz-border-radius: @mbl-switch-square-border-radius;
54 background-image: url(compat/switch-square-k.gif);
55 }
56 }
57 .mblSwSquareShape {
58 .mblSwSquareShape-styles;
59 }
60
61 /* Round Shape1 */
62 .mblSwRoundShape1-styles () {
63 .mblSwitchBg {
64 -moz-border-radius: 14px;
65 }
66 .mblSwitchBgLeft {
67 background-image: url(compat/switch-round1-l.gif);
68 }
69 .mblSwitchBgRight {
70 background-image: url(compat/switch-round1-r.gif);
71 }
72 .mblSwitchKnob {
73 -moz-border-radius: 13px;
74 background-image: url(compat/switch-round1-k.gif);
75 }
76 }
77 .mblSwRoundShape1 {
78 .mblSwRoundShape1-styles;
79 }
80
81 /* Round Shape2 */
82 .mblSwRoundShape2-styles () {
83 .mblSwitchBg {
84 -moz-border-radius: 14px;
85 }
86 .mblSwitchBgLeft {
87 background-image: url(compat/switch-round2-l.gif);
88 }
89 .mblSwitchBgRight {
90 background-image: url(compat/switch-round2-r.gif);
91 }
92 .mblSwitchKnob {
93 -moz-border-radius: 13px;
94 background-image: url(compat/switch-round2-k.gif);
95 }
96 }
97 .mblSwRoundShape2 {
98 .mblSwRoundShape2-styles;
99 }
100
101 /* Arc Shape1 */
102 .mblSwArcShape1-styles () {
103 .mblSwitchBg {
104 -moz-border-radius: ~"5px/14px";
105 }
106 .mblSwitchBgLeft {
107 background-image: url(compat/switch-arc1-l.gif);
108 }
109 .mblSwitchBgRight {
110 background-image: url(compat/switch-arc1-r.gif);
111 }
112 .mblSwitchKnob {
113 -moz-border-radius: ~"5px/13px";
114 background-image: url(compat/switch-arc1-k.gif);
115 }
116 }
117 .mblSwArcShape1 {
118 .mblSwArcShape1-styles;
119 }
120
121 /* Switch - Arc Shape2 */
122 .mblSwArcShape2-styles () {
123 .mblSwitchBg {
124 -moz-border-radius: ~"5px/14px";
125 }
126 .mblSwitchBgLeft {
127 background-image: url(compat/switch-arc2-l.gif);
128 }
129 .mblSwitchBgRight {
130 background-image: url(compat/switch-arc2-r.gif);
131 }
132 .mblSwitchKnob {
133 -moz-border-radius: ~"5px/13px";
134 background-image: url(compat/switch-arc2-k.gif);
135 }
136 }
137 .mblSwArcShape2 {
138 .mblSwArcShape2-styles;
139 }