Skip to content

Commit e529476

Browse files
committed
🔨 refactor: improve leaderboard
1 parent 317dd60 commit e529476

File tree

1 file changed

+52
-2
lines changed

1 file changed

+52
-2
lines changed

style.css

Lines changed: 52 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -366,14 +366,64 @@ a {
366366
}
367367

368368
.leaderboard .handle {
369-
text-align: left;
370-
padding: 0 30px;
369+
padding: 0 250px;
371370
}
372371

373372
.leaderboard td,th {
374373
text-align: center;
375374
}
376375

376+
.leaderboard {
377+
display: flex;
378+
flex-direction: column;
379+
align-items: center;
380+
justify-content: center;
381+
border-collapse: collapse;
382+
margin: 25px 0;
383+
font-size: 1.05em;
384+
min-width: 400px;
385+
border-radius: 5px 5px 0 0;
386+
overflow: hidden;
387+
box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
388+
}
389+
390+
.leaderboard thead tr {
391+
background-color: #ffffff;
392+
color: #000000;
393+
text-align: left;
394+
font-weight: bold;
395+
}
396+
397+
.leaderboard th,
398+
.leaderboard td {
399+
padding: 15px 15px;
400+
}
401+
402+
.leaderboard tbody tr {
403+
border-bottom: 1px solid #dddddd;
404+
transition: all 0.3s;
405+
}
406+
407+
.leaderboard tbody tr :hover {
408+
font-weight: bold;
409+
color: #000000;
410+
transition: all 0.3s;
411+
}
412+
413+
.leaderboard .handle a {
414+
text-decoration: none;
415+
}
416+
417+
.leaderboard tbody tr.handle :hover {
418+
cursor: pointer;
419+
}
420+
421+
.leaderboard tr:hover{
422+
background-color: rgb(230, 250, 250);
423+
opacity: 0.9;
424+
font-weight: 1.2rem;
425+
}
426+
377427
footer {
378428
width:100vw;
379429
bottom:0px

0 commit comments

Comments
 (0)