slider-comp.scss
1.16 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
@import "@/styles/_support.scss";
.slider {
position: relative;
// margin: 20px 0;
width: 100%;
height: 17px;
border-radius: 8.5px;
@include linear-bg-rev;
}
.slider .process {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 17px;
border-radius: 8.5px;
}
.slider .thunk {
position: absolute;
bottom: -4px;
left: -12px;
}
.slider .block {
background-image: url("~@/assets/images/index/index-thumb.png");
@extend .bis;
width: 27px;
height: 26px;
margin: 1px auto 0;
cursor: pointer;
transition: 0.2s all;
}
.slider .tips {
// position: absolute;
// left: -7px;
// bottom: 30px;
// min-width: 15px;
// text-align: center;
// padding: 4px 8px;
// background: #000;
// border-radius: 5px;
// height: 24px;
// color: #fff;
background-image: url("~@/assets/images/index/index-num-bg.png");
@extend .bis;
width: 40px;
height: 30px;
font-size: $fontSize-M2;
color: #ffffff;
text-align: center;
padding-top: 2px;
}
.slider .tips i {
position: absolute;
margin-left: -5px;
left: 50%;
bottom: -9px;
font-size: 16px;
color: #000;
}
.slider .block:hover {
// transform: scale(1.1);
opacity: 0.9;
}