Files
piik/native/sender/internal/app/ui/styles.css
T
AAA a560f54bcc feat(native): add WGC hardware H264 source (#109)
Adds the explicit Windows WGC/D3D11 hardware-only Media Foundation H.264 source, process-tree audio, direct Go/Pion fanout, source-aware UI/gate, and unique evaluation package helper. Browser VP8 remains the default. Local acceptance and bounded real-device evidence are recorded in the PR; GitHub jobs were billing-blocked before executing any step.
2026-08-21 05:37:29 +08:00

71 lines
4.0 KiB
CSS

:root {
color-scheme: dark;
font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
color: #f1f3f1;
background: #101310;
letter-spacing: 0;
--surface: #171b18;
--surface-raised: #1d221e;
--border: #343a35;
--muted: #a8afa9;
--green: #45d483;
--green-strong: #2fbd70;
--red: #ff9797;
}
* { box-sizing: border-box; }
html, body { min-width: 320px; min-height: 100%; margin: 0; }
body { min-height: 100vh; background: #101310; }
button, input, select { font: inherit; letter-spacing: 0; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.app-header {
display: flex;
min-height: 58px;
align-items: center;
justify-content: space-between;
padding: 9px clamp(16px, 3vw, 40px);
border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.brand-mark { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid #326645; border-radius: 6px; color: var(--green); background: #14271b; }
.status { color: var(--muted); font-size: 13px; }
main { display: grid; grid-template-columns: minmax(0, 1fr) 340px; width: min(1400px, 100%); min-height: calc(100vh - 58px); margin: 0 auto; }
.stage { min-width: 0; padding: 28px clamp(18px, 3vw, 42px) 40px; }
.stage-heading { display: flex; min-height: 58px; align-items: flex-start; justify-content: space-between; gap: 16px; }
h1 { margin: 0; font-size: 24px; }
.stage-heading p { margin: 7px 0 0; color: var(--muted); font-size: 13px; }
.preview-shell { position: relative; display: grid; width: 100%; margin-top: 18px; overflow: hidden; aspect-ratio: 16 / 9; place-items: center; border: 1px solid var(--border); border-radius: 6px; background: #080a08; }
video, canvas { display: block; width: 100%; height: 100%; object-fit: contain; }
.empty-state { position: absolute; color: var(--muted); font-size: 14px; }
.invite { display: grid; grid-template-columns: minmax(0, 1fr) 42px; gap: 8px; margin-top: 14px; }
.invite a { min-width: 0; overflow: hidden; padding: 11px 12px; border: 1px solid var(--border); border-radius: 6px; color: #c8f7d9; text-overflow: ellipsis; white-space: nowrap; }
.controls { display: grid; align-content: start; gap: 18px; padding: 32px 24px; border-left: 1px solid var(--border); background: var(--surface); }
label { display: grid; gap: 8px; color: var(--muted); font-size: 13px; }
input, select { width: 100%; min-width: 0; min-height: 44px; padding: 10px 11px; border: 1px solid var(--border); border-radius: 6px; color: #f1f3f1; background: #101310; }
.select-row { display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: 8px; }
.audio-note { margin: -8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.button, .icon-button { min-height: 44px; border: 1px solid transparent; border-radius: 6px; color: inherit; cursor: pointer; }
.button:disabled { cursor: not-allowed; opacity: .5; }
.primary { color: #07150c; font-weight: 700; background: var(--green); }
.primary:hover { background: var(--green-strong); }
.secondary, .icon-button { border-color: var(--border); background: var(--surface-raised); }
.icon-button { font-size: 20px; }
.notice { margin: -6px 0 0; color: #e9c979; font-size: 13px; line-height: 1.45; }
.error { min-height: 20px; margin: 0; color: var(--red); font-size: 13px; line-height: 1.45; }
details { border-top: 1px solid var(--border); padding-top: 16px; color: var(--muted); font-size: 13px; }
summary { cursor: pointer; }
dl { display: grid; gap: 10px; margin: 14px 0 0; }
dl div { display: flex; min-width: 0; align-items: flex-start; justify-content: space-between; gap: 12px; }
dt, dd { margin: 0; }
dt { flex: 0 0 auto; }
dd { min-width: 0; overflow-wrap: anywhere; color: #f1f3f1; text-align: right; }
@media (max-width: 820px) {
main { grid-template-columns: 1fr; }
.controls { grid-row: 1; border-right: 0; border-bottom: 1px solid var(--border); border-left: 0; }
.stage { padding-top: 22px; }
}