-
Notifications
You must be signed in to change notification settings - Fork 0
/
carousel.css
132 lines (115 loc) · 2.81 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
@charset "UTF-8";
@import url("https://fonts.googleapis.com/css?family=Montserrat:100,100i,200,200i,300,300i,400,400i,500,500i,600,600i,700,700i,800,800i,900,900i");
*, *::after, *::before {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
-ms-box-sizing: border-box;
-o-box-sizing: border-box;
box-sizing: border-box;
}
html {
line-height: 1.5;
font-size: 1rem;
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
font-family: "Montserrat", sans-serif;
-webkit-tap-highlight-color: transparent;
color: #676767;
height: 100%;
touch-action: manipulation;
}
body {
margin: 0;
background: #e9e9e9 !important;
height: 100%;
text-align: center;
padding: 10%;
}
.carousel-slider * {
touch-action: manipulation;
}
.carousel-slider {
position: relative;
background: #fff;
width: 100%;
height: auto;
border: 1px solid #e2e2e2;
padding: 0;
overflow: hidden;
}
.carousel-slider > .carousel-content {
position: relative;
-webkit-display: inline-flex;
-moz-display: inline-flex;
-ms-display: inline-flex;
-o-display: inline-flex;
display: inline-flex;
user-select: none;
}
.carousel-slider > .carousel-content > .slide-item {
background: white;
}
.carousel-slider .carousel-next-btn,
.carousel-slider .carousel-prev-btn {
background: rgba(0, 0, 0, 0.7);
color: white;
padding: 10px 14px 8px 14px;
outline: none;
border: none;
transition: all 0.25s ease-in-out;
text-align: center;
opacity: 0;
position: absolute;
top: 50%;
transform: translate(0%, -50%);
-ms-transform: translate(0%, -50%);
min-height: 40px;
min-width: 40px;
}
.carousel-slider .carousel-next-btn:hover,
.carousel-slider .carousel-prev-btn:hover {
background-color: black;
cursor: pointer;
}
.carousel-slider .carousel-next-btn {
position: absolute;
right: 0;
}
.carousel-slider .carousel-prev-btn {
position: absolute;
left: 0;
}
.carousel-slider .carousel-pagination {
width: 100%;
display: inline-flex;
justify-content: center;
bottom: 0;
position: absolute;
opacity: 0;
left: 0;
}
.carousel-slider .carousel-pagination.stick .item {
border-radius: 17px;
min-width: 30px;
min-height: 5px !important;
cursor: pointer;
position: relative;
top: -10px;
}
.carousel-slider .carousel-pagination .item {
background: rgba(0, 0, 0, 0.7);
transition: all 0.25s ease-in-out;
color: white;
min-height: 10px;
min-width: 10px;
border-radius: 50%;
margin: 5px;
}
.carousel-slider .carousel-pagination .item:hover {
background-color: black;
}
.carousel-slider:hover .carousel-next-btn,
.carousel-slider:hover .carousel-prev-btn,
.carousel-slider:hover .carousel-pagination {
opacity: 1;
}