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.
223 lines
3.9 KiB
223 lines
3.9 KiB
:root {
|
|
--def-grey: hsl(110 00% 82% / 1);
|
|
--plus-green: hsl(110 80% 82% / 1);
|
|
--minus-red: hsl(0 80% 82% / 1);
|
|
--gold-1: #d29b35;
|
|
--silver-2: #b7b7b7;
|
|
--bronze-3: #b76833;
|
|
}
|
|
html {
|
|
color-scheme: dark;
|
|
}
|
|
body {
|
|
background: #161c21;
|
|
color: #d2d2d2;
|
|
font-family: Verdana, sans-serif;
|
|
}
|
|
h1 {
|
|
text-align: center;
|
|
}
|
|
button {
|
|
background: none;
|
|
color: inherit;
|
|
border: none;
|
|
padding: 0;
|
|
font: inherit;
|
|
cursor: pointer;
|
|
outline: inherit;
|
|
text-align: unset;
|
|
}
|
|
button[disabled] {
|
|
cursor: initial;
|
|
}
|
|
button[disabled]:hover {
|
|
background-color: initial;
|
|
}
|
|
|
|
.uem-logo-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
margin-bottom: 24px;
|
|
}
|
|
img.uem-logo {
|
|
height: 120px;
|
|
}
|
|
|
|
button.open-general-graph {
|
|
border: solid 2px #68a8cc;
|
|
border-radius: 12px;
|
|
padding: 16px 24px;
|
|
transition: background-color 200ms ease-out;
|
|
}
|
|
button.open-general-graph:hover {
|
|
background-color: #1f2931;
|
|
}
|
|
|
|
.leaderboard {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
}
|
|
.leaderboard-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
gap: 16px;
|
|
max-width: 600px;
|
|
margin-top: 20px;
|
|
}
|
|
.leaderboard-element {
|
|
display: grid;
|
|
grid-template-columns: 64px 1fr auto;
|
|
grid-template-rows: auto auto 1fr;
|
|
row-gap: 8px;
|
|
align-items: center;
|
|
border: solid 4px #6a818f;
|
|
border-radius: 20px;
|
|
padding: 16px 16px 16px 36px;
|
|
transition: background-color 200ms ease-out;
|
|
}
|
|
.leaderboard-element:hover {
|
|
background-color: #1f2931;
|
|
}
|
|
.leaderboard-element.place-1 {
|
|
border: solid 4px var(--gold-1);
|
|
}
|
|
.leaderboard-element.place-1 .placement {
|
|
color: var(--gold-1);
|
|
}
|
|
.leaderboard-element.place-2 {
|
|
border: solid 4px #b7b7b7;
|
|
}
|
|
.leaderboard-element.place-2 .placement {
|
|
color: var(--silver-2);
|
|
}
|
|
.leaderboard-element.place-3 {
|
|
border: solid 4px #b76833;
|
|
}
|
|
.leaderboard-element.place-3 .placement {
|
|
color: var(--bronze-3);
|
|
}
|
|
|
|
.leaderboard-element .ranked-emblem {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 0 16px;
|
|
}
|
|
.leaderboard-element .ranked-emblem img {
|
|
width: 72px;
|
|
aspect-ratio: 1/1;
|
|
}
|
|
.leaderboard-element img.ranked-mini-crest {
|
|
width: 24px;
|
|
aspect-ratio: 1/1
|
|
}
|
|
|
|
.leaderboard-element .placement {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
grid-row-start: 1;
|
|
grid-row-end: 3;
|
|
font-size: 2.5em;
|
|
font-weight: 700;
|
|
margin-right: 24px;
|
|
}
|
|
|
|
.leaderboard-element .player-info {
|
|
display: grid;
|
|
grid-template-rows: 1fr 0.9fr;
|
|
grid-template-columns: 72px auto;
|
|
grid-column: 2;
|
|
margin: 10px 0;
|
|
row-gap: 10px;
|
|
}
|
|
.leaderboard-element .ranked-emblem {
|
|
grid-column: 3;
|
|
}
|
|
|
|
.playername .riot-tag {
|
|
color: #707070;
|
|
}
|
|
.player-info>img {
|
|
grid-row-start: 1;
|
|
grid-row-end: 3;
|
|
grid-column: 1;
|
|
border-radius: 8px;
|
|
align-self: end;
|
|
}
|
|
.player-info .playername {
|
|
grid-row: 1;
|
|
grid-column: 2;
|
|
margin: 0;
|
|
}
|
|
.player-info .lp-gained {
|
|
align-self: start;
|
|
grid-row: 2;
|
|
grid-column: 2;
|
|
font-size: 1.5em;
|
|
margin: 0;
|
|
padding-left: 12px;
|
|
}
|
|
.player-info .lp-gained.plus-lp {
|
|
color: var(--plus-green);
|
|
}
|
|
.player-info .lp-gained.minus-lp {
|
|
color: var(--minus-red);
|
|
}
|
|
.player-info .lp-gained.no-lp {
|
|
color: var(--def-grey);
|
|
}
|
|
|
|
.leaderboard-element .elo-gained {
|
|
grid-column-start: 2;
|
|
grid-column-end: 4;
|
|
display: flex;
|
|
flex-direction: row;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 4px;
|
|
}
|
|
.rank {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
}
|
|
.rank .rank-desc {
|
|
text-align: center;
|
|
}
|
|
.elo-gained .rank-LP {
|
|
font-size: 0.8em;
|
|
}
|
|
|
|
.leaderboard-element .graph-wrapper {
|
|
position: relative;
|
|
display: grid;
|
|
grid-template-rows: 1fr;
|
|
grid-template-columns: 1fr;
|
|
grid-row: 3;
|
|
grid-column: 1 / 4;
|
|
overflow: hidden;
|
|
height: 250px;
|
|
width: 520px;
|
|
transition: height 400ms;
|
|
}
|
|
.leaderboard-element.closed .graph-wrapper {
|
|
height: 0;
|
|
}
|
|
|
|
.leaderboard>.graph-wrapper {
|
|
position: relative;
|
|
display: flex;
|
|
justify-content: center;
|
|
height: 600px;
|
|
width: 90vw;
|
|
max-width: 800px;
|
|
transition: height 400ms;
|
|
overflow: hidden;
|
|
}
|
|
.leaderboard>.graph-wrapper.closed {
|
|
height: 0;
|
|
} |