aboutsummaryrefslogtreecommitdiff
path: root/frontend/src/css/Maps.css
diff options
context:
space:
mode:
authorArda Serdar Pektezol <1669855+pektezol@users.noreply.github.com>2025-10-22 01:52:05 +0400
committerGitHub <noreply@github.com>2025-10-22 00:52:05 +0300
commitb1fd0cdeff287e4cf0ec180ff9fee804cb2c8b8d (patch)
treebd3a114b2ad3e3b69d86940b1c787a0ace4c89d2 /frontend/src/css/Maps.css
parentfeat/backend: add newrelic integration (#274) (diff)
downloadlphub-b1fd0cdeff287e4cf0ec180ff9fee804cb2c8b8d.tar.gz
lphub-b1fd0cdeff287e4cf0ec180ff9fee804cb2c8b8d.tar.bz2
lphub-b1fd0cdeff287e4cf0ec180ff9fee804cb2c8b8d.zip
feat/frontend: add general mobile support (#275)
Diffstat (limited to 'frontend/src/css/Maps.css')
-rw-r--r--frontend/src/css/Maps.css650
1 files changed, 464 insertions, 186 deletions
diff --git a/frontend/src/css/Maps.css b/frontend/src/css/Maps.css
index 5f28055..4c90c6f 100644
--- a/frontend/src/css/Maps.css
+++ b/frontend/src/css/Maps.css
@@ -1,16 +1,18 @@
1#background-image{ 1#background-image {
2 z-index: -1; 2 z-index: -1;
3 position: absolute; 3 position: absolute;
4 opacity: 10%; 4 opacity: 10%;
5 height: 50%; 5 height: 50%;
6 width: 100% 6 width: 100%
7} 7}
8#background-image>img{ 8
9#background-image>img {
9 object-fit: cover; 10 object-fit: cover;
10 width: 100%; 11 width: 100%;
11 height: 100%; 12 height: 100%;
12} 13}
13#background-image::before{ 14
15#background-image::before {
14 content: ""; 16 content: "";
15 position: absolute; 17 position: absolute;
16 width: 100%; 18 width: 100%;
@@ -20,12 +22,12 @@
20 22
21/* Section 1: map name*/ 23/* Section 1: map name*/
22 24
23#section1{ 25#section1 {
24 margin: 20px 0 0 0; 26 margin: 20px 0 0 0;
25 cursor: default; 27 cursor: default;
26} 28}
27 29
28.nav-button{ 30.nav-button {
29 height: 40px; 31 height: 40px;
30 background-color: #2b2e46; 32 background-color: #2b2e46;
31 33
@@ -35,49 +37,67 @@
35 border: none; 37 border: none;
36 transition: background-color .1s; 38 transition: background-color .1s;
37} 39}
40
38/* #section1>div>.nav-button:nth-child(1){border-radius: 0px;}:nth-child(1){border-radius: 20px 0 0 20px;} 41/* #section1>div>.nav-button:nth-child(1){border-radius: 0px;}:nth-child(1){border-radius: 20px 0 0 20px;}
39#section1>div>.nav-button:nth-child(2){border-radius: 0 20px 20px 0;margin-left: 2px;} */ 42#section1>div>.nav-button:nth-child(2){border-radius: 0 20px 20px 0;margin-left: 2px;} */
40.nav-button>span{padding: 0 8px 0 8px;} 43.nav-button>span {
41.nav-button:hover{background-color: #202232;cursor: pointer;} 44 padding: 0 8px 0 8px;
45}
46
47.nav-button:hover {
48 background-color: #202232;
49 cursor: pointer;
50}
42 51
43/* Section 2: navbar */ 52/* Section 2: navbar */
44#section2{ 53#section2 {
45 margin: 40px 0 0 0; 54 margin: 40px 0 0 0;
46 55
47 display: grid; gap: 2px; 56 display: grid;
57 gap: 2px;
48 grid-template-columns: 1fr 1fr 1fr; 58 grid-template-columns: 1fr 1fr 1fr;
49} 59}
50 60
51#section2>.nav-button{ 61#section2>.nav-button {
52 height: 50px; 62 height: 50px;
53 font-size: 22px; 63 font-size: 22px;
54 display: flex; 64 display: flex;
55 justify-content: center; 65 justify-content: center;
56 place-items: center; 66 place-items: center;
57} 67}
58#section2>.nav-button>img{scale: 1.2;} 68
59#section2>.nav-button:nth-child(1){border-radius: 30px 0 0 30px;} 69#section2>.nav-button>img {
60#section2>.nav-button:nth-child(3){border-radius: 0 30px 30px 0;} 70 scale: 1.2;
71}
72
73#section2>.nav-button:nth-child(1) {
74 border-radius: 30px 0 0 30px;
75}
76
77#section2>.nav-button:nth-child(3) {
78 border-radius: 0 30px 30px 0;
79}
61 80
62 81
63/* Section 3: category + history */ 82/* Section 3: category + history */
64 83
65#section3{ 84#section3 {
66 margin: 40px 0 0 0; 85 margin: 40px 0 0 0;
67 86
68 display: grid; 87 display: grid;
69 grid-template-columns: 1fr 1fr; 88 grid-template-columns: 1fr 1fr;
70 gap: 20px; 89 gap: 20px;
71} 90}
72 91
73#category{ 92#category {
74 display: grid; 93 display: grid;
75 height: 350px; 94 height: 350px;
76 border-radius: 24px; 95 border-radius: 24px;
77 overflow: hidden; 96 overflow: hidden;
78 97
79} 98}
80#category>p{ 99
100#category>p {
81 margin-bottom: 20px; 101 margin-bottom: 20px;
82 text-align: center; 102 text-align: center;
83 font-size: 50px; 103 font-size: 50px;
@@ -85,9 +105,13 @@
85 color: white; 105 color: white;
86} 106}
87 107
88p>span.portal-count{font-weight: bold;font-size: 100px;vertical-align: -15%;} 108p>span.portal-count {
109 font-weight: bold;
110 font-size: 100px;
111 vertical-align: -15%;
112}
89 113
90#category-image{ 114#category-image {
91 transform: translate(-20%, -15%); 115 transform: translate(-20%, -15%);
92 z-index: -1; 116 z-index: -1;
93 overflow: hidden; 117 overflow: hidden;
@@ -96,75 +120,103 @@ p>span.portal-count{font-weight: bold;font-size: 100px;vertical-align: -15%;}
96 filter: blur(4px) contrast(80%) brightness(80%); 120 filter: blur(4px) contrast(80%) brightness(80%);
97} 121}
98 122
99#category>span{ 123#category>span {
100 margin-top: 70px; 124 margin-top: 70px;
101 background-color: #202232; 125 background-color: #202232;
102 126
103 display: grid; 127 display: grid;
104 gap: 2px; 128 gap: 2px;
105} 129}
106#category>span>button{ 130
131#category>span>button {
107 font-family: inherit; 132 font-family: inherit;
108 font-size: 18px; 133 font-size: 18px;
109 border: none; 134 border: none;
110 height: 40px; 135 height: 40px;
111 color: inherit; 136 color: inherit;
112 137
113 cursor: pointer; 138 cursor: pointer;
114 transition: background-color .1s; 139 transition: background-color .1s;
115} 140}
116 141
117 142
118 143
119#history>div>hr{border: 1px solid #2b2e46;margin: 8px 20px 0px 20px;} 144#history>div>hr {
120#history{ 145 border: 1px solid #2b2e46;
146 margin: 8px 20px 0px 20px;
147}
148
149#history {
121 min-width: 560px; 150 min-width: 560px;
122 background-color: #202232; 151 background-color: #202232;
123 border-radius: 24px; 152 border-radius: 24px;
124 153
125} 154}
126 155
127#records{overflow-y: auto; height: 256px;} 156#records {
128#records::-webkit-scrollbar{display: none;} 157 overflow-y: auto;
158 height: 256px;
159}
160
161#records::-webkit-scrollbar {
162 display: none;
163}
129 164
130.record-top, .record{ 165.record-top,
166.record {
131 font-size: 18px; 167 font-size: 18px;
132 display: grid; 168 display: grid;
133 text-align: center; 169 text-align: center;
134 grid-template-columns: 1fr 1fr 1fr; 170 grid-template-columns: 1fr 1fr 1fr;
135} 171}
136.record-top{font-weight: bold;margin: 20px 20px 0 20px;cursor: default;} 172
137.record{ 173.record-top {
174 font-weight: bold;
175 margin: 20px 20px 0 20px;
176 cursor: default;
177}
178
179.record {
138 margin: 10px 20px 10px 20px; 180 margin: 10px 20px 10px 20px;
139 height: 44px; width: calc(100% - 40px); 181 height: 44px;
140 182 width: calc(100% - 40px);
183
141 color: inherit; 184 color: inherit;
142 border-radius: 40px; 185 border-radius: 40px;
143 place-items: center; 186 place-items: center;
144 187
145 border: 0; 188 border: 0;
146 cursor: pointer; 189 cursor: pointer;
147 transition: background-color .1s; 190 transition: background-color .1s;
148} 191}
149#history>span{ 192
193#history>span {
150 border-top: #202232 solid 2px; 194 border-top: #202232 solid 2px;
151 display: grid; 195 display: grid;
152 grid-template-columns: 1fr 1fr; 196 grid-template-columns: 1fr 1fr;
153} 197}
154#history>span>button{ 198
155 width: 100%; height: 40px; 199#history>span>button {
200 width: 100%;
201 height: 40px;
156 font-family: inherit; 202 font-family: inherit;
157 font-size: 18px; 203 font-size: 18px;
158 border: none; 204 border: none;
159 color: inherit; 205 color: inherit;
160 206
161 cursor: pointer; 207 cursor: pointer;
162 transition: background-color .1s; 208 transition: background-color .1s;
163} 209}
164#history>span>button:nth-child(1){border-radius: 0 0 0 24px;}
165#history>span>button:nth-child(2){border-radius: 0 0 24px 0;}
166 210
167#graph{ 211#history>span>button:nth-child(1) {
212 border-radius: 0 0 0 24px;
213}
214
215#history>span>button:nth-child(2) {
216 border-radius: 0 0 24px 0;
217}
218
219#graph {
168 display: grid; 220 display: grid;
169 grid-template-columns: 20px 1fr; 221 grid-template-columns: 20px 1fr;
170 grid-template-rows: 1fr 20px; 222 grid-template-rows: 1fr 20px;
@@ -173,45 +225,53 @@ p>span.portal-count{font-weight: bold;font-size: 100px;vertical-align: -15%;}
173 margin: 10px 10px 5px 10px; 225 margin: 10px 10px 5px 10px;
174 overflow: hidden; 226 overflow: hidden;
175} 227}
176#graph>div:nth-child(1){ /* numbers */ 228
177 width: 20px; 229#graph>div:nth-child(1) {
230 /* numbers */
231 width: 20px;
178 display: grid; 232 display: grid;
179 place-items: center; 233 place-items: center;
180 /* background-color: blue; */ 234 /* background-color: blue; */
181} 235}
182#graph>div:nth-child(1)>span{ 236
237#graph>div:nth-child(1)>span {
183 font-size: 12px; 238 font-size: 12px;
184 line-height: 0; 239 line-height: 0;
185} 240}
186 241
187#graph>div:nth-child(2){ /* big graph */ 242#graph>div:nth-child(2) {
243 /* big graph */
188 position: relative; 244 position: relative;
189 display: grid; 245 display: grid;
190} 246}
191#graph>div:nth-child(2)>tr{ 247
248#graph>div:nth-child(2)>tr {
192 display: flex; 249 display: flex;
193 align-items: center; 250 align-items: center;
194 grid-template-columns: repeat(auto-fit, minmax(1px, 1fr)); 251 grid-template-columns: repeat(auto-fit, minmax(1px, 1fr));
195} 252}
196#graph>div:nth-child(2)>tr>td.graph_hor{ 253
197 width: 100%; 254#graph>div:nth-child(2)>tr>td.graph_hor {
255 width: 100%;
198 height: 0; 256 height: 0;
199 padding: 0; 257 padding: 0;
200 258
201 outline: 1px solid red; 259 outline: 1px solid red;
202} 260}
203#graph>div:nth-child(2)>tr>td.graph_ver{ 261
204 width: 0; 262#graph>div:nth-child(2)>tr>td.graph_ver {
263 width: 0;
205 height: 100%; 264 height: 100%;
206 padding: 0; 265 padding: 0;
207 266
208 outline: 1px solid blue; 267 outline: 1px solid blue;
209 transform: translateY(50%); 268 transform: translateY(50%);
210 z-index: 0; 269 z-index: 0;
211 overflow: hidden; 270 overflow: hidden;
212} 271}
213 272
214#graph>div:nth-child(3){ /* dates */ 273#graph>div:nth-child(3) {
274 /* dates */
215 padding-right: 20px; 275 padding-right: 20px;
216 z-index: 1; 276 z-index: 1;
217 height: 16px; 277 height: 16px;
@@ -223,7 +283,7 @@ p>span.portal-count{font-weight: bold;font-size: 100px;vertical-align: -15%;}
223 grid-template-columns: repeat(auto-fit, minmax(1px, 1fr)); 283 grid-template-columns: repeat(auto-fit, minmax(1px, 1fr));
224} 284}
225 285
226.graph-button{ 286.graph-button {
227 position: absolute; 287 position: absolute;
228 padding: 0; 288 padding: 0;
229 border: 5px solid white; 289 border: 5px solid white;
@@ -232,12 +292,15 @@ p>span.portal-count{font-weight: bold;font-size: 100px;vertical-align: -15%;}
232 transform: translateX(-50%); 292 transform: translateX(-50%);
233} 293}
234 294
235#history>div>h5{text-align: center;height: 197px;} 295#history>div>h5 {
296 text-align: center;
297 height: 197px;
298}
236 299
237 300
238/* Section 4: Difficulty + count */ 301/* Section 4: Difficulty + count */
239 302
240#section4{ 303#section4 {
241 display: grid; 304 display: grid;
242 grid-template-columns: 1fr 1fr; 305 grid-template-columns: 1fr 1fr;
243 gap: 20px; 306 gap: 20px;
@@ -245,9 +308,9 @@ p>span.portal-count{font-weight: bold;font-size: 100px;vertical-align: -15%;}
245} 308}
246 309
247#difficulty, 310#difficulty,
248#count { 311#count {
249 background-color: #202232; 312 background-color: #202232;
250 min-width: 250px; 313 min-width: 250px;
251 text-align: center; 314 text-align: center;
252 cursor: default; 315 cursor: default;
253 316
@@ -255,69 +318,86 @@ p>span.portal-count{font-weight: bold;font-size: 100px;vertical-align: -15%;}
255 display: grid; 318 display: grid;
256 grid-template-rows: 20px 40px 40px; 319 grid-template-rows: 20px 40px 40px;
257} 320}
321
258#difficulty>span:nth-child(1), 322#difficulty>span:nth-child(1),
259#count>span:nth-child(1){ 323#count>span:nth-child(1) {
260 padding-top:10px; 324 padding-top: 10px;
261 font-size: 18px; 325 font-size: 18px;
262 color:#cdcfdf 326 color: #cdcfdf
263} 327}
264#difficulty>span:nth-child(2){ 328
329#difficulty>span:nth-child(2) {
265 font-size: 40px; 330 font-size: 40px;
266} 331}
267#difficulty>div{ 332
333#difficulty>div {
268 display: grid; 334 display: grid;
269 grid-template-columns: 1fr 1fr 1fr 1fr 1fr; 335 grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
270 padding: 0 calc(50% - 125px) 0 calc(50% - 125px); 336 padding: 0 calc(50% - 125px) 0 calc(50% - 125px);
271 place-items: center; 337 place-items: center;
272} 338}
273 339
274.difficulty-rating{ 340.difficulty-rating {
275 border-radius: 24px; 341 border-radius: 24px;
276 width: 40px; height: 3px; 342 width: 40px;
343 height: 3px;
277 background-color: #2b2e46; 344 background-color: #2b2e46;
278} 345}
279 346
280#count>div{ 347#count>div {
281 padding-top:10px; 348 padding-top: 10px;
282 font-size: 50px; 349 font-size: 50px;
283 color:white 350 color: white
284} 351}
285 352
286/* Section 5: route desc + video */ 353/* Section 5: route desc + video */
287#section5{ 354#section5 {
288 margin: 40px 0 20px 0; 355 margin: 40px 0 20px 0;
289 width: 100%; 356 width: 100%;
290} 357}
291 358
292#description{ 359#description {
293 width: 100%; height: auto; 360 width: 100%;
361 height: auto;
294 min-height: 342px; 362 min-height: 342px;
295} 363}
296 364
297 365
298 366
299 367
300#description>iframe{ 368#description>iframe {
301 margin: 20px; 369 margin: 20px;
302 float:right; 370 float: right;
303 border: 0; 371 border: 0;
304 border-radius: 24px; 372 border-radius: 24px;
305 width: 608px; height: 342px; 373 width: 608px;
374 height: 342px;
375}
376
377#description>h3 {
378 margin: 0 0 10px 0;
379 color: white;
306} 380}
307 381
308#description>h3{margin: 0 0 10px 0; color: white;} 382#description-text {
309#description-text{
310 display: block; 383 display: block;
311 font-size: 21px; 384 font-size: 21px;
312 word-wrap: break-word; 385 word-wrap: break-word;
313 text-align: justify; 386 text-align: justify;
314} 387}
315#description-text>b{font-size: inherit;} 388
316#description-text>a{font-size: inherit;color: #3c91e6;} 389#description-text>b {
390 font-size: inherit;
391}
392
393#description-text>a {
394 font-size: inherit;
395 color: #3c91e6;
396}
317 397
318 398
319/* Section 6: leaderboards */ 399/* Section 6: leaderboards */
320#section6{ 400#section6 {
321 margin: 40px 0 20px 0; 401 margin: 40px 0 20px 0;
322 min-height: 600px; 402 min-height: 600px;
323 background-color: #202232; 403 background-color: #202232;
@@ -328,39 +408,46 @@ p>span.portal-count{font-weight: bold;font-size: 100px;vertical-align: -15%;}
328} 408}
329 409
330 410
331#section6>hr{border: 1px solid #2b2e46;margin: 8px 20px 0px 20px;} 411#section6>hr {
332#leaderboard-top{ 412 border: 1px solid #2b2e46;
413 margin: 8px 20px 0px 20px;
414}
415
416#leaderboard-top {
333 display: grid; 417 display: grid;
334 font-size: 20px; 418 font-size: 20px;
335 height: 34px; 419 height: 34px;
336 padding-left: 60px; 420 padding-left: 60px;
337 margin: 0 20px 0 20px; 421 margin: 0 20px 0 20px;
338} 422}
339#leaderboard-top>span{ 423
340 424#leaderboard-top>span {
425
341 display: flex; 426 display: flex;
342 place-items: flex-end; 427 place-items: flex-end;
343} 428}
344 429
345#runner{ 430#runner {
346 display: grid; 431 display: grid;
347 grid-template-columns: 50% 50%; 432 grid-template-columns: 50% 50%;
348 align-items: end; 433 align-items: end;
349} 434}
350 435
351#page-number{ 436#page-number {
352 display: flex; 437 display: flex;
353 width: auto; 438 width: auto;
354 flex-direction: row-reverse; 439 flex-direction: row-reverse;
355} 440}
356#page-number>div{ 441
357width: 100px; 442#page-number>div {
358place-items: center; 443 width: 100px;
359display: grid; 444 place-items: center;
360grid-template-columns: 1fr 1fr 1fr; 445 display: grid;
361text-align: center; 446 grid-template-columns: 1fr 1fr 1fr;
447 text-align: center;
362} 448}
363#page-number>div>button{ 449
450#page-number>div>button {
364 width: 30px; 451 width: 30px;
365 height: 30px; 452 height: 30px;
366 background-color: #202232; 453 background-color: #202232;
@@ -369,9 +456,10 @@ text-align: center;
369 cursor: pointer; 456 cursor: pointer;
370} 457}
371 458
372.leaderboard-record{ 459.leaderboard-record {
373 margin: 10px 20px 0px 20px; 460 margin: 10px 20px 0px 20px;
374 height: 44px; width: calc(100% - 40px); 461 height: 44px;
462 width: calc(100% - 40px);
375 width: auto; 463 width: auto;
376 464
377 color: inherit; 465 color: inherit;
@@ -380,7 +468,7 @@ text-align: center;
380 padding: 0 0 0 60px; 468 padding: 0 0 0 60px;
381 font-size: 20px; 469 font-size: 20px;
382 font-family: inherit; 470 font-family: inherit;
383 471
384 grid-template-columns: 3% 4.5% 40% 4% 3.5% 15% 15% 15%; 472 grid-template-columns: 3% 4.5% 40% 4% 3.5% 15% 15% 15%;
385 display: grid; 473 display: grid;
386 474
@@ -389,33 +477,44 @@ text-align: center;
389 background-color: #2b2e46; 477 background-color: #2b2e46;
390} 478}
391 479
392.leaderboard-record>span:nth-child(1){display: grid;} 480.leaderboard-record>span:nth-child(1) {
393.leaderboard-record>span:nth-child(4){display: grid;} 481 display: grid;
394.leaderboard-record>span:last-child{flex-direction: row-reverse;} 482}
395.leaderboard-record>span{ 483
484.leaderboard-record>span:nth-child(4) {
485 display: grid;
486}
487
488.leaderboard-record>span:last-child {
489 flex-direction: row-reverse;
490}
491
492.leaderboard-record>span {
396 display: flex; 493 display: flex;
397 place-items: center; 494 place-items: center;
398 height: 44px; 495 height: 44px;
399} 496}
400 497
401.leaderboard-record>div>a>span>img{ 498.leaderboard-record>div>a>span>img {
402 height: 36px; 499 height: 36px;
403 border-radius: 50px; 500 border-radius: 50px;
404 padding: 0; 501 padding: 0;
405 scale: .95; 502 scale: .95;
406} 503}
407.leaderboard-record>div{ 504
505.leaderboard-record>div {
408 display: grid; 506 display: grid;
409 grid-template-columns: 50% 50%; 507 grid-template-columns: 50% 50%;
410 place-items: left; 508 place-items: left;
411} 509}
412.leaderboard-record>div>a>span{ 510
511.leaderboard-record>div>a>span {
413 display: flex; 512 display: flex;
414 place-items: center; 513 place-items: center;
415 height: 44px; 514 height: 44px;
416} 515}
417 516
418.leaderboard-record>span>button{ 517.leaderboard-record>span>button {
419 background-color: #0000; 518 background-color: #0000;
420 border: 0; 519 border: 0;
421 cursor: pointer; 520 cursor: pointer;
@@ -425,9 +524,9 @@ text-align: center;
425.hover-popup { 524.hover-popup {
426 position: relative; 525 position: relative;
427 display: inline-block; 526 display: inline-block;
428 } 527}
429 528
430 .hover-popup::after { 529.hover-popup::after {
431 content: attr(popup-text); 530 content: attr(popup-text);
432 position: absolute; 531 position: absolute;
433 /* top: 0%; */ 532 /* top: 0%; */
@@ -441,36 +540,42 @@ text-align: center;
441 opacity: 0; 540 opacity: 0;
442 color: #cdcfdf; 541 color: #cdcfdf;
443 /* transition: visibility 0s, opacity 0.3s ease; */ 542 /* transition: visibility 0s, opacity 0.3s ease; */
444 } 543}
445 544
446 .hover-popup:hover { 545.hover-popup:hover {
447 color: transparent; 546 color: transparent;
448 } 547}
449 548
450 .hover-popup:hover::after { 549.hover-popup:hover::after {
451 visibility: visible; 550 visibility: visible;
452 opacity: 1; 551 opacity: 1;
453 } 552}
454 553
455.leaderboard-record:last-child{margin: 10px 20px 10px 20px;} 554.leaderboard-record:last-child {
555 margin: 10px 20px 10px 20px;
556}
456 557
457 558
458#section7{ 559#section7 {
459 margin: 40px 0 20px 0; 560 margin: 40px 0 20px 0;
460 background-color: #202232; 561 background-color: #202232;
461 border-radius: 24px; 562 border-radius: 24px;
462 padding: 10px; 563 padding: 10px;
463} 564}
464 565
465#discussion-search{ 566#discussion-search {
466 height: 46px; 567 height: 46px;
467 width: 100%; 568 width: 100%;
468 display: grid; 569 display: grid;
469 grid-template-columns: 1fr 100px; 570 grid-template-columns: 1fr 100px;
470 margin: 0 0 20px 0; 571 margin: 0 0 20px 0;
471} 572}
472#discussion-search>input::placeholder{color: #aaa;} 573
473#discussion-search>input{ 574#discussion-search>input::placeholder {
575 color: #aaa;
576}
577
578#discussion-search>input {
474 background-color: #2b2e46; 579 background-color: #2b2e46;
475 font-size: 20px; 580 font-size: 20px;
476 padding-left: 10px; 581 padding-left: 10px;
@@ -479,15 +584,19 @@ text-align: center;
479 border-radius: 16px 0 0 16px; 584 border-radius: 16px 0 0 16px;
480 font-family: inherit; 585 font-family: inherit;
481} 586}
482#discussion-search>div>button:hover{filter: brightness(75%);} 587
483#discussion-search>div>button{ 588#discussion-search>div>button:hover {
589 filter: brightness(75%);
590}
591
592#discussion-search>div>button {
484 padding: 7px 16px; 593 padding: 7px 16px;
485 margin: 8px 0; 594 margin: 8px 0;
486 border: 0; 595 border: 0;
487 font-size: 16px; 596 font-size: 16px;
488 border-radius: 24px; 597 border-radius: 24px;
489 display: block; 598 display: block;
490 background-color:#3c91e6; 599 background-color: #3c91e6;
491 font-family: inherit; 600 font-family: inherit;
492 font-weight: bold; 601 font-weight: bold;
493 cursor: pointer; 602 cursor: pointer;
@@ -495,30 +604,46 @@ text-align: center;
495 604
496 transition: filter .2s; 605 transition: filter .2s;
497} 606}
498#discussion-search>div{ 607
608#discussion-search>div {
499 background-color: #2b2e46; 609 background-color: #2b2e46;
500 border-radius: 0 16px 16px 0; 610 border-radius: 0 16px 16px 0;
501} 611}
502#discussion-post>button:nth-child(1)>span>b{font-size: 18px;color:#cdcfdf;font-weight: lighter;} 612
503#discussion-post>button:nth-child(1){ 613#discussion-post>button:nth-child(1)>span>b {
614 font-size: 18px;
615 color: #cdcfdf;
616 font-weight: lighter;
617}
618
619#discussion-post>button:nth-child(1) {
504 background-color: #2b2e46; 620 background-color: #2b2e46;
505 display: grid; 621 display: grid;
506 grid-template-columns: minmax(0, 1fr) 150px; 622 grid-template-columns: minmax(0, 1fr) 150px;
507 623
508 border-radius: 16px; 624 border-radius: 16px;
509 padding: 16px 12px; 625 padding: 16px 12px;
510 margin: 8px 0 0 0; 626 margin: 8px 0 0 0;
511 border: 0; 627 border: 0;
512 width: 100%; height: 100px; 628 width: 100%;
629 height: 100px;
513 text-align: start; 630 text-align: start;
514 white-space: nowrap; 631 white-space: nowrap;
515 color: #cdcfdf; 632 color: #cdcfdf;
516 cursor: pointer; 633 cursor: pointer;
517 overflow: hidden; 634 overflow: hidden;
518} 635}
519#discussion-post>button:nth-child(1)>span:nth-child(1){font-size: 32px;} 636
520#discussion-post>button:nth-child(1)>span:nth-child(3){color: #aaa; font-size: 18px;} 637#discussion-post>button:nth-child(1)>span:nth-child(1) {
521#discussion-post>button:nth-child(1)>span:nth-child(4){ 638 font-size: 32px;
639}
640
641#discussion-post>button:nth-child(1)>span:nth-child(3) {
642 color: #aaa;
643 font-size: 18px;
644}
645
646#discussion-post>button:nth-child(1)>span:nth-child(4) {
522 opacity: .7; 647 opacity: .7;
523 height: 40px; 648 height: 40px;
524 display: flex; 649 display: flex;
@@ -526,15 +651,21 @@ text-align: center;
526 justify-content: end; 651 justify-content: end;
527} 652}
528 653
529#discussion-post{height: 100px;} 654#discussion-post {
530#discussion-post>button>button:hover{filter: brightness(75%); } 655 height: 100px;
531#discussion-post>button>button{ 656}
657
658#discussion-post>button>button:hover {
659 filter: brightness(75%);
660}
661
662#discussion-post>button>button {
532 padding: 7px 16px; 663 padding: 7px 16px;
533 664
534 border: 0; 665 border: 0;
535 font-size: 16px; 666 font-size: 16px;
536 border-radius: 24px; 667 border-radius: 24px;
537 background-color:#e52d04; 668 background-color: #e52d04;
538 font-family: BarlowSemiCondensed-Regular; 669 font-family: BarlowSemiCondensed-Regular;
539 font-weight: bold; 670 font-weight: bold;
540 cursor: pointer; 671 cursor: pointer;
@@ -544,20 +675,27 @@ text-align: center;
544} 675}
545 676
546 677
547#discussion-create>div{ 678#discussion-create>div {
548 display: grid; 679 display: grid;
549 text-align: start; 680 text-align: start;
550} 681}
551#discussion-create{ 682
683#discussion-create {
552 display: grid; 684 display: grid;
553 grid-template-columns: 1fr 40px; 685 grid-template-columns: 1fr 40px;
554 height: auto; 686 height: auto;
555 word-wrap: break-word; 687 word-wrap: break-word;
556} 688}
557 689
558#discussion-create>span{padding-left: 20px;} 690#discussion-create>span {
559#discussion-create>div>input::placeholder{color: #aaa;} 691 padding-left: 20px;
560#discussion-create>div>input{ 692}
693
694#discussion-create>div>input::placeholder {
695 color: #aaa;
696}
697
698#discussion-create>div>input {
561 background-color: #2b2e46; 699 background-color: #2b2e46;
562 font-size: 20px; 700 font-size: 20px;
563 padding-left: 10px; 701 padding-left: 10px;
@@ -567,17 +705,23 @@ text-align: center;
567 border: 0; 705 border: 0;
568 font-family: inherit; 706 font-family: inherit;
569} 707}
570#discussion-create>div>input:nth-child(2){font-size: 16px;}
571 708
572#discussion-create-button:hover{filter: brightness(75%);} 709#discussion-create>div>input:nth-child(2) {
573#discussion-create-button{ 710 font-size: 16px;
711}
712
713#discussion-create-button:hover {
714 filter: brightness(75%);
715}
716
717#discussion-create-button {
574 padding: 7px 16px; 718 padding: 7px 16px;
575 margin: 8px 0 0 0; 719 margin: 8px 0 0 0;
576 border: 0; 720 border: 0;
577 font-size: 16px; 721 font-size: 16px;
578 border-radius: 24px; 722 border-radius: 24px;
579 723
580 background-color:#3c91e6; 724 background-color: #3c91e6;
581 font-family: inherit; 725 font-family: inherit;
582 font-weight: bold; 726 font-weight: bold;
583 cursor: pointer; 727 cursor: pointer;
@@ -590,7 +734,7 @@ text-align: center;
590} 734}
591 735
592 736
593#discussion-thread>div:nth-child(1){ 737#discussion-thread>div:nth-child(1) {
594 display: grid; 738 display: grid;
595 grid-template-columns: 1fr 40px; 739 grid-template-columns: 1fr 40px;
596 height: auto; 740 height: auto;
@@ -599,10 +743,10 @@ text-align: center;
599} 743}
600 744
601#discussion-create>button:nth-child(2), 745#discussion-create>button:nth-child(2),
602#discussion-thread>div>button{ 746#discussion-thread>div>button {
603 height: 40px; 747 height: 40px;
604 float:inline-end; 748 float: inline-end;
605 color:#cdcfdf; 749 color: #cdcfdf;
606 background-color: #0000; 750 background-color: #0000;
607 border: 0; 751 border: 0;
608 font-size: 38px; 752 font-size: 38px;
@@ -610,32 +754,41 @@ text-align: center;
610} 754}
611 755
612 756
613#discussion-thread>div:nth-child(2)>a>img{ 757#discussion-thread>div:nth-child(2)>a>img {
614 width: 60px; height: 60px; 758 width: 60px;
759 height: 60px;
615 border-radius: 100px; 760 border-radius: 100px;
616 margin: 20px 0 0 0; 761 margin: 20px 0 0 0;
617} 762}
618#discussion-thread>div:nth-child(2)>div{ 763
764#discussion-thread>div:nth-child(2)>div {
619 height: max-content; 765 height: max-content;
620 padding: 20px 0 0 10px; 766 padding: 20px 0 0 10px;
621 display: inline-grid; 767 display: inline-grid;
622 grid-template-columns: min-content 1fr ; 768 grid-template-columns: min-content 1fr;
623 overflow: hidden; 769 overflow: hidden;
624 770
625} 771}
626#discussion-thread>div:nth-child(2)>div>span:nth-child(1){font-weight: bold;height: 30px;} 772
627#discussion-thread>div:nth-child(2)>div>span:nth-child(2){ 773#discussion-thread>div:nth-child(2)>div>span:nth-child(1) {
774 font-weight: bold;
775 height: 30px;
776}
777
778#discussion-thread>div:nth-child(2)>div>span:nth-child(2) {
628 opacity: 0.6; 779 opacity: 0.6;
629 height: 30px; 780 height: 30px;
630 font-size: 80%; 781 font-size: 80%;
631 padding-left: 10px; 782 padding-left: 10px;
632} 783}
633#discussion-thread>div:nth-child(2)>div>span:nth-child(3){ 784
785#discussion-thread>div:nth-child(2)>div>span:nth-child(3) {
634 grid-column: 1 / span 2; 786 grid-column: 1 / span 2;
635 height: max-content; 787 height: max-content;
636 word-wrap: break-word; 788 word-wrap: break-word;
637} 789}
638#discussion-thread>div:nth-child(2){ 790
791#discussion-thread>div:nth-child(2) {
639 display: grid; 792 display: grid;
640 grid-template-columns: 60px 1fr; 793 grid-template-columns: 60px 1fr;
641 font-size: 20px; 794 font-size: 20px;
@@ -644,15 +797,19 @@ text-align: center;
644} 797}
645 798
646 799
647#discussion-send{ 800#discussion-send {
648 height: 48px; 801 height: 48px;
649 width: 100%; 802 width: 100%;
650 display: grid; 803 display: grid;
651 grid-template-columns: 1fr 80px; 804 grid-template-columns: 1fr 80px;
652 margin: 10px 0 0 0; 805 margin: 10px 0 0 0;
653} 806}
654#discussion-send>input::placeholder{color: #aaa;} 807
655#discussion-send>input{ 808#discussion-send>input::placeholder {
809 color: #aaa;
810}
811
812#discussion-send>input {
656 background-color: #2b2e46; 813 background-color: #2b2e46;
657 padding-left: 10px; 814 padding-left: 10px;
658 color: white; 815 color: white;
@@ -661,20 +818,25 @@ text-align: center;
661 border-radius: 16px 0 0 16px; 818 border-radius: 16px 0 0 16px;
662 font-family: inherit; 819 font-family: inherit;
663} 820}
664#discussion-send>div{ 821
822#discussion-send>div {
665 background-color: #2b2e46; 823 background-color: #2b2e46;
666 border-radius: 0 16px 16px 0; 824 border-radius: 0 16px 16px 0;
667 825
668} 826}
669#discussion-send>div>button:hover{ filter: brightness(75%);} 827
670#discussion-send>div>button{ 828#discussion-send>div>button:hover {
829 filter: brightness(75%);
830}
831
832#discussion-send>div>button {
671 padding: 7px 20px; 833 padding: 7px 20px;
672 margin: 8px 0; 834 margin: 8px 0;
673 font-size: 16px; 835 font-size: 16px;
674 border: 0; 836 border: 0;
675 border-radius: 24px; 837 border-radius: 24px;
676 display: block; 838 display: block;
677 background-color:#3c91e6; 839 background-color: #3c91e6;
678 font-family: inherit; 840 font-family: inherit;
679 font-weight: bold; 841 font-weight: bold;
680 cursor: pointer; 842 cursor: pointer;
@@ -685,42 +847,158 @@ text-align: center;
685 847
686 848
687 849
688.triangle{ 850.triangle {
689 display: inline-block; 851 display: inline-block;
690 width: 8px; height: 0; 852 width: 8px;
691 border-top: 7px solid transparent; 853 height: 0;
692 border-right: 8px solid #cdcfdf; 854 border-top: 7px solid transparent;
693 border-bottom: 7px solid transparent; 855 border-right: 8px solid #cdcfdf;
856 border-bottom: 7px solid transparent;
694} 857}
695 858
696 /* such responsive, very mobile */
697@media screen and (max-width: 1480px) { 859@media screen and (max-width: 1480px) {
698 #section3.summary1{grid-template-columns: auto;} 860 #section3.summary1 {
699 #category{min-width: 608px;} 861 grid-template-columns: auto;
700 #history{min-width: 608px;} 862 }
701 #description{min-width: 608px;} 863
702 #section4.summary1{min-width: 588px;} 864 #category {
703 865 min-width: 608px;
704 #description>iframe{ 866 }
867
868 #history {
869 min-width: 608px;
870 }
871
872 #description {
873 min-width: 608px;
874 }
875
876 #section4.summary1 {
877 min-width: 588px;
878 }
879
880 #description>iframe {
705 padding: 0 0 0 calc(50% - 304px); 881 padding: 0 0 0 calc(50% - 304px);
706 float:none; 882 float: none;
707 justify-content: center; 883 justify-content: center;
708 align-items: center; 884 align-items: center;
709 } 885 }
710 886
711 #section1.summary1{ 887 #section1.summary1 {
712 grid-template-columns: auto; 888 grid-template-columns: auto;
713 place-items: center; 889 place-items: center;
714 text-align: center; 890 text-align: center;
715 891
716 } 892 }
717 893
718 #section2.summary1{ 894 #section2.summary1 {
719 grid-template-columns: auto; 895 grid-template-columns: auto;
720 width: 450px; 896 width: 450px;
721 margin: 40px auto 0 auto; 897 margin: 40px auto 0 auto;
722 } 898 }
723 #section2.summary1>.nav-button:nth-child(1){border-radius: 30px 30px 0 0;} 899
724 #section2.summary1>.nav-button:nth-child(2){border-radius: 0;} 900 #section2.summary1>.nav-button:nth-child(1) {
725 #section2.summary1>.nav-button:nth-child(3){border-radius: 0 0 30px 30px;} 901 border-radius: 30px 30px 0 0;
902 }
903
904 #section2.summary1>.nav-button:nth-child(2) {
905 border-radius: 0;
906 }
907
908 #section2.summary1>.nav-button:nth-child(3) {
909 border-radius: 0 0 30px 30px;
910 }
911}
912
913@media screen and (max-width: 768px) {
914 #section1 {
915 margin: 20px 0 0 0;
916 }
917
918 #section2 {
919 grid-template-columns: 1fr;
920 gap: 0;
921 }
922
923 #section2>.nav-button {
924 border-radius: 0;
925 font-size: 18px;
926 height: 45px;
927 }
928
929 #section2>.nav-button:nth-child(1) {
930 border-radius: 20px 20px 0 0;
931 }
932
933 #section2>.nav-button:nth-child(3) {
934 border-radius: 0 0 20px 20px;
935 }
936
937 #section3 {
938 grid-template-columns: 1fr;
939 gap: 20px;
940 }
941
942 #history {
943 min-width: unset;
944 width: 100%;
945 }
946
947 #category {
948 min-width: unset;
949 width: 100%;
950 }
951
952 #section4 {
953 grid-template-columns: 1fr;
954 }
955
956 #description>iframe {
957 width: 100%;
958 height: 250px;
959 margin: 20px 0;
960 padding: 0;
961 }
962
963 #section5 {
964 margin: 20px 0;
965 }
966
967 #description {
968 min-height: unset;
969 width: 100%;
970 }
971
972 #leaderboard-top {
973 font-size: 14px;
974 padding-left: 30px;
975 grid-template-columns: 20% 20% 8% 15% 8% 10% 10% 9%;
976 }
977
978 .leaderboard-record {
979 font-size: 14px;
980 padding-left: 30px;
981 grid-template-columns: 20% 20% 8% 15% 8% 10% 10% 9%;
982 }
983
984 .leaderboard-record>div>a>span>img {
985 height: 28px;
986 }
987
988 #page-number>div {
989 width: 80px;
990 }
991
992 #discussion-search {
993 grid-template-columns: 1fr 80px;
994 }
995
996 #discussion-search>div>button {
997 padding: 7px 10px;
998 font-size: 14px;
999 }
1000
1001 .nav-button {
1002 font-size: 16px;
1003 }
726} \ No newline at end of file 1004} \ No newline at end of file