265 lines
4.2 KiB
CSS
265 lines
4.2 KiB
CSS
:root {
|
|
color-scheme: dark;
|
|
font-family:
|
|
Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
background: #101214;
|
|
color: #f2f4f7;
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
margin: 0;
|
|
min-height: 100vh;
|
|
background:
|
|
linear-gradient(135deg, rgba(46, 125, 50, 0.16), transparent 35%),
|
|
linear-gradient(315deg, rgba(3, 169, 244, 0.16), transparent 34%),
|
|
#101214;
|
|
}
|
|
|
|
button,
|
|
input {
|
|
font: inherit;
|
|
}
|
|
|
|
.app-shell {
|
|
display: grid;
|
|
grid-template-rows: auto 1fr auto;
|
|
min-height: 100vh;
|
|
min-height: 100dvh;
|
|
}
|
|
|
|
.topbar,
|
|
.controls {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 16px;
|
|
padding: 18px 24px;
|
|
}
|
|
|
|
.topbar {
|
|
border-bottom: 1px solid rgba(255, 255, 255, 0.12);
|
|
}
|
|
|
|
h1,
|
|
p {
|
|
margin: 0;
|
|
}
|
|
|
|
h1 {
|
|
font-size: 22px;
|
|
font-weight: 700;
|
|
letter-spacing: 0;
|
|
}
|
|
|
|
#status {
|
|
margin-top: 4px;
|
|
color: #aeb7c3;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.name-form {
|
|
display: flex;
|
|
gap: 10px;
|
|
}
|
|
|
|
input {
|
|
width: min(42vw, 260px);
|
|
height: 42px;
|
|
border: 1px solid rgba(255, 255, 255, 0.16);
|
|
border-radius: 8px;
|
|
background: rgba(255, 255, 255, 0.08);
|
|
color: #ffffff;
|
|
padding: 0 12px;
|
|
}
|
|
|
|
button {
|
|
min-width: 92px;
|
|
height: 42px;
|
|
border: 0;
|
|
border-radius: 8px;
|
|
background: #1f8f5f;
|
|
color: white;
|
|
cursor: pointer;
|
|
font-weight: 650;
|
|
}
|
|
|
|
button:hover {
|
|
filter: brightness(1.08);
|
|
}
|
|
|
|
button[aria-pressed="false"] {
|
|
background: #4a535f;
|
|
}
|
|
|
|
button.danger {
|
|
background: #c73838;
|
|
}
|
|
|
|
.stage {
|
|
display: grid;
|
|
min-height: 0;
|
|
padding: 18px 18px 12px;
|
|
}
|
|
|
|
.remote-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
|
|
grid-auto-rows: minmax(210px, 1fr);
|
|
gap: 14px;
|
|
align-content: stretch;
|
|
min-height: 100%;
|
|
}
|
|
|
|
.tile {
|
|
position: relative;
|
|
overflow: hidden;
|
|
min-height: 220px;
|
|
aspect-ratio: 16 / 10;
|
|
border-radius: 8px;
|
|
background: #1b2026;
|
|
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
}
|
|
|
|
.tile video {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
background: #171b20;
|
|
}
|
|
|
|
.tile span {
|
|
position: absolute;
|
|
left: 12px;
|
|
bottom: 12px;
|
|
max-width: calc(100% - 24px);
|
|
padding: 6px 9px;
|
|
border-radius: 6px;
|
|
background: rgba(0, 0, 0, 0.56);
|
|
color: #fff;
|
|
font-size: 13px;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.empty-stage {
|
|
display: grid;
|
|
place-items: center;
|
|
min-height: min(58vh, 560px);
|
|
border: 1px dashed rgba(255, 255, 255, 0.18);
|
|
border-radius: 8px;
|
|
background: rgba(255, 255, 255, 0.04);
|
|
color: #aeb7c3;
|
|
font-size: 15px;
|
|
}
|
|
|
|
.remote-grid:has(.tile) .empty-stage {
|
|
display: none;
|
|
}
|
|
|
|
.controls {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1fr) auto;
|
|
align-items: center;
|
|
justify-content: initial;
|
|
border-top: 1px solid rgba(255, 255, 255, 0.12);
|
|
background: rgba(16, 18, 20, 0.92);
|
|
}
|
|
|
|
.control-actions {
|
|
display: flex;
|
|
justify-content: center;
|
|
flex-wrap: wrap;
|
|
gap: 12px;
|
|
}
|
|
|
|
.control-actions button {
|
|
height: 48px;
|
|
min-width: 112px;
|
|
}
|
|
|
|
.self-preview {
|
|
position: relative;
|
|
overflow: hidden;
|
|
width: clamp(150px, 18vw, 240px);
|
|
aspect-ratio: 16 / 10;
|
|
border-radius: 8px;
|
|
background: #1b2026;
|
|
border: 1px solid rgba(255, 255, 255, 0.14);
|
|
box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
|
|
}
|
|
|
|
.self-preview video {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
background: #171b20;
|
|
}
|
|
|
|
.self-preview span {
|
|
position: absolute;
|
|
left: 10px;
|
|
bottom: 10px;
|
|
max-width: calc(100% - 20px);
|
|
padding: 5px 8px;
|
|
border-radius: 6px;
|
|
background: rgba(0, 0, 0, 0.58);
|
|
color: #fff;
|
|
font-size: 12px;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
@media (max-width: 680px) {
|
|
.topbar {
|
|
align-items: stretch;
|
|
flex-direction: column;
|
|
padding: 14px;
|
|
}
|
|
|
|
.name-form {
|
|
width: 100%;
|
|
}
|
|
|
|
input {
|
|
width: 100%;
|
|
}
|
|
|
|
button {
|
|
min-width: 76px;
|
|
}
|
|
|
|
.stage {
|
|
padding: 10px;
|
|
}
|
|
|
|
.remote-grid {
|
|
grid-template-columns: 1fr;
|
|
grid-auto-rows: minmax(190px, 1fr);
|
|
}
|
|
|
|
.controls {
|
|
grid-template-columns: 1fr;
|
|
gap: 12px;
|
|
padding: 12px;
|
|
}
|
|
|
|
.control-actions {
|
|
order: 2;
|
|
}
|
|
|
|
.control-actions button {
|
|
min-width: calc(50% - 6px);
|
|
}
|
|
|
|
.self-preview {
|
|
justify-self: end;
|
|
width: min(42vw, 180px);
|
|
}
|
|
}
|