-
Notifications
You must be signed in to change notification settings - Fork 171
/
Copy pathstyle.css
49 lines (47 loc) · 813 Bytes
/
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
html,
body {
margin: 0;
padding: 0;
font-family: sans-serif;
}
.scroller {
height: 100dvh;
overflow-y: scroll;
scroll-snap-type: y mandatory;
scroll-behavior: smooth;
& > section {
scroll-snap-align: center;
scroll-snap-stop: always;
height: 100dvh;
background: black;
img,
video {
width: 100%;
height: 100%;
object-fit: cover;
}
}
}
.scroll-nav {
position: absolute;
right: 50px;
height: 100%;
display: grid;
place-content: center;
gap: 5px;
z-index: 2;
a {
background: white;
text-align: center;
aspect-ratio: 1 / 1;
border-radius: 900px;
text-decoration: none;
color: black;
transition: padding 0.2s;
&.active {
background: black;
padding-block: 10px;
color: white;
}
}
}