-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.css
91 lines (76 loc) · 1.54 KB
/
main.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
/* If you want to see what's going on, uncomment the bit below */
.parallax__group {
transition: transform 500ms;
/* transform: translate3d(700px, 0, -800px) rotateY(30deg); */
}
.parallax {
/*
* If height > 100vh, content gets clipped by the viewport.
* If height < 100vh, you get scrollbars and whitespace in the viewport.
*/
height: 100vh;
overflow-x: hidden;
overflow-y: auto;
perspective: 300px;
}
.parallax__group {
transform-style: preserve-3d;
}
.parallax__group:nth-child(1) {
color: white;
}
.parallax__layer--foreground {
transform: translateZ(0px);
transform-style: preserve-3d;
}
.parallax__group:nth-child(1) .parallax__layer--foreground {
padding-bottom: 5rem;
}
.parallax__layer--background {
position: absolute;
top: -100vh;
right: 0;
bottom: -50vh;
left: 0;
transform: translateZ(-300px) scaleX(2);
}
.snazzy-background {
background: repeating-linear-gradient(
-45deg,
rgb(0,175,0) 0,
rgb(0,175,0) 25px,
rgb(0,0,0) 30px,
rgb(0,0,0) 55px,
rgb(0,175,0) 60px) top left;
}
html, body {
font-family: sans-serif;
overflow: hidden;
}
h1 {
font-size: 64pt;
text-align: center;
}
main {
background-color: rgb(255,255,0);
margin-block: 5rem;
margin-inline: max(3rem, 80% - 65rem);
padding: 1rem 3rem;
color: black;
}
main p {
font-size: 21pt;
}
footer div {
background-color: rgb(125,100,0);
height: 50vh;
color: white;
padding: 1rem;
}
footer p {
font-size: 18pt;
font-style: italic;
margin: 1rem auto 5rem auto;
padding: 0 3rem;
text-align: end;
}