Template:Contributors ranking/styles.css: Difference between revisions
Page last edited 6 days ago by Xeverything11
Add CSS |
m Tweaks |
||
Line 62: | Line 62: | ||
.contributionscores tr td:nth-child(5) { | .contributionscores tr td:nth-child(5) { | ||
order: 2; | order: 2; | ||
flex: 1; | |||
} | } |
Revision as of 19:32, 22 April 2025
.contributors-ranking {
border: 1px solid var(--color-primary1);
padding: 1rem;
margin: 0.5rem;
border-radius: 4px;
}
.contributors-ranking-header {
background-image: var(--color-primary-gradient);
color: white;
border-radius: 3px 3px 0 0;
margin: -1rem -1rem 1rem;
padding: 0.5rem 1rem;
font-size: 1.5rem;
font-weight: bold;
text-transform: lowercase;
}
.contributors-ranking > table > tbody > tr:first-child {
display: none;
}
.contributionscores {
background-image: none;
background-color: transparent;
}
.contributionscores tbody {
display: flex;
flex-direction: column;
}
.contributionscores tr {
display: flex;
padding: 1rem 0;
border-bottom: 1px solid var(--color-primary1);
justify-content: space-between;
}
.contributionscores tr.header {
display: none;
}
/* Rank */
.contributionscores tr td:nth-child(1) {
order: 1;
}
/* Score */
.contributionscores tr td:nth-child(2) {
order: 5;
}
/* Pages */
.contributionscores tr td:nth-child(3) {
order: 4;
}
/* Edits */
.contributionscores tr td:nth-child(4) {
order: 3;
}
/* User */
.contributionscores tr td:nth-child(5) {
order: 2;
flex: 1;
}