nnnjjj123
2020-11-17 1b2c1edb61190eeb19f465ff031eaa3b2a1b8dbc
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
@import "variables.less";
@import "../common/Switch.less";
 
/* Default Shape */
.mblSwDefaultShape {
    .mblSwSquareShape-styles;
}
 
.mblSwitchBgLeft {
    background-color: @mbl-switch-bg-left-background-color;
    height: 14px;
    margin: auto 4px;
    top: 50%;
    bottom: 50%;
    border-radius: 0 !important;
    width: 45px !important;
    z-index: 1;
}
 
.mblSwitch {
    width: 65px;
    float: right;
    display: block;
    clear: right;
 
    &:before {
        content: '';
        width: 85%;
        height: 65%;
        position: absolute;
        border: 2px solid @win-contrast-bg-color;
        margin: auto 0;
        top: 50%;
        bottom: 50%;
        z-index: 2;
    }
 
    &.mblSwitchOn .mblSwitchKnob {
      left: 45px !important;
    }
 
    & .mblSwitchInner{
        width: 100%;
    }
}
 
.mblSwitch[disabled] {
    & .mblSwitchKnob,
    & .mblSwitchBgLeft {
        background-color: @win-disabled-color;
    }
    &:before {
        border-color: @win-disabled-color;
    }
}
 
.mblSwitchText {
    display: none !important;
}
 
.mblSwitchLabel {
    color: @win-foreground-color;
    position: relative;
    float: left;
    clear: both;
    margin: 3px 0;
}
 
.mblSwitchContainer {
    width: 100%;
    min-height: 27px;
    .default-vertical-margin;
}