-
Notifications
You must be signed in to change notification settings - Fork 0
/
carousel.css
95 lines (79 loc) · 1.49 KB
/
carousel.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
.carousel {
position: relative;
width: 70vw;
height: 400px;
overflow: hidden;
}
.carousel .main {
position: absolute;
left: -100%;
width: 700%;
height: 100%;
overflow: hidden;
}
.carousel .main img{
float: left;
width: 14.28%;
height: 100%;
object-fit: cover;
}
.carousel .carousel-navigator {
display: block;
position: absolute;
top: 50%;
margin: 0;
padding: 0;
width: 100%;
height: 10vh;
}
.carousel .carousel-navigator .container {
height: 100%;
width: 100%;
position: absolute;
top: -50%;
}
.carousel .carousel-navigator li button {
color: white;
border: none;
font-weight: bold;
font-size: 5em;
background-color: rgba(0, 0, 0, 0.5);
opacity: 0.3;
}
.carousel .carousel-navigator li button:hover {
opacity: 1;
}
.carousel .carousel-navigator li:first-child {
float: left;
}
.carousel .carousel-navigator li:nth-child(2) {
float: right;
}
.carousel .carousel-buttons {
position: absolute;
bottom: 0px;
padding: 0;
width: 100%;
text-align: center;
}
.carousel .carousel-buttons li{
display: inline-block;
}
.carousel .carousel-buttons li button{
height: 12px;
width: 12px;
border-radius: 100%;
border: none;
background-color: white;
}
.carousel .carousel-button-active {
background-color: orange !important;
}
.carousel ul {
list-style: none;
}
.clearfix:after {
display: table;
content: " ";
clear: both;
}