Frontend, README und Konfigurationsvorlage
React-Oberfläche mit Übersicht, Match-Erstellung, Beitritt über Team- und Zuschauercodes, Teamkarten, visuellem Map-Veto, Serie und Serverpanel. README beschreibt Einrichtung, Umgebungsvariablen, Rollen, Veto-Abläufe, Serveradapter und CSTV-Zuschauerzugang.
This commit is contained in:
1 parent
f08297dd0d
commit
f7520a6ca7
24 files changed
+1938
-1
No files matched your search
@@ -0,0 +1,366 @@
|
||||
/* ---------- Tokens ---------- */
|
||||
:root {
|
||||
--bg: #10151f;
|
||||
--surface: #161d2a;
|
||||
--surface-2: #1d2636;
|
||||
--line: #2a3448;
|
||||
--line-strong: #3a4760;
|
||||
--text: #e6ebf2;
|
||||
--muted: #8a96ab;
|
||||
|
||||
--team-a: #3cc6c0;
|
||||
--team-b: #e86fa0;
|
||||
--ct: #6ca8e8;
|
||||
--t: #dda84a;
|
||||
|
||||
--ok: #49d48f;
|
||||
--pending: #e8c25a;
|
||||
--error: #f0605d;
|
||||
--demo: #b39bff;
|
||||
|
||||
--display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
|
||||
--body: 'Barlow', system-ui, sans-serif;
|
||||
|
||||
--radius: 6px;
|
||||
--chamfer: 14px;
|
||||
color-scheme: dark;
|
||||
}
|
||||
|
||||
* { box-sizing: border-box; }
|
||||
html, body { margin: 0; }
|
||||
body {
|
||||
background: var(--bg);
|
||||
color: var(--text);
|
||||
font: 400 16px/1.5 var(--body);
|
||||
-webkit-font-smoothing: antialiased;
|
||||
}
|
||||
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.1; margin: 0 0 .5em; letter-spacing: .01em; }
|
||||
h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
|
||||
h2 { font-size: 1.375rem; }
|
||||
h3 { font-size: 1.0625rem; }
|
||||
p { margin: 0 0 .75em; }
|
||||
a { color: var(--ct); }
|
||||
code { font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; font-size: .875em; }
|
||||
.muted { color: var(--muted); }
|
||||
.small { font-size: .875rem; }
|
||||
.lead { color: var(--muted); max-width: 60ch; font-size: 1.0625rem; }
|
||||
:focus-visible { outline: 2px solid var(--ct); outline-offset: 2px; }
|
||||
|
||||
.tone-ok { color: var(--ok); }
|
||||
.tone-pending { color: var(--pending); }
|
||||
.tone-error { color: var(--error); }
|
||||
.tone-demo { color: var(--demo); }
|
||||
.tone-muted { color: var(--muted); }
|
||||
.team-a { color: var(--team-a); }
|
||||
.team-b { color: var(--team-b); }
|
||||
|
||||
/* ---------- Layout ---------- */
|
||||
.topbar {
|
||||
display: flex; align-items: center; gap: 16px;
|
||||
padding: 12px clamp(16px, 4vw, 40px);
|
||||
border-bottom: 1px solid var(--line);
|
||||
background: var(--surface);
|
||||
position: sticky; top: 0; z-index: 10;
|
||||
}
|
||||
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 700 1.25rem var(--display); }
|
||||
.topbar nav { margin-left: auto; display: flex; align-items: center; gap: 16px; }
|
||||
.nav-link { color: var(--muted); text-decoration: none; }
|
||||
.nav-link:hover { color: var(--text); }
|
||||
.demo-flag {
|
||||
font-size: .8125rem; color: var(--demo); border: 1px solid color-mix(in srgb, var(--demo) 50%, transparent);
|
||||
padding: 2px 10px; border-radius: 999px;
|
||||
}
|
||||
.content { max-width: 1320px; margin: 0 auto; padding: 32px clamp(16px, 4vw, 40px) 80px; }
|
||||
|
||||
/* ---------- Buttons & Felder ---------- */
|
||||
.btn {
|
||||
--btn: var(--surface-2);
|
||||
display: inline-flex; align-items: center; justify-content: center; gap: 8px;
|
||||
font: 600 .9375rem var(--body);
|
||||
color: var(--text); background: var(--btn);
|
||||
border: 1px solid var(--line-strong); border-radius: var(--radius);
|
||||
padding: 9px 16px; cursor: pointer; text-decoration: none;
|
||||
transition: background .15s, border-color .15s;
|
||||
}
|
||||
.btn:hover:not(:disabled) { border-color: var(--muted); }
|
||||
.btn:disabled { opacity: .45; cursor: not-allowed; }
|
||||
.btn-primary { background: var(--team-a); border-color: var(--team-a); color: #06201f; }
|
||||
.btn-primary:hover:not(:disabled) { background: #5ad6d0; border-color: #5ad6d0; }
|
||||
.btn-danger { background: var(--error); border-color: var(--error); color: #2a0606; }
|
||||
.btn-ct { background: color-mix(in srgb, var(--ct) 22%, var(--surface)); border-color: var(--ct); }
|
||||
.btn-t { background: color-mix(in srgb, var(--t) 22%, var(--surface)); border-color: var(--t); }
|
||||
.btn-ghost { background: transparent; }
|
||||
.btn-sm { padding: 5px 12px; font-size: .875rem; }
|
||||
.btn-lg { padding: 13px 22px; font-size: 1.0625rem; }
|
||||
.btn.danger, .link-btn.danger { color: var(--error); }
|
||||
.link-btn { background: none; border: 0; padding: 0; color: var(--ct); font: inherit; font-size: .875rem; cursor: pointer; }
|
||||
.link-btn:disabled { opacity: .5; cursor: not-allowed; }
|
||||
|
||||
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
|
||||
.field > span { font-weight: 600; font-size: .9375rem; }
|
||||
input, select {
|
||||
font: inherit; color: var(--text); background: var(--bg);
|
||||
border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 10px 12px; min-width: 0;
|
||||
}
|
||||
input:focus, select:focus { border-color: var(--ct); outline: none; }
|
||||
.hint { color: var(--muted); font-size: .8125rem; }
|
||||
.field-error { color: var(--error); font-size: .875rem; margin-top: 6px; }
|
||||
.row { display: flex; gap: 10px; flex-wrap: wrap; }
|
||||
|
||||
.alert { border: 1px solid var(--line-strong); background: var(--surface); padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px; }
|
||||
.alert-error { border-color: var(--error); color: #ffc9c7; }
|
||||
.alert-demo { border-color: color-mix(in srgb, var(--demo) 55%, transparent); background: color-mix(in srgb, var(--demo) 9%, var(--surface)); color: #ded3ff; font-size: .875rem; }
|
||||
|
||||
.empty { text-align: center; padding: 80px 16px; }
|
||||
|
||||
/* ---------- Übersicht ---------- */
|
||||
.overview-head { display: flex; gap: 32px; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; margin-bottom: 40px; }
|
||||
.code-entry { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; width: min(100%, 380px); }
|
||||
.code-entry label { display: block; font-weight: 600; margin-bottom: 8px; }
|
||||
.code-entry input { flex: 1; text-transform: uppercase; letter-spacing: .08em; }
|
||||
.groups { display: grid; gap: 40px; }
|
||||
.group h2 { display: flex; align-items: baseline; gap: 10px; }
|
||||
.count { font: 500 .9375rem var(--body); color: var(--muted); }
|
||||
.match-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
|
||||
.match-row {
|
||||
display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; justify-content: space-between;
|
||||
padding: 14px 4px; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none;
|
||||
}
|
||||
.match-row:hover { background: var(--surface); }
|
||||
.match-row-teams { font: 600 1.375rem var(--display); display: flex; gap: 10px; align-items: baseline; }
|
||||
.vs { color: var(--muted); font: 500 .9375rem var(--body); }
|
||||
.vs.big { font-size: 1.25rem; align-self: center; }
|
||||
.match-row-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .875rem; color: var(--muted); }
|
||||
.mine { color: var(--team-a); }
|
||||
.group-closed .match-row-teams { opacity: .7; }
|
||||
|
||||
/* ---------- Match erstellen ---------- */
|
||||
.create, .join-card { max-width: 720px; }
|
||||
.create-teams { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: end; }
|
||||
.team-field-a input { border-left: 4px solid var(--team-a); }
|
||||
.team-field-b input { border-left: 4px solid var(--team-b); }
|
||||
.choice { border: 0; padding: 0; margin: 8px 0 22px; }
|
||||
.choice legend { font-weight: 600; margin-bottom: 8px; }
|
||||
.choice-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
|
||||
.choice-card {
|
||||
position: relative; display: flex; flex-direction: column; gap: 2px;
|
||||
padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); cursor: pointer;
|
||||
}
|
||||
.choice-card input { position: absolute; opacity: 0; pointer-events: none; }
|
||||
.choice-card strong { font: 600 1.375rem var(--display); }
|
||||
.choice-card span { color: var(--muted); font-size: .875rem; }
|
||||
.choice-card small { color: var(--muted); }
|
||||
.choice-card.is-on { border-color: var(--team-a); box-shadow: inset 0 0 0 1px var(--team-a); }
|
||||
.choice-card.is-off { opacity: .45; cursor: not-allowed; }
|
||||
.choice-card:has(input:focus-visible) { outline: 2px solid var(--ct); outline-offset: 2px; }
|
||||
.flow-preview { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; padding: 0; margin: 12px 0 0; }
|
||||
.flow-step { font-size: .75rem; padding: 3px 8px; border-radius: 3px; background: var(--surface-2); display: flex; flex-direction: column; line-height: 1.2; }
|
||||
.flow-step small { color: var(--muted); font-size: .6875rem; }
|
||||
.flow-ban { box-shadow: inset 0 -2px 0 var(--error); }
|
||||
.flow-pick { box-shadow: inset 0 -2px 0 var(--ok); }
|
||||
.flow-decider { box-shadow: inset 0 -2px 0 var(--text); }
|
||||
|
||||
.join-card { margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--team-a); padding: 28px; border-radius: var(--radius); }
|
||||
.join-card.team-B { border-top-color: var(--team-b); }
|
||||
|
||||
/* ---------- Match-Seite ---------- */
|
||||
.match-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 40px; align-items: flex-end; margin-bottom: 28px; }
|
||||
.versus h1 { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1em .4em; font-size: clamp(2.25rem, 5.5vw, 4rem); font-weight: 700; margin: 0; }
|
||||
.match-facts { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 0; }
|
||||
.match-facts dt { color: var(--muted); font-size: .8125rem; }
|
||||
.match-facts dd { margin: 0; font-weight: 600; }
|
||||
|
||||
.match-grid { display: grid; grid-template-columns: minmax(220px, 280px) minmax(0, 1fr) minmax(220px, 280px); gap: 20px; align-items: start; }
|
||||
.stage { min-width: 0; }
|
||||
.stage-note { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
|
||||
.stage-note .btn { margin: 8px 0 20px; }
|
||||
.pool-preview { display: flex; flex-wrap: wrap; gap: 6px; }
|
||||
.pool-chip { padding: 4px 10px; border-left: 3px solid var(--map); background: var(--surface-2); font-size: .875rem; border-radius: 3px; }
|
||||
|
||||
.team-card { --team: var(--team-a); background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--team); border-radius: var(--radius); padding: 16px; }
|
||||
.team-card.team-B { --team: var(--team-b); }
|
||||
.team-card header { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
|
||||
.team-card h2 { color: var(--team); font-size: 1.625rem; margin: 0 0 10px; overflow-wrap: anywhere; }
|
||||
.ready-state { font-size: .8125rem; color: var(--muted); white-space: nowrap; }
|
||||
.ready-state.on { color: var(--ok); font-weight: 600; }
|
||||
.roster { list-style: none; padding: 0; margin: 0 0 12px; }
|
||||
.roster li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
|
||||
.roster li.is-you .nick { color: var(--team); }
|
||||
.nick { font-weight: 600; flex: 1; min-width: 0; overflow-wrap: anywhere; }
|
||||
.nick small { font-weight: 400; color: var(--muted); }
|
||||
.presence { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); flex: none; }
|
||||
.presence.on { background: var(--ok); }
|
||||
.captain { font-size: .75rem; padding: 1px 6px; border: 1px solid var(--team); color: var(--team); border-radius: 3px; }
|
||||
.ready-dot { font-size: .75rem; color: var(--muted); }
|
||||
.ready-dot.on { color: var(--ok); }
|
||||
.row-actions { flex-basis: 100%; display: flex; gap: 14px; padding-left: 16px; }
|
||||
.slot-empty { color: var(--muted); font-style: italic; font-size: .9375rem; border-bottom-style: dashed !important; }
|
||||
.team-actions { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
|
||||
.team-card.is-ready { box-shadow: 0 0 0 1px color-mix(in srgb, var(--team) 35%, transparent); }
|
||||
|
||||
/* ---------- Veto ---------- */
|
||||
.veto { display: grid; gap: 16px; }
|
||||
.turn {
|
||||
--team: var(--team-a);
|
||||
display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-items: baseline;
|
||||
padding: 14px 18px; background: color-mix(in srgb, var(--team) 10%, var(--surface));
|
||||
border-left: 4px solid var(--team); border-radius: var(--radius);
|
||||
}
|
||||
.turn-B { --team: var(--team-b); }
|
||||
.turn-team { font: 700 1.75rem var(--display); color: var(--team); }
|
||||
.turn-action { font: 600 1.375rem var(--display); }
|
||||
.turn-hint { grid-column: 1 / -1; color: var(--muted); font-size: .9375rem; }
|
||||
.turn.is-you { box-shadow: 0 0 0 1px var(--team); }
|
||||
.turn.is-you .turn-hint { color: var(--text); font-weight: 600; }
|
||||
.turn-done { font: 600 1.375rem var(--display); --team: var(--ok); }
|
||||
|
||||
.map-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
|
||||
.map-tile {
|
||||
--by: var(--line-strong);
|
||||
position: relative; display: flex; flex-direction: column; justify-content: flex-end; text-align: left;
|
||||
aspect-ratio: 4 / 3; padding: 12px; border: 0; color: var(--text); font: inherit; cursor: default;
|
||||
background: var(--surface-2);
|
||||
clip-path: polygon(0 0, calc(100% - var(--chamfer)) 0, 100% var(--chamfer), 100% 100%, var(--chamfer) 100%, 0 calc(100% - var(--chamfer)));
|
||||
transition: transform .15s, filter .25s;
|
||||
}
|
||||
.map-tile.by-A { --by: var(--team-a); }
|
||||
.map-tile.by-B { --by: var(--team-b); }
|
||||
.map-art {
|
||||
position: absolute; inset: 0; z-index: 0;
|
||||
background:
|
||||
repeating-linear-gradient(135deg, transparent 0 9px, color-mix(in srgb, var(--map) 16%, transparent) 9px 10px),
|
||||
radial-gradient(120% 90% at 85% 0%, color-mix(in srgb, var(--map) 70%, transparent), transparent 60%),
|
||||
linear-gradient(180deg, color-mix(in srgb, var(--map) 35%, var(--surface-2)), var(--surface) 85%);
|
||||
}
|
||||
.map-name, .map-status { position: relative; z-index: 1; }
|
||||
.map-name { font: 700 1.625rem/1 var(--display); text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }
|
||||
.map-status { font-size: .8125rem; color: color-mix(in srgb, var(--text) 75%, transparent); margin-top: 4px; }
|
||||
.map-tile:not(:disabled) { cursor: pointer; }
|
||||
.map-tile:not(:disabled):hover { transform: translateY(-2px); }
|
||||
.map-tile:focus-visible { outline: none; }
|
||||
.map-tile:focus-visible::after { content: ''; position: absolute; inset: 0; z-index: 3; box-shadow: inset 0 0 0 3px var(--ct); }
|
||||
|
||||
/* Gebannt: entsättigt, mit diagonalem Strich in der Farbe des bannenden Teams */
|
||||
.map-tile.status-banned { filter: grayscale(.9) brightness(.6); }
|
||||
.map-tile.status-banned::after {
|
||||
content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
|
||||
background: linear-gradient(to top right, transparent calc(50% - 3px), var(--by) calc(50% - 3px), var(--by) calc(50% + 3px), transparent calc(50% + 3px));
|
||||
}
|
||||
.map-tile.status-banned .map-status { color: var(--text); }
|
||||
/* Gewählt, Entscheidungsmap, Auswahl: Rahmen als Overlay über dem Map-Bild */
|
||||
.map-tile.status-picked::after, .map-tile.status-decider::after, .map-tile.is-selected::after, .map-tile.is-side::after {
|
||||
content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
|
||||
box-shadow: inset 0 0 0 3px var(--frame, var(--by));
|
||||
}
|
||||
.map-tile.status-picked .map-status { color: var(--by); font-weight: 600; }
|
||||
.map-tile.status-decider { --by: var(--text); }
|
||||
.map-tile.status-decider .map-status { font-weight: 600; }
|
||||
.map-tile.is-selected { transform: translateY(-2px); }
|
||||
.map-tile.is-selected.sel-ban { --frame: var(--error); }
|
||||
.map-tile.is-selected.sel-pick { --frame: var(--ok); }
|
||||
.map-tile.is-side::after { animation: side-pulse 1.6s ease-in-out infinite; }
|
||||
@keyframes side-pulse { 50% { box-shadow: inset 0 0 0 3px var(--pending); } }
|
||||
|
||||
.veto-confirm .btn { width: 100%; }
|
||||
.side-choice { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
|
||||
.side-choice .btn { flex: 1; }
|
||||
|
||||
.step-track { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; padding: 0; margin: 0; }
|
||||
.step {
|
||||
--team: var(--muted);
|
||||
font-size: .75rem; padding: 4px 8px; border-radius: 3px; background: var(--surface);
|
||||
border-bottom: 2px solid color-mix(in srgb, var(--team) 45%, transparent); color: var(--muted);
|
||||
}
|
||||
.step-A { --team: var(--team-a); }
|
||||
.step-B { --team: var(--team-b); }
|
||||
.step.done { color: var(--text); background: var(--surface-2); border-bottom-color: var(--team); }
|
||||
.step.now { color: var(--bg); background: var(--team); border-bottom-color: var(--team); font-weight: 600; }
|
||||
.step-decider.now, .step-decider.done { --team: var(--text); }
|
||||
|
||||
.veto-history { list-style: none; padding: 0; margin: 0; font-size: .9375rem; border-top: 1px solid var(--line); }
|
||||
.veto-history li { padding: 6px 0 6px 12px; border-bottom: 1px solid var(--line); border-left: 3px solid transparent; }
|
||||
.veto-history li.hist-A { border-left-color: var(--team-a); }
|
||||
.veto-history li.hist-B { border-left-color: var(--team-b); }
|
||||
.veto-history time, .event-log time { color: var(--muted); font-size: .8125rem; margin-right: 8px; font-variant-numeric: tabular-nums; }
|
||||
.veto-compact .map-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
|
||||
.veto-compact .map-tile { aspect-ratio: 16 / 9; padding: 8px; --chamfer: 10px; }
|
||||
.veto-compact .map-name { font-size: 1.125rem; }
|
||||
|
||||
/* ---------- Serie ---------- */
|
||||
.series { margin-bottom: 20px; }
|
||||
.series-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
|
||||
.series-item {
|
||||
display: grid; grid-template-columns: auto 1fr auto; gap: 2px 16px; align-items: baseline;
|
||||
padding: 14px 16px; background: var(--surface); border-left: 4px solid var(--map); border-radius: var(--radius);
|
||||
}
|
||||
.series-no { color: var(--muted); font-size: .875rem; }
|
||||
.series-map { font: 700 1.625rem var(--display); }
|
||||
.series-status { font-size: .875rem; color: var(--muted); text-align: right; grid-column: 3; grid-row: 1; }
|
||||
.series-origin, .series-sides { grid-column: 2 / -1; font-size: .875rem; color: var(--muted); }
|
||||
.series-item.is-live { box-shadow: inset 0 0 0 1px var(--map); }
|
||||
.series-item.is-live .series-status, .series-item.is-next .series-status { color: var(--pending); font-weight: 600; }
|
||||
.series-item.is-done { opacity: .6; }
|
||||
.side-ct { color: var(--ct); }
|
||||
.side-t { color: var(--t); margin-left: 12px; }
|
||||
|
||||
/* ---------- Panels unten ---------- */
|
||||
.match-lower { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 28px; align-items: start; }
|
||||
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; min-width: 0; }
|
||||
.server-status { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; font-size: 1.0625rem; }
|
||||
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: currentColor; flex: none; }
|
||||
.status-dot.pulse { animation: pulse 1.2s ease-in-out infinite; }
|
||||
@keyframes pulse { 50% { opacity: .3; } }
|
||||
.tone-border-error { border-color: color-mix(in srgb, var(--error) 60%, transparent); }
|
||||
.connect { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; justify-items: start; }
|
||||
.connect .copy-field { width: 100%; }
|
||||
.org-controls { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
|
||||
|
||||
.copy-field { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
|
||||
.copy-label { font-size: .8125rem; color: var(--muted); }
|
||||
.copy-row { display: flex; gap: 8px; align-items: center; }
|
||||
.copy-row code { flex: 1; min-width: 0; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 10px; overflow-x: auto; white-space: nowrap; }
|
||||
.copy-row code.blurred { filter: blur(5px); cursor: pointer; user-select: none; }
|
||||
|
||||
.invite { padding: 12px 0; border-top: 1px solid var(--line); border-left: 3px solid transparent; padding-left: 12px; }
|
||||
.invite.team-A { border-left-color: var(--team-a); }
|
||||
.invite.team-B { border-left-color: var(--team-b); }
|
||||
.invite.spectator { border-left-color: var(--muted); }
|
||||
.invite-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin-bottom: 6px; }
|
||||
.invite-code { font: 600 1.125rem var(--display); letter-spacing: .1em; }
|
||||
.invite-head .link-btn { margin-left: auto; }
|
||||
.org-link { margin-top: 12px; }
|
||||
.org-link summary { cursor: pointer; color: var(--muted); font-size: .875rem; }
|
||||
|
||||
.event-log ol { list-style: none; padding: 0; margin: 0; max-height: 360px; overflow-y: auto; font-size: .875rem; }
|
||||
.event-log li { display: flex; gap: 4px; padding: 5px 0; border-bottom: 1px solid var(--line); }
|
||||
.event-log li.ev-server span { color: color-mix(in srgb, var(--text) 80%, var(--ct)); }
|
||||
|
||||
.toast {
|
||||
position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 50;
|
||||
padding: 12px 18px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line-strong);
|
||||
max-width: min(560px, calc(100vw - 32px)); box-shadow: 0 8px 30px rgba(0, 0, 0, .45);
|
||||
}
|
||||
.toast-error { border-color: var(--error); }
|
||||
.toast-ok { border-color: var(--ok); }
|
||||
.reconnect { background: var(--pending); color: #2a2000; padding: 8px 14px; border-radius: var(--radius); margin-bottom: 16px; font-weight: 600; }
|
||||
|
||||
/* ---------- Responsiv ---------- */
|
||||
@media (max-width: 1040px) {
|
||||
.match-grid { grid-template-columns: 1fr 1fr; }
|
||||
.stage { grid-column: 1 / -1; grid-row: 1; }
|
||||
}
|
||||
@media (max-width: 640px) {
|
||||
.match-grid { grid-template-columns: 1fr; }
|
||||
.topbar { flex-wrap: wrap; gap: 8px 16px; }
|
||||
.demo-flag { order: 3; }
|
||||
.create-teams { grid-template-columns: 1fr; }
|
||||
.vs.big { justify-self: center; }
|
||||
.map-grid { grid-template-columns: repeat(2, 1fr); }
|
||||
.series-item { grid-template-columns: 1fr auto; }
|
||||
.series-no { grid-column: 1 / -1; }
|
||||
.series-status { grid-column: 2; grid-row: 2; }
|
||||
.series-origin, .series-sides { grid-column: 1 / -1; }
|
||||
}
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
*, *::before, *::after { animation: none !important; transition: none !important; }
|
||||
}
|
||||
Reference in new issue
Block a user