-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
194 lines (160 loc) · 2.94 KB
/
style.css
File metadata and controls
194 lines (160 loc) · 2.94 KB
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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
:root {
--background-gray: #111111;
--background-accent-red: #be3535;
--background-accent-purple: #6b368a;
--background-accent-blue: #445aa3;
--text-h1: 3rem;
--text-h2: 2.3rem;
--text-big: 1.2rem;
--color-white: #f1f1f1;
}
* {
box-sizing: border-box;
z-index: 5;
position: relative;
}
html,
body {
margin: 0;
padding: 0;
background: var(--background-gray);
color: var(--color-white);
font-family: 'Unbounded', sans-serif;
font-weight: 400;
}
body, a {
cursor: url('/img/cursor.svg') 2 6, default;
}
header#main {
position: sticky;
top: 0;
width: 100%;
background: var(--background-gray);
padding: 1.5rem 3rem;
display: flex;
gap: 2rem;
align-items: center;
z-index: 10;
}
header#main h1 {
--text-color: var(--background-accent-blue);
}
header#main img {
max-width: 5rem;
border-radius: 8px;
box-shadow: 4px 4px var(--background-accent-blue);
will-change: box-shadow;
transition: all 100ms ease-in-out;
}
header#main img:hover {
box-shadow: -4px -4px var(--background-accent-blue);
}
h1,
h2 {
font-weight: 500;
margin: 0;
text-shadow: 4px 4px var(--text-color);
will-change: text-shadow;
transition: all 100ms ease-in-out;
}
h1:hover,
h2:hover {
text-shadow: -4px -4px var(--text-color);
}
h1 {
font-size: var(--text-h1);
line-height: var(--text-h1);
}
h2 {
font-size: var(--text-h2);
line-height: var(--text-h2);
display: inline;
}
header:not(#main) {
display: flex;
justify-content: center;
}
section h2 {
text-align: center;
}
section h2::after {
content: '';
position: absolute;
top: 0;
right: 0;
transform: translate3d(50%, 0, 0);
width: 0;
height: 0;
}
a {
text-decoration: none;
color: var(--color-link);
}
ul {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 2rem;
margin: 4rem 0;
padding: 0;
}
li {
list-style: none;
margin: 0;
}
li a {
background: var(--background-gray);
padding: 1rem 2rem;
border: 2px solid var(--background-accent-red);
font-weight: 600;
transition: all ease-in-out 200ms;
border-radius: 1rem;
box-shadow: 4px 4px var(--background-accent-red);
will-change: box-shadow;
transition: all 100ms ease-in-out;
}
li a:hover {
color: var(--color-white);
box-shadow: -4px -4px var(--background-accent-red);
}
dl {
margin: 2rem;
padding: 0;
}
dt {
font-weight: 600;
font-size: var(--text-big);
line-height: var(--text-big);
border-bottom: 4px solid var(--background-accent-purple);
display: table;
transition: all 100ms ease-in-out;
will-change: margin, padding;
margin: 0 0;
padding: 0 0;
}
dt:hover {
margin: 0 -1rem;
padding: 0 1rem;
}
dd {
margin: 0.5rem 1rem;
display: table;
}
#calculated-fact {
/* cursor: pointer; */
user-select: none;
}
.red {
--text-color: var(--background-accent-red)
}
.purple {
--text-color: var(--background-accent-purple)
}
#canvas-container {
position: fixed;
top: 0;
bottom: 0;
left: 0;
right: 0;
z-index: 0;
}