Debian Codegraph @

dojox/mobile/themes/windows/Switch.less

raw
1 @import "variables.less";
2 @import "../common/Switch.less";
3
4 /* Default Shape */
5 .mblSwDefaultShape {
6 .mblSwSquareShape-styles;
7 }
8
9 .mblSwitchBgLeft {
10 background-color: @mbl-switch-bg-left-background-color;
11 height: 14px;
12 margin: auto 4px;
13 top: 50%;
14 bottom: 50%;
15 border-radius: 0 !important;
16 width: 45px !important;
17 z-index: 1;
18 }
19
20 .mblSwitch {
21 width: 65px;
22 float: right;
23 display: block;
24 clear: right;
25
26 &:before {
27 content: '';
28 width: 85%;
29 height: 65%;
30 position: absolute;
31 border: 2px solid @win-contrast-bg-color;
32 margin: auto 0;
33 top: 50%;
34 bottom: 50%;
35 z-index: 2;
36 }
37
38 &.mblSwitchOn .mblSwitchKnob {
39 left: 45px !important;
40 }
41
42 & .mblSwitchInner{
43 width: 100%;
44 }
45 }
46
47 .mblSwitch[disabled] {
48 & .mblSwitchKnob,
49 & .mblSwitchBgLeft {
50 background-color: @win-disabled-color;
51 }
52 &:before {
53 border-color: @win-disabled-color;
54 }
55 }
56
57 .mblSwitchText {
58 display: none !important;
59 }
60
61 .mblSwitchLabel {
62 color: @win-foreground-color;
63 position: relative;
64 float: left;
65 clear: both;
66 margin: 3px 0;
67 }
68
69 .mblSwitchContainer {
70 width: 100%;
71 min-height: 27px;
72 .default-vertical-margin;
73 }