WebApp【公共组件库】@前端(For Git Submodule)
Tevin
2021-11-14 70a71c5adb35d9c2b06669319b802ae18606c388
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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
/**
 * number-valve
 * @author Tevin
 */
 
@import "../../common/sassMixin";
 
 
.c-number-valve {
    .at-input__input {
        .weui-input {
            pointer-events: none;
        }
    }
    .at-input__children {
        &::after {
            display: none;
        }
        .at-icon-chevron-right {
            font-size: 48px;
            color: #ccc;
        }
    }
    .at-input__icon {
        display: none;
    }
    .at-input__container {
        input {
            pointer-events: none;
        }
    }
    .at-float-layout {
        padding: 0;
        .at-float-layout__container {
            height: 450px;
            max-height: 100%;
            min-height: auto;
        }
        &.on-title {
            .at-float-layout__container {
                height: 530px;
            }
        }
        .layout-body {
            height: 100%;
            min-height: auto;
        }
        .layout-body__content {
            height: 100%;
            min-height: auto;
        }
    }
    .c-number-valve-slider {
        height: 100%;
        padding: 40px 25PX;
        box-sizing: border-box;
        .container {
            position: relative;
            display: flex;
            align-items: center;
            width: 100%;
            height: 28PX;
            padding: 35PX 0 50PX;
            .min {
                @include position(absolute, 20PX 0 n n);
                height: 60PX;
                border-left: #eee 1PX dashed;
                .text {
                    @include position(absolute, 64PX 0 n n);
                    transform: translateX(-50%);
                }
            }
            .max {
                @include position(absolute, 20PX n n 0);
                height: 60PX;
                border-right: #eee 1PX dashed;
                .text {
                    @include position(absolute, 64PX n n 0);
                    transform: translateX(50%);
                }
 
            }
            .rail {
                width: 100%;
                height: 2PX;
                background-color: #e2e2e2;
                box-sizing: border-box;
                overflow: hidden;
            }
            .track {
                position: absolute;
                height: 2PX;
                background-color: #2093df;
            }
            .slider {
                position: absolute;
                top: 35PX;
                left: 0;
                box-sizing: border-box;
                .circle {
                    position: relative;
                    z-index: 2;
                    width: 28PX;
                    height: 28PX;
                    margin-left: -14PX;
                    border-radius: 50%;
                    background-color: #2093df;
                    box-shadow: 0 0 4PX 0 rgba(0, 0, 0, 0.2);
                    &::after {
                        display: block;
                        @include position(absolute, -50% -50%);
                        width: 200%;
                        height: 200%;
                        background-color: rgba(#000, 0);
                        content: " ";
                    }
                }
                .current {
                    @include position(absolute, n 0 0 n, 1);
                    height: 46PX;
                    border-left: #e2e2e2 1PX solid;
                    .text {
                        @include position(absolute, -24PX 0 n n);
                        transform: translateX(-50%);
                    }
                }
            }
        }
        .btn {
            @include flexbox(flex, space-between center);
            width: calc(100% + 40PX);
            margin-left: -20PX;
            .at-button {
                margin: 0;
            }
        }
        .tips {
            @include position(absolute, n 0 10px n);
            width: 100%;
            text-align: center;
            color: #999;
            .bold {
                font-weight: bold;
            }
        }
    }
}