-
Notifications
You must be signed in to change notification settings - Fork 16
/
slider.css
65 lines (58 loc) · 922 Bytes
/
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
.slider ul li > img {
display: block;
max-width: 100%;
object-fit: cover;
margin: 0 auto;
}
.slider ol {
position: absolute;
margin: 0;
padding: 0;
list-style-type: none;
bottom: .5em;
text-align: center;
width: 100%;
}
.slider ol li {
display: inline-block;
min-width: 10px;
min-height: 10px;
width: .6em;
height: .6em;
background-color: #BEC0BC;
margin: 0 .5em;
border-radius: 50%;
overflow: hidden;
cursor: pointer;
text-indent: 100%;
}
.slider ol [aria-current="true"] {
pointer-events: none;
cursor: auto;
background-color: black;
}
.slider ul ~ div {
position: absolute;
width: 100%;
top: 50%;
margin-top: -1em;
padding: 0;
}
.slider ul ~ div button {
position: absolute;
font-size: inherit;
background-color: black;
height: 2em;
width: 2em;
opacity: .5;
padding: 0;
border: 0;
outline: none;
cursor: pointer;
}
.slider .prev {
left: 0;
}
.slider .next {
right: 0;
}