-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain.css
102 lines (87 loc) · 1.37 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
91
92
93
94
95
96
97
98
99
100
101
102
:root {
--light-yellow: #fdfcdc;
--light-orange: #fed9b7;
--header-height: 80px;
}
* {
box-sizing: border-box;
}
body {
margin: 0;
font: 20px/1.5 sans-serif;
}
.container {
max-width: 1200px;
padding: 0 15px;
margin: 0 auto;
}
a {
color: inherit;
}
.site-header {
display: flex;
align-items: center;
justify-content: center;
font-size: 2rem;
height: var(--header-height);
background: var(--light-orange);
}
.hero {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: var(--unit, 100vh);
padding: 15px;
text-align: center;
background-image: url(https://assets.codepen.io/162656/man-walking.jpg);
}
.hero h1,
.hero button {
background: var(--light-yellow);
}
.hero h1 {
font-size: 3rem;
line-height: 1;
padding: 10px;
margin: 0 0 20px;
}
.hero button {
font-size: 100%;
color: inherit;
cursor: pointer;
width: 70px;
aspect-ratio: 2;
border: none;
border-radius: 5px;
transition: background 0.25s;
}
.hero button:hover,
.hero button.active {
background: var(--light-orange);
}
.hero a {
display: inline-block;
margin-top: 20px;
}
.text {
padding: 50px 0;
}
.toolbar {
position: fixed;
bottom: 5vh;
right: 10px;
display: flex;
flex-direction: column;
gap: 15px;
a {
display: flex;
text-decoration: none;
}
}
/*STICKY*/
.sticky {
.hero {
height: var(--unit, calc(100vh - var(--header-height)));
}
}