sendou.ink/app/components/match-page/MatchRosterTab.module.css
Kalle 2b5b1b1948
Some checks are pending
E2E Tests / e2e (push) Waiting to run
Tests and checks on push / run-checks-and-tests (push) Waiting to run
Updates translation progress / update-translation-progress-issue (push) Waiting to run
New match page (#3032)
2026-05-04 18:15:10 +03:00

259 lines
4.2 KiB
CSS

.rosters {
display: flex;
flex-direction: column;
gap: var(--s-8);
font-size: var(--font-xs);
font-weight: var(--weight-semi);
width: max-content;
max-width: 100%;
margin-inline: auto;
}
.rostersDivider {
display: none;
}
@container (width >= 640px) {
.rosters {
display: grid;
grid-template-columns: 1fr auto 1fr;
gap: var(--s-4);
width: auto;
max-width: none;
margin-inline: 0;
}
.rosterColumn {
margin-inline: auto;
width: max-content;
max-width: 100%;
}
.rostersDivider {
display: block;
background-color: var(--color-border);
width: 1px;
align-self: stretch;
}
}
.rostersSpacedHeader {
min-height: 45px;
display: flex;
align-items: center;
}
.rosterMembers {
position: relative;
padding-inline-start: 34px;
list-style: none;
display: flex;
flex-direction: column;
gap: var(--s-2-5);
margin-top: var(--s-2);
&::before {
content: "";
position: absolute;
inset-inline-start: 21px;
top: -8px;
bottom: 0;
width: 3px;
background-color: var(--color-border-high);
opacity: 0.3;
border-radius: 0 0 var(--radius-field) var(--radius-field);
}
}
.tierBadge {
display: flex;
align-items: center;
justify-content: center;
width: 24px;
height: 24px;
border-radius: 100%;
background-color: var(--color-bg-higher);
border: none;
padding: 0;
cursor: pointer;
flex-shrink: 0;
}
.tierPopover {
display: flex;
flex-direction: column;
align-items: center;
gap: var(--s-1);
}
.tierPopoverName {
font-size: var(--font-sm);
font-weight: var(--weight-semi);
text-transform: capitalize;
}
.memberGrid {
display: grid;
grid-template-areas:
"avatar name"
"tier meta";
grid-template-columns: auto 1fr;
column-gap: var(--s-2);
row-gap: var(--s-1);
align-items: center;
}
.memberLink {
grid-row: 1;
grid-column: 1 / -1;
display: grid;
grid-template-columns: subgrid;
column-gap: var(--s-2);
align-items: center;
}
.memberNameStack {
display: flex;
flex-direction: column;
line-height: 1.2;
}
.memberInGameName {
font-size: var(--font-2xs);
color: var(--color-text-high);
font-weight: var(--weight-semi);
}
.memberMenuTrigger {
background: none;
border: 0;
padding: 0;
color: inherit;
font: inherit;
text-align: inherit;
cursor: pointer;
width: 100%;
}
.friendCodeHeader {
text-align: center;
}
.memberMenuHeader {
display: flex;
flex-direction: column;
gap: var(--s-0-5);
}
.memberMenuIgn {
font-size: var(--font-2xs);
color: var(--color-text-high);
}
.memberMenuIgnLabel {
font-weight: var(--weight-bold);
text-transform: uppercase;
font-size: var(--font-3xs);
}
.memberTier {
grid-area: tier;
justify-self: center;
}
.memberMetaArea {
grid-area: meta;
}
.memberMeta {
display: flex;
align-items: center;
gap: var(--s-1);
font-size: var(--font-2xs);
}
.plusTier {
display: flex;
align-items: center;
gap: var(--s-0-5);
background-color: var(--color-bg-higher);
border-radius: var(--radius-full);
padding: var(--s-0-5) var(--s-1-5);
padding-inline-start: var(--s-1);
font-weight: var(--weight-semi);
color: var(--color-text);
}
.subbedOutTrigger {
display: flex;
align-items: center;
gap: var(--s-1-5);
}
.subbedOutIcon {
--subbed-out-icon-size: 24px;
display: flex;
align-items: center;
justify-content: center;
width: var(--subbed-out-icon-size);
height: var(--subbed-out-icon-size);
border-radius: 100%;
background-color: var(--color-bg-higher);
}
.subbedOutPopover {
display: flex;
flex-direction: column;
gap: var(--s-2);
}
.subbedOutHeader {
font-size: var(--font-xs);
font-weight: var(--weight-semi);
color: var(--color-text-high);
text-transform: uppercase;
}
.rosterEditCount {
font-size: var(--font-xs);
color: var(--color-text-high);
margin-block-end: var(--s-2);
text-align: center;
}
.rosterEditButtons {
display: flex;
gap: var(--s-2);
margin-block-start: var(--s-4);
justify-content: center;
}
.teamOneDot {
border-radius: 100%;
background-color: var(--color-accent);
width: 8px;
height: 8px;
}
.teamTwoDot {
border-radius: 100%;
background-color: var(--color-second);
width: 8px;
height: 8px;
}
.teamAvatar {
border-radius: var(--radius-avatar);
width: 44px;
height: 44px;
flex-shrink: 0;
&[data-side="alpha"] {
background-color: var(--color-accent);
}
&[data-side="bravo"] {
background-color: var(--color-second);
}
}