-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathslider.css
More file actions
89 lines (75 loc) · 1.18 KB
/
slider.css
File metadata and controls
89 lines (75 loc) · 1.18 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
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
* {
box-sizing: border-box;
}
body {
width: 70%;
margin-left: auto;
margin-right: auto;
margin-top: 10vh;
background-color: #707070;
}
.slider-container {
width: 100%;
height: 400px;
box-shadow: 0px 0px 10px 10px rgba(0, 0, 0, 0.29);
overflow: hidden;
position: relative;
}
.slider {
display: flex;
flex-direction: row;
transition: all 1s;
}
.slider-dot-container {
position: absolute;
width: 100%;
bottom: 16px;
text-align: center;
}
.slider-dot {
margin-left:5px ;
margin-right:5px ;
width: 16px ;
height: 16px ;
border-radius:50px ;
background-color:white;
display: inline-block;
transition: all 1s;
border: 3px solid #202020;
}
.slider-dot-active {
background-color: #202020;
border-color: white;
}
.slide {
display: flex;
}
.slide img {
width: 100%;
}
.slider-button {
display: flex;
position: absolute;
width: 40px;
height: 100%;
top: 0;
font-size: 36px;
justify-content: center;
align-items: center;
color: white;
font-weight: bold;
}
.slider-button i {
-webkit-text-stroke: 3px black;
}
.slider-prev-button {
left: 4px;
}
.slider-next-button {
right: 4px;
}
@media screen and (max-width: 720px) {
.slider-container {
height: 200px;
}
}