swiperBox.less
2.28 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
87
@charset "UTF-8";
.swiper-box {
position: relative;
width: 750px;
height: 380px;
overflow: hidden;
.swipe {
margin: 0 auto;
width: 690px;
height: 100%;
.swipe-item {
width: 100%;
height: 100%;
.item {
display: flex;
justify-content: center;
align-items: center;
width: 100%;
height: 100%;
border-radius: 16px;
overflow: hidden;
.img-box {
width: 100%;
height: 100%;
overflow: hidden;
.img {
display: block;
width: 100%;
height: 100%;
border-radius: 16px;
object-fit: cover;
overflow: hidden;
}
}
}
}
.custom-indicator {
width: 74px;
height: 38px;
line-height:38px;
background: #848484;
border-radius: 20px;
// opacity: 0.45;
position: absolute;
right: 30px;
bottom: 30px;
font-size: 22px;
color: #fff;
text-align: center;
}
/deep/ .van-swipe__indicators {
left: unset;
right: 26px;
bottom: 20px;
.van-swipe__indicator {
background-color: rgba(255, 255, 255, 0.5);
width: 8px;
height: 8px;
margin: 0 4px;
opacity: unset;
border-radius: 50%;
&.van-swipe__indicator--active {
background:rgba(252,21,65,1);
width: 16px;
border-radius: 4px;
}
}
}
.play-button-box {
position: absolute;
top: 0;
left: 0;
z-index: 1;
display: flex;
justify-content: center;
align-items: center;
width: 100%;
height: 100%;
.play-button-img {
display: block;
width: 100px;
height: 100px;
}
}
}
}