-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
271 lines (236 loc) · 5.45 KB
/
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
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
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
/*
<100 Days of Cromega Code: Landing Page for my 100 Days of Code Challenge.>
Copyright (C) <2022> <Cromega>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
by the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
:root {
--main: #000000;
--second: #3D0000;
--third: #950101;
--contrast: #FF0000;
}
::-webkit-scrollbar {
display: none;
}
header {
min-width: 100vw;
display: flex;
flex-direction: row;
justify-items: flex-start;
align-items: center;
}
body {
overflow-x: hidden;
min-height: 100vh;
min-width: 100vw;
color: var(--contrast);
background-color: #000000;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25' viewBox='0 0 1600 800'%3E%3Cg %3E%3Cpolygon fill='%23220000' points='1600 160 0 460 0 350 1600 50'/%3E%3Cpolygon fill='%23440000' points='1600 260 0 560 0 450 1600 150'/%3E%3Cpolygon fill='%23660000' points='1600 360 0 660 0 550 1600 250'/%3E%3Cpolygon fill='%23880000' points='1600 460 0 760 0 650 1600 350'/%3E%3Cpolygon fill='%23A00' points='1600 800 0 800 0 750 1600 450'/%3E%3C/g%3E%3C/svg%3E");
background-attachment: fixed;
background-size: cover;
display: grid;
justify-items: center;
align-items: center;
}
section {
display: grid;
justify-items: center;
align-items: center;
}
aside {
width: 80vw;
text-align: center;
background-color: transparent;
color: var(--main);
font-size: 1.2em;
font-weight: 100;
font-style: italic;
display: grid;
justify-items: center;
align-items: center;
}
a:link, a:visited {
text-decoration: none;
color: var(--contrast);
}
img {
aspect-ratio: 1/1;
width: 5em;
margin: 1em;
}
footer {
width: 92.5vw;
color: var(--main);
font-size: 1.2em;
border: none;
display: flex;
flex-direction: row;
justify-content: flex-end;
align-items: center;
}
footer > a > img {
width: 3.5em;
margin: 0 0 0 .5em;
}
.repository {
aspect-ratio: 16/9;
width: 80vw;
border: solid var(--second);
border-radius: 1em;
}
/* #switch {
position: relative;
display: inline;
width: 13em;
height: 3em;
}
input {
opacity: 0;
}
input:checked + #slider {
background-color: var(--contrast);
box-shadow: 0 0 1em 0 var(--main);
}
input:checked + #slider::before {
content: "Kallaway Repository";
color: var(--contrast);
background-color: var(--main);
transform: translateX(5em);
}
#slider {
position: absolute;
cursor: pointer;
top: 0;
bottom: 0;
left: 0;
right: 0;
background-color: var(--main);
box-shadow: 0 0 1em 0 var(--third);
border-radius: 1em;
transition: 500ms;
}
#slider::before {
position: absolute;
content: "Cromega Repository";
text-align: center;
color: var(--main);
height: 3em;
width: 8em;
background-color: var(--contrast);
border-radius: 1em;
transition: 500ms;
display: grid;
place-content: center;
}
#cromega > img {
content: url("imgs/100_Days_of_Code.png");
} */
#links {
display: inline-block;
place-items: center;
}
#cromega {
z-index: 1;
}
/*
#kallaway {
position: absolute;
} */
#benefits {
width: 80vw;
margin: .75em;
color: var(--contrast);
display: flex;
flex-direction: row;
justify-content: space-between;
align-content: center;
}
h4 {
aspect-ratio: 1/.2;
height: 3em;
width: 10em;
background-color: var(--main);
border: none;
border-radius: 1em;
display: grid;
justify-content: center;
align-content: center;
}
@media (orientation: landscape) {
header {
margin: 0;
width: 100vw;
font-size: 1.25em;
text-align: center;
display: grid;
justify-items: center;
align-items: center;
}
header > a > img {
aspect-ratio: 1/1;
margin: 0;
}
#body {
margin: 0;
display: flex;
justify-items: center;
align-items: center;
}
aside {
width: 40vw;
height: 35vh;
}
img {
width: 7.5em;
}
article {
width: 40vw;
height: 30vh;
text-align: center;
}
p {
height: 25vh;
padding: 0 1.5em;
}
footer {
font-size: 1.5em;
}
footer > p {
height: 1.5em;
}
footer > a > img {
width: 5em;
}
.repository {
width: 42.5vw;
}
#benefits {
height: 15vh;
width: 35vw;
margin: 0;
padding: 0;
display: flex;
justify-items: center;
align-items: flex-end;
position: relative;
}
#benefits > h4 {
height: 5.5vh;
width: 16vw;
font-size: 1.1em;
}
#benefits > h4:first-child {
position: absolute;
bottom: 6vh;
left: 10vw;
}
}