-
Notifications
You must be signed in to change notification settings - Fork 76
/
Copy pathCarousel.module.css
77 lines (66 loc) · 1.13 KB
/
Carousel.module.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
:root {
--items: 3;
--gap: 1rem;
}
.carousel__container {
display: flex;
justify-content: space-between;
align-items: center;
margin: var(--margin-large-l);
width: 100%;
}
.carousel {
overflow-x: auto;
width: 100%;
}
/* Hide scrollbar for Chrome, Safari and Opera */
.carousel::-webkit-scrollbar {
display: none;
}
/* Hide scrollbar for IE, Edge and Firefox */
.carousel {
-ms-overflow-style: none;
/* IE and Edge */
scrollbar-width: none;
/* Firefox */
}
.carousel__button__left,
.carousel__button__right {
height: 4rem;
width: 4rem;
border: none;
cursor: pointer;
margin: 0 var(--margin-medium);
background: none;
}
.carousel__button__img {
height: 100%;
width: 100%;
}
@media screen and (max-width: 1024px) {
:root {
--items: 2;
--gap: 1rem;
}
}
@media screen and (max-width: 768px) {
.carousel__button__left,
.carousel__button__right {
display: none;
}
}
@media screen and (max-width: 625px) {
:root {
--items: 1;
--gap: 1rem;
}
.carousel {
margin-left: var(--gap);
}
}
@media screen and (max-width: 426px) {
:root {
--items: 1;
--gap: 1rem;
}
}