-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSlider.css
83 lines (80 loc) · 1.38 KB
/
Slider.css
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
.slider div,
.slider ul,
.slider li,
.slider a,
.slider button,
.slider img {
padding: 0;
margin: 0;
}
.slider li {
list-style: none;
}
.slider button {
outline: 0;
}
.slider {
position: relative;
max-width: 300px;
margin: 0 auto;
}
.slider .slide-viewer {
overflow: hidden;
height: 300px;
}
.slider .slide-group {
position: relative;
width: 100%;
height: 100%;
}
.slider .slide {
position: absolute;
display: none;
width: 100%;
height: 100%;
}
.slider .slide:first-child {
display: block;
}
.slider .slide-btn {
position: absolute;
width: 30px;
height: 30px;
border-radius: 50%;
text-align: center;
line-height: 30px;
background-color: #fff;
opacity: .1;
cursor: pointer;
}
.slider .slide-btn:hover {
opacity: .3;
}
.slider .slide-btn.slide-btn-prev {
left: 5px; top: 50%;
margin-top: -15px;
}
.slider .slide-btn.slide-btn-next {
right: 5px; top: 50%;
margin-top: -15px;
}
.slider .slide-bullets {
position: absolute;
bottom: 5px;
width: 100%;
height: 16px;
text-align: center;
}
.slider .slide-bullets > .slide-bullet {
padding: 0 5px;
border: none;
background: none;
font-size: 32px;
line-height: .5;
color: #fff;
cursor: pointer;
}
.slide-bullets > .slide-bullet.active,
.slide-bullets > .slide-bullet:hover {
color: darkslateblue;
}