switch.less
5.25 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
/*!
*/
@import "../common/switch.less";
@import "base.less";
/* Switch */
.km-ios7 .km-switch
{
width: 3.6rem;
height: 2.2rem;
overflow: visible;
}
.km-ios7 .km-switch-wrapper
{
overflow: hidden;
}
.km-ios7 .km-switch-background,
.km-ios7 .k-slider-selection
{
background-position: 4.25em 0;
background-repeat: no-repeat;
background-color: currentcolor;
margin-left: -3.4rem;
}
.km-ios7 .km-switch-container
{
overflow: visible;
border-width: 0;
padding: 0 0 0 1px;
}
.km-ios7 .km-switch-handle
{
width: 2.2em;
.transition(width .2s linear);
margin: 0 3px 0 0;
}
.km-ios7 .km-switch-handle.km-state-active
{
width: 2.6em;
}
.km-ios7 .km-switch-label-on,
.km-ios7 .km-switch-label-off
{
display: none;
}
.km-ios7 .km-switch-handle,
.km-ios7 .km-switch-wrapper,
.km-ios7 .km-switch-container,
.km-ios7 .km-switch-background
{
border-radius: 3em;
}
.km-ios7 .km-switch-container,
.km-ios7 .km-switch-wrapper
{
.box-sizing(border-box);
border-width: 1px;
border-style: solid;
background-clip: content-box;
}
.km-ios7 .km-switch-on .km-switch-container
{
border-color: currentcolor;
}