-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathstyle.css
More file actions
40 lines (39 loc) · 738 Bytes
/
style.css
File metadata and controls
40 lines (39 loc) · 738 Bytes
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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
background-color: #0e0e0e;
}
.slider-container {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 80%;
height: 300px;
overflow: hidden;
cursor: grab;
}
.slider {
position: absolute;
top: 0;
left: 0;
width: auto;
height: 100%;
display: grid;
grid-template-columns: repeat(10, 1fr); /*we have 10 imgs so repeat 10 times 1 fr*/
column-gap: 2rem;
pointer-events: none;
}
.slider-item {
width: 300px;
height: 100%;
}
.slider-item img {
width: 100%;
height: 100%;
object-fit: cover;
user-select: none;
}