Skip to content

Commit 00e8ed7

Browse files
authored
Merge pull request #62 from tusharnankani/leaderboard-upd
feature enhancement: Improve Leaderboard (#59)
2 parents e54c54b + de288f9 commit 00e8ed7

File tree

1 file changed

+53
-3
lines changed

1 file changed

+53
-3
lines changed

style.css

Lines changed: 53 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ a {
3939

4040
.nwoc-menu-item, .nwoc-drawer-item {
4141
color: rgba(0,0,0,.54) !important;
42-
font-size: 1.2rem; !important;
42+
font-size: 1.2rem !important;
4343
font-weight: 600;
4444
padding: 0 15px !important;
4545
text-decoration: none;
@@ -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)