This repository was archived by the owner on Jan 20, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
88 lines (88 loc) · 1.37 KB
/
style.css
File metadata and controls
88 lines (88 loc) · 1.37 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
html {
height: 100%;
width: 100%;
}
body {
font-family: sans-serif;
background-color: #444;
}
a {
text-decoration: none;
}
.slider {
color: #444;
position: relative;
width: 80%;
height: 450px;
margin: 0 auto;
}
.slider__viewport {
position: relative;
overflow: hidden;
width: 100%;
height: 100%;
border-radius: 5px;
}
.slider__slides {
position: relative;
width: 100%;
height: 100%;
margin: 0 auto;
padding: 0;
list-style: none;
font-size: 0;
white-space: nowrap;
line-height: 1;
z-index: 10;
}
.slider__button {
cursor: pointer;
font-size: 2rem;
background: none;
border: none;
position: absolute;
top: 50%;
transform: translateY(-50%);
z-index: 20;
background-color: #fff;
padding: 10px 20px;
opacity: 0.5;
}
.slider__button--prev {
left: 10px;
}
.slider__button--next {
right: 10px;
}
.slide-list__item {
position: relative;
display: inline-block;
width: 100%;
height: 100%;
margin: 0;
padding: 0;
transition: left 0.4s;
background-color: #fff;
}
.slide-list__image{
object-fit: cover;
display: block;
height: 100%;
width: 100%;
}
.slider-pager {
position: absolute;
text-align: center;
width: 100%;
bottom: -50px;
}
.slider-pager__item {
cursor: pointer;
border: none;
border-radius: 50%;
width: 15px;
height: 15px;
line-height: 1rem;
margin: 0 5px;
background-color: #fff;
}