-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstyle.css
109 lines (90 loc) · 1.9 KB
/
style.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
:root {
--custom-black: #111;
--custom-white: #F5F5F4FF;
--custom-gray: #333;
}
* {
box-sizing: border-box;
}
html {
scroll-behavior: smooth;
}
html, body {
height: 100%;
}
main {
height: 100%;
display: flex;
align-items: center;
}
.scroll-bar-improved {
scrollbar-color: var(--custom-black);
}
/* Hide scrollbar for IE, Edge and Firefox */
.scroll-bar-improved {
-ms-overflow-style: none; /* IE and Edge */
scrollbar-width: none; /* Firefox */
}
.scroll-bar-improved::-webkit-scrollbar-track {
-webkit-box-shadow: inset 0 0 2px #111;
box-shadow: inset 0 0 2px #111;
background-color: var(--custom-white);
}
.scroll-bar-improved::-webkit-scrollbar {
height: 2px;
background-color: var(--custom-white);
}
.scroll-bar-improved::-webkit-scrollbar-thumb {
background-color: var(--custom-black);
}
.carousel-wrapper {
max-width: 1280px;
width: 100%;
margin: 0 auto;
position: relative;
}
.carousel-wrapper .carousel__button {
display: flex;
position: absolute;
top: 50%;
transform: translateY(-50%);
border-radius: 50px;
border: 0;
font-weight: bold;
cursor: pointer;
width: 40px;
height: 40px;
align-items: center;
justify-content: center;
background-color: var(--custom-black);
color: white;
}
.carousel-wrapper .carousel__button:hover {
background-color: var(--custom-gray);
}
.carousel__item {
display: block;
}
.carousel-wrapper #carousel__button--prev {
margin-left: 16px;
display: none;
}
.carousel-wrapper #carousel__button--next {
right: 0;
margin-right: 16px;
display: none;
}
.carousel {
display: flex;
gap: 16px;
overflow-y: hidden; /* Hide horizontal scrollbar */
scroll-behavior: smooth;
white-space: nowrap;
overflow-x: scroll;
}
.carousel:hover {
cursor: pointer;
}
.carousel .carousel__item img {
height: 258px;
}