Template:Contributors ranking/styles.css: Difference between revisions
Page last edited 6 days ago by Xeverything11
m Tweaks |
m tweaks |
||
(6 intermediate revisions by the same user not shown) | |||
Line 4: | Line 4: | ||
margin: 0.5rem; | margin: 0.5rem; | ||
border-radius: 4px; | border-radius: 4px; | ||
font-size: 1rem; | |||
} | } | ||
Line 16: | Line 17: | ||
font-weight: bold; | font-weight: bold; | ||
text-transform: lowercase; | text-transform: lowercase; | ||
} | |||
.contributors-ranking > table { | |||
width: 100%; | |||
} | } | ||
Line 34: | Line 39: | ||
background-image: none; | background-image: none; | ||
background-color: transparent; | background-color: transparent; | ||
width: 100%; | |||
} | } | ||
Line 44: | Line 50: | ||
.contributionscores tr { | .contributionscores tr { | ||
display: flex; | display: flex; | ||
padding: | padding: 0.5rem 0; | ||
border-bottom: 1px solid var(--color-primary1); | border-bottom: 1px solid var(--color-primary1); | ||
justify-content: space-between; | justify-content: space-between; | ||
Line 56: | Line 62: | ||
.contributionscores tr td { | .contributionscores tr td { | ||
padding: 0. | padding: 0.25rem !important; | ||
} | } | ||
Line 85: | Line 91: | ||
content: "description"; | content: "description"; | ||
font-family: "Material Icons Outlined"; | font-family: "Material Icons Outlined"; | ||
padding-right: 0. | padding-right: 0.15rem; | ||
} | } | ||
/* Edits */ | /* Edits */ | ||
Line 94: | Line 100: | ||
content: "edit"; | content: "edit"; | ||
font-family: "Material Icons Outlined"; | font-family: "Material Icons Outlined"; | ||
padding-right: 0. | padding-right: 0.15rem; | ||
} | } | ||
/* User */ | /* User */ |
Latest revision as of 18:44, 23 April 2025
.contributors-ranking {
border: 1px solid var(--color-primary1);
padding: 1rem;
margin: 0.5rem;
border-radius: 4px;
font-size: 1rem;
}
.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 {
width: 100%;
}
.contributors-ranking > table > tbody {
min-width: 100%;
display: block;
}
.contributors-ranking > table > tbody > tr, .contributors-ranking > table > tbody > tr > td {
display: block;
}
.contributors-ranking > table > tbody > tr:first-child {
display: none;
}
.contributionscores {
background-image: none;
background-color: transparent;
width: 100%;
}
.contributionscores tbody {
display: flex;
flex-direction: column;
width: 100%;
}
.contributionscores tr {
display: flex;
padding: 0.5rem 0;
border-bottom: 1px solid var(--color-primary1);
justify-content: space-between;
align-items: center;
width: 100%;
}
.contributionscores tr.header {
display: none;
}
.contributionscores tr td {
padding: 0.25rem !important;
}
/* Rank */
.contributionscores tr td:nth-child(1) {
order: 1;
background: var(--color-primary-gradient);
flex: 0 0 2.2rem;
line-height: 2.2rem;
font-size: 1.6rem;
border-radius: 4px;
color: white;
font-weight: bold;
padding: 0 !important;
text-align: center !important;
}
/* Score */
.contributionscores tr td:nth-child(2) {
order: 5;
font-weight: 500;
font-size: 1.8rem;
}
/* Pages */
.contributionscores tr td:nth-child(3) {
order: 4;
}
.contributionscores tr td:nth-child(3):before {
content: "description";
font-family: "Material Icons Outlined";
padding-right: 0.15rem;
}
/* Edits */
.contributionscores tr td:nth-child(4) {
order: 3;
}
.contributionscores tr td:nth-child(4):before {
content: "edit";
font-family: "Material Icons Outlined";
padding-right: 0.15rem;
}
/* User */
.contributionscores tr td:nth-child(5) {
order: 2;
flex: 1;
font-weight: bold;
overflow-wrap: anywhere;
}