-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathcarousel.scss
69 lines (68 loc) · 1.07 KB
/
carousel.scss
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
.carousel-wrapper{
position: relative;
margin-bottom: 50px;
width: 900px;
height: 400px;
&:hover{
.control-content{
.prev, .next{
opacity: 1;
}
}
}
.img-content{
position: absolute;
top: 0;
left: 0;
}
.indicator-content{
position: absolute;
bottom: 20px;
left: 50%;
/* margin-left: -45px; */
/* width: 90px; */
height: 22px;
background: rgba(223, 223, 223, 0.6);
border-radius: 11px;
.indicator-list{
overflow: hidden;
.indicator-item{
float: left;
width: 30px;
height: 22px;
.indicator-icon{
display: inline-block;
margin: 3px 0 0 7px;
width: 16px;
height: 16px;
border-radius: 50%;
background: #fff;
&.active{
background: #df3526;
}
}
}
}
}
.control-content{
.prev, .next{
position: absolute;
top: 170px;
width: 40px;
height: 60px;
line-height: 60px;
text-align: center;
background: rgba(63, 64, 65, 0.7);
color: #fff;
font-size: 40px;
cursor: pointer;
opacity: 0.2;
}
.prev{
left: 0;
}
.next{
right: 0;
}
}
}