Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix alignment in leaderboard (responsively) #78

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 33 additions & 11 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -365,20 +365,32 @@ a {
}
}

.leaderboard tr th:first-child,
.leaderboard tr td:first-child {
text-align: right;
padding-left: 13px;
}

.leaderboard tr td:first-child {
padding-right: 14px;
}


.leaderboard .handle {
padding: 0 250px;
padding-left: 230px;
padding-right: 130px;
text-align: left;
}

.leaderboard td,th {
text-align: center;
.leaderboard tr th:nth-child(3),
.leaderboard tr td:nth-child(3) {
text-align: right;
padding-right: 16px;
}

.leaderboard {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
border-collapse: collapse;
width: 100%;
margin: 25px 0;
font-size: 1.05em;
min-width: 400px;
Expand Down Expand Up @@ -427,15 +439,25 @@ a {
/* Responsive Leaderboard */

@media screen and (max-width: 960px) {
.leaderboard .handle {
padding: 0 30px;
}

.leaderboard {
margin: 30px 0;
font-size: 1.05em;
min-width: 10px;
}

.leaderboard .handle {
padding-left: 24px;
padding-right: 2px;
}

.leaderboard th,
.leaderboard td {
padding: 14px 6px;
}

.leaderboard tr td:first-child {
padding-right: 9px;
}
}

footer {
Expand Down