Files
sendou.ink/app/components/PlayerStatusTimeline.module.css
2026-09-27 09:59:54 +03:00

131 lines
2.0 KiB
CSS

.container {
display: flex;
flex-direction: column;
gap: var(--s-2);
background-color: var(--color-bg-high);
border-radius: var(--radius-box);
padding: var(--s-2-5) var(--s-3);
}
.legend {
display: flex;
gap: var(--s-4);
justify-content: center;
font-size: var(--font-xs);
color: var(--color-text-high);
}
.legendItem {
display: flex;
align-items: center;
gap: var(--s-1);
}
.legendSwatchDead,
.legendSwatchSpecial,
.legendSwatchKill,
.legendSwatchSplattedByPov {
width: 10px;
height: 10px;
border-radius: 2px;
}
.legendSwatchDead {
background-color: var(--color-chart-splatted);
}
.legendSwatchSpecial {
background-color: var(--color-chart-special);
}
.legendSwatchKill {
width: 3px;
background-color: var(--color-chart-kill);
}
.legendSwatchSplattedByPov {
background-color: var(--color-chart-kill);
}
.team {
display: flex;
flex-direction: column;
gap: var(--s-1);
}
.teamLabel {
font-size: var(--font-xs);
font-weight: 600;
color: var(--color-text-high);
}
.row {
display: flex;
align-items: center;
}
.slotLabel {
display: flex;
justify-content: flex-end;
flex-shrink: 0;
width: var(--plot-gutter, 36px);
padding-right: var(--s-2);
}
.trackArea {
position: relative;
flex: 1;
}
.track {
position: relative;
height: 14px;
overflow: hidden;
border-radius: var(--radius-selector);
background-color: var(--color-bg-higher);
&.trackPov {
background-color: color-mix(
in oklch,
var(--color-bg-higher) 75%,
var(--color-accent) 25%
);
}
}
.spanDead,
.spanSpecial {
position: absolute;
top: 2px;
bottom: 2px;
min-width: 3px;
border-radius: 2px;
}
.spanDead {
background-color: var(--color-chart-splatted);
&.spanSplattedByPov {
background-color: var(--color-chart-kill);
}
}
.spanSpecial {
background-color: var(--color-chart-special);
}
.killTick {
position: absolute;
top: -3px;
bottom: -3px;
width: 3px;
transform: translateX(-50%);
border-radius: 2px;
background-color: var(--color-chart-kill);
box-shadow: 0 0 0 1px var(--color-bg-high);
}
.unknownWeapon {
opacity: 0.5;
}