bklLiudl
2025-04-07 4e8f58cb41c7b6d570fd1979d80f74ab8a4d00c2
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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
@carousel-prefix-cls: ~"@{css-prefix}carousel";
@carousel-item-prefix-cls: ~"@{css-prefix}carousel-item";
 
.@{carousel-prefix-cls} {
    position: relative;
    display: block;
    box-sizing: border-box;
    user-select: none;
    touch-action: pan-y;
    -webkit-tap-highlight-color: transparent;
 
    &-track, &-list {
        transform: translate3d(0, 0, 0);
    }
 
    &-list {
        position: relative;
        display: block;
        overflow: hidden;
 
        margin: 0;
        padding: 0;
    }
 
    &-track {
        position: relative;
        //top: 0;
        top: 100%;
        left: 0;
        display: block;
 
        overflow: hidden;
 
        z-index: 1;
        &.higher {
            z-index: 2;
            top: 0;
        }
    }
 
    &-item {
        float: left;
        height: 100%;
        min-height: 1px;
        display: block;
    }
 
    &-arrow {
 
        border: none;
        outline: none;
 
        padding: 0;
        margin: 0;
 
        width: 36px;
        height: 36px;
        border-radius: 50%;
 
        cursor: pointer;
 
        display: none;
 
        position: absolute;
        top: 50%;
        z-index: 10;
        transform: translateY(-50%);
 
        transition: @transition-time;
        background-color: rgba(31, 45, 61, .11);
        color: #fff;
 
        &:hover {
            background-color: rgba(31, 45, 61, 0.5);
        }
 
        text-align: center;
        font-size: 1em;
 
        font-family: inherit;
        line-height: inherit;
 
        & > * {
            vertical-align: baseline;
        }
 
        &.left {
            left: 16px;
        }
 
        &.right {
            right: 16px;
        }
 
        &-always {
            display: inherit;
        }
 
        &-hover {
            display: inherit;
 
            opacity: 0;
        }
    }
 
    &:hover &-arrow-hover {
        opacity: 1;
    }
 
    &-dots {
        z-index: 10;
 
        @padding: 7px;
 
        display: none;
 
        position: relative;
        &-inside {
            display: block;
            position: absolute;
            bottom: 10px - @padding;
        }
 
        &-outside {
            display: block;
            margin-top: 10px - @padding;
        }
 
        list-style: none;
 
        text-align: center;
 
        padding: 0;
        width: 100%;
        height: 3px + @padding * 2;
 
        li {
            position: relative;
            display: inline-block;
 
            vertical-align: top;
            text-align: center;
 
            margin: 0 2px;
            padding: @padding 0;
 
            cursor: pointer;
 
            button {
                border: 0;
                cursor: pointer;
 
                background: #8391a5;
                opacity: 0.3;
 
                display: block;
                width: 16px;
                height: 3px;
 
                border-radius: 1px;
                outline: none;
 
                font-size: 0;
                color: transparent;
 
                transition: all .5s;
                &.radius {
                    width: 6px;
                    height: 6px;
                    border-radius: 50%;
                }
            }
 
            &:hover > button {
                opacity: 0.7;
            }
 
            &.@{carousel-prefix-cls}-active > button {
                opacity: 1;
                width: 24px;
                &.radius{
                    width: 6px;
                }
            }
        }
    }
}