aboutsummaryrefslogtreecommitdiff
path: root/frontend/src/components/pages/summary.css
diff options
context:
space:
mode:
authorNidboj132 <28981031+Nidboj132@users.noreply.github.com>2023-09-22 15:58:48 +0200
committerGitHub <noreply@github.com>2023-09-22 15:58:48 +0200
commit57856b4222b790b3bfaff6b4ed129a99818ab88b (patch)
tree5ba99942430dc59803fbc8086d5adf7594da0460 /frontend/src/components/pages/summary.css
parentfix: page number error on empty records (#62) (diff)
downloadlphub-57856b4222b790b3bfaff6b4ed129a99818ab88b.tar.gz
lphub-57856b4222b790b3bfaff6b4ed129a99818ab88b.tar.bz2
lphub-57856b4222b790b3bfaff6b4ed129a99818ab88b.zip
added leaderboard (#53)
Former-commit-id: cca018d7af153dbeab6689f48293ee58a8c871fe
Diffstat (limited to 'frontend/src/components/pages/summary.css')
-rw-r--r--frontend/src/components/pages/summary.css138
1 files changed, 129 insertions, 9 deletions
diff --git a/frontend/src/components/pages/summary.css b/frontend/src/components/pages/summary.css
index a0f2f5d..6ac56eb 100644
--- a/frontend/src/components/pages/summary.css
+++ b/frontend/src/components/pages/summary.css
@@ -65,7 +65,7 @@
65#section3{ 65#section3{
66 margin: 40px 0 0 0; 66 margin: 40px 0 0 0;
67 67
68 display: grid; 68 display: none;
69 grid-template-columns: 1fr 1fr; 69 grid-template-columns: 1fr 1fr;
70 gap: 20px; 70 gap: 20px;
71} 71}
@@ -73,7 +73,7 @@
73#category{ 73#category{
74 display: grid; 74 display: grid;
75 height: 350px; 75 height: 350px;
76 border-radius: 30px; 76 border-radius: 24px;
77 overflow: hidden; 77 overflow: hidden;
78 78
79} 79}
@@ -121,7 +121,7 @@ p>span.portal-count{font-weight: bold;font-size: 100px;vertical-align: -15%;}
121#history{ 121#history{
122 min-width: 560px; 122 min-width: 560px;
123 background-color: #202232; 123 background-color: #202232;
124 border-radius: 30px; 124 border-radius: 24px;
125 125
126} 126}
127 127
@@ -162,8 +162,8 @@ p>span.portal-count{font-weight: bold;font-size: 100px;vertical-align: -15%;}
162 cursor: pointer; 162 cursor: pointer;
163 transition: background-color .1s; 163 transition: background-color .1s;
164} 164}
165#history>span>button:nth-child(1){border-radius: 0 0 0 30px;} 165#history>span>button:nth-child(1){border-radius: 0 0 0 24px;}
166#history>span>button:nth-child(2){border-radius: 0 0 30px 0;} 166#history>span>button:nth-child(2){border-radius: 0 0 24px 0;}
167 167
168#graph{ 168#graph{
169 display: grid; 169 display: grid;
@@ -239,7 +239,7 @@ p>span.portal-count{font-weight: bold;font-size: 100px;vertical-align: -15%;}
239/* Section 4: Difficulty + count */ 239/* Section 4: Difficulty + count */
240 240
241#section4{ 241#section4{
242 display: grid; 242 display: none;
243 grid-template-columns: 1fr 1fr; 243 grid-template-columns: 1fr 1fr;
244 gap: 20px; 244 gap: 20px;
245 margin: 40px 0 0 0; 245 margin: 40px 0 0 0;
@@ -252,7 +252,7 @@ p>span.portal-count{font-weight: bold;font-size: 100px;vertical-align: -15%;}
252 text-align: center; 252 text-align: center;
253 cursor: default; 253 cursor: default;
254 254
255 border-radius: 20px; 255 border-radius: 24px;
256 display: grid; 256 display: grid;
257 grid-template-rows: 20px 40px 40px; 257 grid-template-rows: 20px 40px 40px;
258} 258}
@@ -273,7 +273,7 @@ p>span.portal-count{font-weight: bold;font-size: 100px;vertical-align: -15%;}
273} 273}
274 274
275.difficulty-rating{ 275.difficulty-rating{
276 border-radius: 20px; 276 border-radius: 24px;
277 width: 40px; height: 3px; 277 width: 40px; height: 3px;
278 background-color: #2b2e46; 278 background-color: #2b2e46;
279} 279}
@@ -302,7 +302,7 @@ p>span.portal-count{font-weight: bold;font-size: 100px;vertical-align: -15%;}
302 margin: 4px; 302 margin: 4px;
303 float:right; 303 float:right;
304 border: 0; 304 border: 0;
305 border-radius: 20px; 305 border-radius: 24px;
306 width: 608px; height: 342px; 306 width: 608px; height: 342px;
307} 307}
308 308
@@ -315,6 +315,126 @@ p>span.portal-count{font-weight: bold;font-size: 100px;vertical-align: -15%;}
315#description-text>b{font-size: inherit;} 315#description-text>b{font-size: inherit;}
316#description-text>a{font-size: inherit;color: #3c91e6;} 316#description-text>a{font-size: inherit;color: #3c91e6;}
317 317
318
319/* Section 6: leaderboards */
320#section6{
321 margin: 40px 0 20px 0;
322 min-height: 600px;
323 background-color: #202232;
324
325 border-radius: 24px;
326 padding: 10px 10px 0 10px;
327
328}
329#leaderboard-top>span{
330 display: flex;
331 place-items: flex-end;
332}
333
334
335#section6>hr{border: 1px solid #2b2e46;margin: 8px 20px 0px 20px;}
336#leaderboard-top{
337 display: grid;
338 grid-template-columns: 7.5% 25% 7.5% 25% 20% 15%;
339 font-size: 20px;
340 height: 34px;
341 padding-left: 60px;
342 margin: 0 20px 0 20px;
343}
344#page-number{
345 display: flex;
346 width: auto;
347 flex-direction: row-reverse;
348}
349#page-number>div{
350width: 100px;
351place-items: center;
352display: grid;
353grid-template-columns: 1fr 1fr 1fr;
354text-align: center;
355}
356#page-number>div>button{
357 width: 30px;
358 height: 30px;
359 background-color: #202232;
360 border: 0;
361 padding: 0;
362 cursor: pointer;
363}
364
365.leaderboard-record{
366 margin: 10px 20px 0px 20px;
367 height: 44px; width: calc(100% - 40px);
368 width: auto;
369
370 color: inherit;
371 border-radius: 40px;
372 text-align: left;
373 padding: 0 0 0 60px;
374 font-size: 20px;
375 font-family: inherit;
376
377
378 grid-template-columns: 3% 4.5% 25% 4% 3.5% 25% 20% 15%;
379 display: grid;
380
381 border: 0;
382 transition: background-color .1s;
383 background-color: #2b2e46;
384}
385
386.leaderboard-record>span:nth-child(1){display: grid;}
387.leaderboard-record>span:nth-child(4){display: grid;}
388.leaderboard-record>span:last-child{flex-direction: row-reverse;}
389.leaderboard-record>span{
390 display: flex;
391 place-items: center;
392 height: 44px;
393}
394.leaderboard-record>span>img{
395 height: 36px;
396 border-radius: 50px;
397 padding: 0;
398 scale: .95;
399}
400.leaderboard-record>span>button{
401 background-color: #0000;
402 border: 0;
403 cursor: pointer;
404 transition: opacity 0.1s;
405}
406
407.hover-popup {
408 position: relative;
409 }
410
411 .hover-popup::after {
412 content: attr(popup-text);
413 position: absolute;
414 /* top: 0%; */
415 /* left: 80%; */
416 /* transform: translateX(-100%); */
417 /* padding: 5px; */
418 background-color: #2b2e46;
419 /* border: 1px solid #161723; */
420 border-radius: 8px;
421 visibility: hidden;
422 opacity: 0;
423 /* transition: visibility 0s, opacity 0.3s ease; */
424 }
425
426 .hover-popup:hover::after {
427 visibility: visible;
428 opacity: 1;
429 }
430
431.leaderboard-record:last-child{margin: 10px 20px 10px 20px;}
432
433
434
435
436
437
318.triangle{ 438.triangle{
319 display: inline-block; 439 display: inline-block;
320 width: 8px; height: 0; 440 width: 8px; height: 0;