switch.less
5.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
/*!
*/
@import "../../mobile/common/switch.less";
@import "base.less";
/* Switch */
.km-switch
{
width: 4.2em;
height: 1.9em;
line-height: 1.76em;
overflow: hidden;
vertical-align: middle;
}
.km-switch-wrapper
{
overflow: hidden;
}
.km-switch-background
{
width: 118%;
position: relative;
left: -95%;
margin-left: 0;
background: currentcolor;
}
.km-switch .km-switch-background
{
border-top-right-radius: 0;
border-bottom-right-radius: 0;
}
.km-switch-container
{
padding: 1px 0 1px 1px;
border-width: 0;
}
.km-switch-handle
{
width: 1.6em;
margin: 0 4px 0 0;
border: @mobile-border-width solid transparent;
background-clip: padding-box;
-webkit-box-shadow: 0 1px 0 1px currentcolor, 0 -1px 0 1px currentcolor;
box-shadow:0 1px 0 1px currentcolor, 0 -1px 0 1px currentcolor;
}
.km-switch-label-off
{
left: 101%;
}
.km-switch-label-on
{
left: -171%;
}
.km-switch-label-on,
.km-switch-label-off
{
text-shadow: none;
width: 170%;
font-size: 1em;
line-height: 1.76em;
vertical-align: middle;
top: -2px;
}
.km-switch-container,
.km-switch-wrapper
{
.box-sizing(border-box);
border-width: @mobile-border-width;
border-style: solid;
background-clip: content-box;
}