You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

253 lines
4.5 KiB

.leaderboard {
max-width: 1200px;
}
.leaderboard > .analytics-note:first-of-type {
margin-top: 1rem;
max-width: 75ch;
& code {
font-family: var(--font-mono);
font-size: 0.85em;
background: var(--clr-grey-200);
border-radius: 4px;
padding: 0.1em 0.35em;
}
}
.leaderboard-flag {
font-size: 1.05em;
line-height: 1;
}
.leaderboard-badges {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
gap: 1rem;
margin-top: 1.25rem;
}
.leaderboard-badge {
position: relative;
border: 1px solid var(--border);
border-left: 3px solid var(--action);
border-radius: 10px;
padding: 0.9rem 1rem;
background: #fff;
&.new_players { border-left-color: var(--analytics-positive); }
&.encouragement { border-left-color: var(--analytics-neutral); }
&.participation { border-left-color: var(--action); }
}
.leaderboard-badge-type {
font-size: 0.7rem;
letter-spacing: 0.06em;
text-transform: uppercase;
color: var(--secondary);
}
.leaderboard-badge-message {
margin-top: 0.4rem;
font-size: 0.95rem;
line-height: 1.35;
display: flex;
align-items: baseline;
gap: 0.4rem;
}
.leaderboard-badge-code {
position: absolute;
top: 0.9rem;
right: 1rem;
font-size: 0.7rem;
font-variant-numeric: tabular-nums;
color: var(--clr-grey-400);
}
.leaderboard-table {
margin-top: 1.25rem;
display: flex;
flex-direction: column;
}
.leaderboard-row {
display: grid;
grid-template-columns: 2.5rem minmax(180px, 20rem) 1fr 5rem 6rem 8rem;
align-items: center;
gap: 0.85rem;
font-size: 0.85rem;
padding: 0.4rem 0;
border-bottom: 1px solid var(--border);
&:hover:not(.leaderboard-head) {
background: var(--hover);
}
&.is-idle {
opacity: 0.5;
}
}
.leaderboard-head {
font-size: 0.72rem;
letter-spacing: 0.06em;
text-transform: uppercase;
color: var(--secondary);
padding-bottom: 0.5rem;
}
.leaderboard-rank {
font-variant-numeric: tabular-nums;
color: var(--secondary);
text-align: right;
}
.leaderboard-country {
display: flex;
align-items: baseline;
gap: 0.45rem;
overflow: hidden;
white-space: nowrap;
& em {
font-style: normal;
font-size: 0.72rem;
color: var(--clr-grey-400);
}
}
.leaderboard-tag {
border: 1px solid var(--border);
border-radius: 999px;
padding: 0.05em 0.5em;
}
.leaderboard-number {
font-variant-numeric: tabular-nums;
text-align: right;
}
.leaderboard-head .leaderboard-number {
text-align: right;
}
.leaderboard-raw {
margin-top: 1.25rem;
& summary {
cursor: pointer;
font-size: 0.85rem;
color: var(--secondary);
}
& pre {
margin-top: 0.85rem;
max-height: 30rem;
overflow: auto;
background: var(--clr-grey-200);
border-radius: 8px;
padding: 1rem;
font-family: var(--font-mono);
font-size: 0.75rem;
line-height: 1.5;
}
}
.leaderboard-explainer {
margin-top: 2rem;
border: 1px solid var(--border);
border-radius: 10px;
padding: 1.25rem 1.5rem 1.5rem;
background: var(--hover);
max-width: 80ch;
& > h3 {
font-size: 0.95rem;
font-weight: 500;
margin: 0 0 0.6rem;
}
& > p {
font-size: 0.85rem;
line-height: 1.55;
color: var(--secondary);
margin: 0;
max-width: none;
}
& code {
font-family: var(--font-mono);
font-size: 0.78em;
background: #fff;
border: 1px solid var(--border);
border-radius: 4px;
padding: 0.1em 0.4em;
white-space: nowrap;
}
}
.leaderboard-steps {
margin: 1.1rem 0 0;
padding: 0;
list-style: none;
counter-reset: leaderboard-step;
display: flex;
flex-direction: column;
gap: 0.9rem;
& > li {
counter-increment: leaderboard-step;
display: grid;
grid-template-columns: 1.5rem 1fr;
gap: 0.15rem 0.75rem;
align-items: baseline;
&::before {
content: counter(leaderboard-step);
grid-row: span 2;
display: inline-flex;
align-items: center;
justify-content: center;
width: 1.5rem;
aspect-ratio: 1;
border-radius: 50%;
background: var(--clr-grey-200);
font-size: 0.72rem;
font-variant-numeric: tabular-nums;
align-self: start;
}
}
& strong {
font-size: 0.85rem;
font-weight: 500;
}
& span {
font-size: 0.82rem;
line-height: 1.6;
color: var(--secondary);
}
}
.leaderboard-worked {
margin-top: 1.25rem !important;
padding-top: 1rem;
border-top: 1px solid var(--border);
color: var(--clr-black) !important;
& strong {
font-weight: 500;
}
}
.leaderboard-explainer > .analytics-note {
margin-top: 1rem;
font-size: 0.8rem;
}