sendou.ink/app/components/match-page/MatchBanner.module.css
2026-04-10 17:27:56 +03:00

121 lines
2.1 KiB
CSS

.root {
display: flex;
flex-direction: column;
gap: var(--s-1-5);
container-type: inline-size;
}
.banner {
display: grid;
/** xxx: check space for mobile when it says e.g. Team 2 pick -> just show logo instead? */
grid-template-columns: max-content 1fr;
grid-template-areas: "map info" "notice notice";
background-size: cover;
background-position: center;
background-repeat: no-repeat;
width: 100%;
height: 175px;
border-radius: var(--radius-box);
padding: var(--s-2);
background-image:
linear-gradient(
to top,
rgba(255, 255, 255, 0),
rgba(255, 255, 255, 0),
rgba(0, 0, 0, 0.6)
),
var(--stage-img);
}
.info {
grid-area: info;
justify-self: flex-end;
}
.map {
grid-area: map;
display: flex;
gap: var(--s-1);
}
.notice {
display: flex;
gap: var(--s-0-5);
align-items: center;
color: var(--color-text-high);
grid-area: notice;
align-self: flex-end;
justify-self: center;
background-color: var(--color-bg-high);
padding: var(--s-0-5) var(--s-1-5);
border-radius: var(--radius-field);
font-size: var(--font-3xs);
font-weight: normal;
height: auto;
}
.infoBadge {
display: flex;
gap: var(--s-1-5);
align-items: center;
height: auto;
color: inherit;
font-size: inherit;
font-weight: inherit;
}
.thickText {
font-size: var(--font-md);
font-weight: var(--weight-semi);
}
.legalIcon {
color: var(--color-success);
}
.illegalIcon {
color: var(--color-error);
}
.multiBanner {
display: flex;
padding: 0;
overflow: hidden;
background-image: none;
}
.segment {
--slant: 13px;
flex: 1 1 0;
min-width: 0;
height: 100%;
background-size: cover;
background-position: center;
background-repeat: no-repeat;
background-image:
linear-gradient(
to top,
rgba(255, 255, 255, 0),
rgba(255, 255, 255, 0),
rgba(0, 0, 0, 0.6)
),
var(--stage-img);
clip-path: polygon(
var(--slant) 0,
100% 0,
calc(100% - var(--slant)) 100%,
0 100%
);
margin-inline-start: calc(var(--slant) * -1);
&:first-child {
clip-path: polygon(0 0, 100% 0, calc(100% - var(--slant)) 100%, 0 100%);
margin-inline-start: 0;
}
&:last-child {
clip-path: polygon(var(--slant) 0, 100% 0, 100% 100%, 0 100%);
}
}