switch.less
4.91 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
/*!
*/
@import "../common/switch.less";
@import "base.less";
/* Switch */
.km-wp .km-switch
{
font-size: .7em;
width: 6.4em;
height: 2.4em;
line-height: 2.4em;
}
.km-wp .km-list .km-switch
{
margin-top: -1.2em;
}
.km-wp .km-switch-wrapper,
.km-wp .km-switch-handle,
.km-wp .km-switch-container
{
border-radius: 0;
}
.km-wp .km-switch-wrapper
{
border-style: solid;
border-width: .2em;
.box-sizing(border-box);
}
.km-wp .km-switch-container
{
left: .2em;
top: .2em;
right: .2em;
bottom: .2em;
width: auto;
height: auto;
overflow: visible;
}
.km-wp .km-switch-handle
{
width: 1.4em;
margin-top: -.2em;
padding-bottom: .4em;
z-index: 1;
}
.km-wp .km-switch-handle > span
{
display: none;
}
.km-wp .km-switch-background
{
width: 100%;
margin-left: -6em;
}