-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.css
112 lines (105 loc) · 2.01 KB
/
index.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
@tailwind base;
@tailwind components;
@tailwind utilities;
.Offers .flex {
scroll-behavior: smooth;
}
/* Hide scrollbar for Chrome, Safari, and Opera */
.scrollbar-hide::-webkit-scrollbar {
display: none;
}
/* Hide scrollbar for IE, Edge, and Firefox */
.scrollbar-hide {
-ms-overflow-style: none; /* IE and Edge */
scrollbar-width: none; /* Firefox */
}
.slider {
width: 92%;
max-width: 1280px;
margin: 0 auto;
}
.slider__content {
overflow-x: scroll;
-ms-scroll-snap-type: x mandatory;
scroll-snap-type: x mandatory;
display: flex;
gap: 1rem;
padding-bottom: 1rem;
}
.slider__content::-webkit-scrollbar {
height: 0.5rem;
width: 0.5rem;
border-radius: 1rem;
background: var(--scrollbackground);
}
.slider__item {
scroll-snap-align: start;
display: flex;
flex-direction: column;
justify-content: flex-end;
border-radius: 0.25rem;
overflow: hidden;
position: relative;
height: 300px;
min-width: 600px;
}
.slider__image {
display: block;
width: 100%;
height: 100%;
position: absolute;
object-fit: contain;
top: 0;
left: 0;
}
.slider__nav {
margin: 1rem 0 1rem;
width: 100%;
padding: 0;
display: flex;
justify-content: flex-start;
gap: 1rem;
align-content: center;
align-items: center;
pointer-events: none;
}
.slider__nav__button {
margin: 0;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
border: 0;
border-radius: 50%;
background: #fff;
padding: 0.5rem 0.5rem;
font-size: 1rem;
line-height: 1;
pointer-events: none;
transition: 0.2s ease-out;
opacity: 0.25;
}
.slider__nav__button--active {
opacity: 1;
pointer-events: auto;
cursor: pointer;
}
@media (min-width: 300px) {
.slider__item2 {
min-width: calc((36% / 1) - 3rem);
}
}
@media (min-width: 200px) {
.slider__item2 {
min-width: calc((30% / 1) - 2rem);
}
}
@media (min-width: 600px) {
.slider__item2 {
min-width: calc((30% / 1) - 3rem);
}
}
@media (min-width: 940px) {
.slider__item2 {
min-width: calc((16% / 1) - 3rem);
}
}