mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-08-19 01:10:25 -05:00
143 lines
2.8 KiB
CSS
143 lines
2.8 KiB
CSS
/* card chrome shared by every detected-event card, plus the sendou.ink send
|
|
status strip the feed pages hang under one */
|
|
|
|
.card {
|
|
background: var(--color-bg-high);
|
|
border-radius: var(--radius-box);
|
|
/* MatchCard's nested event list tightens this */
|
|
padding: var(--scanner-card-padding, var(--s-4));
|
|
min-width: 0;
|
|
}
|
|
|
|
.meta {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: var(--s-2) var(--s-4);
|
|
color: var(--color-text-high);
|
|
font-size: var(--font-2xs);
|
|
font-weight: var(--weight-semi);
|
|
font-variant-numeric: tabular-nums;
|
|
margin-bottom: var(--s-2);
|
|
align-items: center;
|
|
}
|
|
|
|
.teams {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
|
|
gap: var(--s-2);
|
|
}
|
|
|
|
/* single hug-content box (own-results cards) */
|
|
.solo {
|
|
grid-template-columns: max-content;
|
|
}
|
|
|
|
/* single full-width box (death cards) */
|
|
.death {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
/* lighter than a solid slab: translucent fill + hairline so the boxes read
|
|
as grouping, not chrome */
|
|
.team {
|
|
border-radius: var(--radius-field);
|
|
padding: var(--s-2) var(--s-2-5);
|
|
background: color-mix(in oklab, var(--color-bg) 45%, transparent);
|
|
border: 1px solid color-mix(in oklab, var(--color-border) 55%, transparent);
|
|
min-width: 0;
|
|
overflow-x: auto;
|
|
|
|
& h3 {
|
|
margin: 0 0 var(--s-1-5);
|
|
font-size: var(--font-2xs);
|
|
font-weight: var(--weight-bold);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.06em;
|
|
color: var(--color-text-high);
|
|
}
|
|
|
|
&.win h3 {
|
|
color: var(--color-error-high);
|
|
}
|
|
|
|
&.lose h3 {
|
|
color: var(--color-info-high);
|
|
}
|
|
}
|
|
|
|
.players {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
font-size: var(--font-xs);
|
|
|
|
& td {
|
|
padding: var(--s-0-5) var(--s-1-5);
|
|
white-space: nowrap;
|
|
|
|
&.num {
|
|
text-align: right;
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
}
|
|
}
|
|
|
|
.solo .players {
|
|
width: auto;
|
|
}
|
|
|
|
.weaponCell {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: var(--s-1);
|
|
}
|
|
|
|
/* round black pucks, same language as the match card's weapon row */
|
|
.weaponIcon {
|
|
width: 28px;
|
|
height: 28px;
|
|
vertical-align: middle;
|
|
background: var(--color-bg-badge);
|
|
border-radius: var(--radius-full);
|
|
padding: var(--s-0-5);
|
|
}
|
|
|
|
/* sendou.ink send status strip under a feed card */
|
|
.sendWrap {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--s-0-5);
|
|
}
|
|
|
|
.sendStrip {
|
|
display: flex;
|
|
gap: var(--s-3);
|
|
align-items: center;
|
|
padding: var(--s-1) var(--s-4);
|
|
border-radius: var(--radius-box);
|
|
background: var(--color-bg-high);
|
|
font-size: var(--font-2xs);
|
|
font-weight: var(--weight-semi);
|
|
color: var(--color-text-high);
|
|
}
|
|
|
|
.sent {
|
|
color: var(--color-success-high);
|
|
background: var(--color-success-low);
|
|
}
|
|
|
|
.failed {
|
|
color: var(--color-error-high);
|
|
background: var(--color-error-low);
|
|
}
|
|
|
|
.queued,
|
|
.sending {
|
|
color: var(--color-info-high);
|
|
background: var(--color-info-low);
|
|
}
|
|
|
|
.sendError {
|
|
color: inherit;
|
|
font-weight: var(--weight-body);
|
|
}
|