-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathslider.css
102 lines (88 loc) · 1.51 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
body {
margin:0;
border:0;
padding:0;
width:100%;
font:14px/1.5 Verdana, Geneva, sans-serif;
background-color:#fff;
}
img {
border:0;
max-width:800px;
}
/* CSS Slider */
.slides {
padding:0;
margin:0 0 30px 0;
width: 100%;
height: auto;
display: flex;
flex-direction: column;
align-items: center;
}
.slides * {
user-select: none;
}
.slides input {
display: none;
}
.slide-container {
display: inline-flex;
align-items: center;
justify-content: space-between;
gap:0 28px;
visibility: collapse;
height:0;
opacity: 0;
transition: visibility 0s, opacity 0.7s linear;
}
.slide-container label {
flex-shrink: 0;
padding:0;
margin:0;
width: 40px;
height: 40px;
font-size: 32px;
cursor: pointer;
color: #FFF;
background-color: #642c6a;
border-radius: 6px;
display:flex;
align-items: center;
justify-content: center;
}
.slide img {
width: 100%;
height: 100%;
border-radius: 14px;
}
input:checked + .slide-container {
visibility: visible !important;
height:auto;
opacity: 1;
}
.nav-dots {
display: block;
width: 100%;
margin-top:10px;
text-align: center;
}
.nav-dots .nav-dot {
width: 10px;
height: 10px;
margin: 0 4px;
position: relative;
border-radius: 100%;
display: inline-block;
background-color: #fff;
border:2px solid #642c6a;
}
.nav-dots .nav-dot:hover {
cursor: pointer;
background-color: #9c63a3;
}
input#img-1:checked ~ .nav-dots label#img-dot-1,
input#img-2:checked ~ .nav-dots label#img-dot-2,
input#img-3:checked ~ .nav-dots label#img-dot-3 {
background: #642c6a;
}