-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
65 lines (55 loc) · 1.01 KB
/
styles.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
body {
background: #000000;
}
html {
scroll-behavior: smooth;
}
.top {
height: 100vh;
background: #000000;
text-align: center;
font-family: sans-serif;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
color: #fff;
}
.canvas-container {
height: 10000px;
background: #101010;
position: relative;
}
.bg-container {
margin: 0 auto;
height: 100%;
position: absolute;
width: 100%;
}
.sticky-pos {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
width: 100%;
position: -webkit-sticky;
position: sticky;
top: 0;
height: 100vh;
}
#canvas {
position: relative;
width: auto;
height: auto;
max-width: 1000px; /* <- changer ca pour le responsive */
}
@media screen and (max-width: 720px) {
#canvas {
max-width: 350px; /* <- changer ca pour le responsive */
}
}