liuyg
2021-07-02 25ce610f6ecca7325e7a743dc032c4a76559c63d
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
@import "variables.less";
@import "../common/ToggleButton.less";
 
.mblToggleButton {
    &:before {
        content: '';
        position: absolute;
        width: 30px;
        height: 30px;
        top: 0px;
        border: 2px solid @win-foreground-color;
    }
 
    &:active:not([disabled]):before {
        background-color: @win-accent-color;
    }
 
    &:after {
        position: absolute;
        content: "";
        .mblToggleButtonChecked-after-styles;
        border-style: none solid solid none;
        .transform(rotate(45deg) skew(10deg));
        .transform-origin(50% 50%);
    }
}
 
.mblToggleButtonChecked,
.mblToggleButtonSelected[aria-pressed='true'] {
    &:before {
        background-color: @win-foreground-color;
    }
 
    &:after {
        border-color: @win-bg-color !important;
    }
}
 
.mblToggleButton[disabled] {
    &:before {
        border-color: @win-disabled-color;
    }
 
    &.mblToggleButtonChecked{
        &:before {
            background-color: @win-disabled-color;
        }
    }
}