181 lines
4.1 KiB
CSS
181 lines
4.1 KiB
CSS
.lts-hall {
|
|
--lts-hall-slant: 10px;
|
|
|
|
/* Paint the muted band edge to edge without leaving the page-width column. */
|
|
background: var(--color-background-muted);
|
|
box-shadow: 0 0 0 100vmax var(--color-background-muted);
|
|
clip-path: inset(0 -100vmax);
|
|
}
|
|
|
|
.lts-hall-card {
|
|
border-radius: 1.25rem;
|
|
}
|
|
|
|
.lts-hall-team-name {
|
|
position: relative;
|
|
width: fit-content;
|
|
max-width: 100%;
|
|
color: var(--lts-gold);
|
|
filter: drop-shadow(0 0.5px 0 color-mix(in srgb, var(--lts-gold) 20%, transparent));
|
|
}
|
|
|
|
@supports (background-clip: text) or (-webkit-background-clip: text) {
|
|
.lts-hall-team-name {
|
|
background-image:
|
|
linear-gradient(
|
|
115deg,
|
|
transparent calc(50% - 9px),
|
|
color-mix(in srgb, var(--color-brand-gold) 45%, transparent) calc(50% - 5px),
|
|
color-mix(in srgb, var(--color-brand-gold) 18%, var(--color-palette-white)) 50%,
|
|
color-mix(in srgb, var(--color-brand-gold) 45%, transparent) calc(50% + 5px),
|
|
transparent calc(50% + 9px)
|
|
),
|
|
linear-gradient(
|
|
175deg,
|
|
var(--lts-gold) 0%,
|
|
color-mix(in srgb, var(--lts-gold) 45%, var(--color-brand-gold)) 28%,
|
|
var(--color-brand-gold) 39%,
|
|
color-mix(in srgb, var(--color-brand-gold) 65%, var(--color-palette-white)) 44%,
|
|
var(--lts-gold) 53%,
|
|
color-mix(in srgb, var(--lts-gold) 70%, var(--color-brand-gold)) 72%,
|
|
var(--color-brand-gold) 100%
|
|
);
|
|
background-size: 250% 100%, 100% 100%;
|
|
background-position: 100% 0, 0 0;
|
|
background-repeat: no-repeat;
|
|
-webkit-background-clip: text;
|
|
background-clip: text;
|
|
color: transparent;
|
|
}
|
|
}
|
|
|
|
.lts-hall-team-name::before,
|
|
.lts-hall-team-name::after {
|
|
content: '';
|
|
position: absolute;
|
|
pointer-events: none;
|
|
width: 7px;
|
|
height: 7px;
|
|
background: var(--color-brand-gold);
|
|
clip-path: polygon(50% 0, 62% 37%, 100% 50%, 62% 63%, 50% 100%, 38% 63%, 0 50%, 38% 37%);
|
|
opacity: 0;
|
|
transform: scale(0.4) rotate(-15deg);
|
|
}
|
|
|
|
.lts-hall-team-name::before {
|
|
top: -3px;
|
|
right: 22%;
|
|
}
|
|
|
|
.lts-hall-team-name::after {
|
|
top: 45%;
|
|
right: -5px;
|
|
width: 5px;
|
|
height: 5px;
|
|
}
|
|
|
|
.lts-hall-player {
|
|
border-radius: 0.75rem;
|
|
}
|
|
|
|
.lts-hall-portrait {
|
|
border-radius: 50%;
|
|
}
|
|
|
|
.lts-hall-pixel {
|
|
image-rendering: pixelated;
|
|
}
|
|
|
|
.lts-hall-crown {
|
|
rotate: 14deg;
|
|
}
|
|
|
|
@media (prefers-reduced-motion: no-preference) {
|
|
.lts-hall[data-intro] .lts-hall-team-name {
|
|
animation: lts-hall-gold-shine 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
|
|
}
|
|
|
|
.lts-hall[data-intro] .lts-hall-team-name::before,
|
|
.lts-hall[data-intro] .lts-hall-team-name::after {
|
|
animation: lts-hall-gold-sparkle 4s ease-in-out infinite;
|
|
}
|
|
|
|
.lts-hall[data-intro] .lts-hall-team-name::after {
|
|
animation-delay: 120ms;
|
|
}
|
|
|
|
.lts-hall:not([data-motion-active]) .lts-hall-team-name,
|
|
.lts-hall:not([data-motion-active]) .lts-hall-team-name::before,
|
|
.lts-hall:not([data-motion-active]) .lts-hall-team-name::after {
|
|
animation-play-state: paused;
|
|
}
|
|
|
|
.lts-hall[data-intro] .lts-hall-portrait img {
|
|
animation: lts-hall-reveal 6s linear
|
|
calc(180ms + var(--lts-hall-order) * 48ms) infinite backwards;
|
|
}
|
|
}
|
|
|
|
@media (forced-colors: active) {
|
|
.lts-hall-team-name {
|
|
background: none;
|
|
color: CanvasText;
|
|
filter: none;
|
|
}
|
|
|
|
.lts-hall-team-name::before,
|
|
.lts-hall-team-name::after {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
@keyframes lts-hall-gold-shine {
|
|
0%,
|
|
5% {
|
|
background-position: 100% 0, 0 0;
|
|
}
|
|
|
|
/* Sweep from 0.2s to 0.85s, then leave the gold finish at rest. */
|
|
21.25%,
|
|
100% {
|
|
background-position: 0 0, 0 0;
|
|
}
|
|
}
|
|
|
|
@keyframes lts-hall-gold-sparkle {
|
|
0%,
|
|
16.25%,
|
|
23.25%,
|
|
100% {
|
|
opacity: 0;
|
|
transform: scale(0.4) rotate(-15deg);
|
|
}
|
|
|
|
19.5% {
|
|
opacity: 0.9;
|
|
transform: scale(1) rotate(15deg);
|
|
}
|
|
}
|
|
|
|
@keyframes lts-hall-reveal {
|
|
from {
|
|
clip-path: polygon(
|
|
0 0,
|
|
0 0,
|
|
calc(0px - var(--lts-hall-slant)) 100%,
|
|
0 100%
|
|
);
|
|
}
|
|
|
|
/* Reveal for 110ms, then stay visible for the rest of the six-second cycle. */
|
|
1.833333%,
|
|
100% {
|
|
clip-path: polygon(
|
|
0 0,
|
|
calc(100% + var(--lts-hall-slant)) 0,
|
|
100% 100%,
|
|
0 100%
|
|
);
|
|
}
|
|
}
|