Codes are exchanged by copy and paste again. The URL fragment intake, the invitation dialog, the BroadcastChannel answer relay and the Share link / Copy link controls are gone, along with their tests, browser check scenarios and design doc. Code fields no longer accept links. The compressed HC1 codes with typed offers/answers and echoed refs stay. An optional signaling backend is the intended way to simplify the exchange instead. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
368 lines
13 KiB
CSS
368 lines
13 KiB
CSS
:root {
|
|
color-scheme: dark;
|
|
--bg: #0f1117;
|
|
--panel: #181b24;
|
|
--border: #2a2f3d;
|
|
--accent: #ff9b3d;
|
|
--accent-soft: rgba(255, 155, 61, 0.15);
|
|
--text: #e8eaf0;
|
|
--muted: #a0a7b8;
|
|
--space-sm: 0.6rem;
|
|
--space-md: 0.9rem;
|
|
--space-lg: 1.25rem;
|
|
--space-xl: 1.5rem;
|
|
--space-2xl: 2rem;
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
margin: 0;
|
|
background: var(--bg);
|
|
color: var(--text);
|
|
font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
|
|
}
|
|
|
|
#app { height: 100dvh; min-height: 420px; }
|
|
|
|
.skip-link {
|
|
position: absolute;
|
|
left: 0.9rem;
|
|
top: 0.5rem;
|
|
transform: translateY(-200%);
|
|
z-index: 10;
|
|
padding: 0.55rem 0.8rem;
|
|
border-radius: 8px;
|
|
background: var(--accent);
|
|
color: var(--bg);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.skip-link:focus {
|
|
transform: none;
|
|
}
|
|
|
|
.panel {
|
|
width: 100%;
|
|
background: var(--panel);
|
|
border: 1px solid var(--border);
|
|
border-radius: 12px;
|
|
padding: var(--space-lg);
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-md);
|
|
}
|
|
|
|
h1 {
|
|
margin: 0;
|
|
font-family: ui-monospace, 'Cascadia Code', monospace;
|
|
}
|
|
|
|
.subtitle {
|
|
color: var(--muted);
|
|
margin: 0 0 1.5rem;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.tabs {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
margin-bottom: 1rem;
|
|
width: 100%;
|
|
}
|
|
|
|
.tabs button {
|
|
flex: 1;
|
|
}
|
|
|
|
button {
|
|
background: var(--panel);
|
|
color: var(--text);
|
|
border: 1px solid var(--border);
|
|
border-radius: 8px;
|
|
padding: 0.55rem 1rem;
|
|
font-size: 1rem;
|
|
cursor: pointer;
|
|
}
|
|
|
|
button:hover:not(:disabled) {
|
|
border-color: var(--accent);
|
|
}
|
|
|
|
:where(a, button, input, select, textarea):focus-visible {
|
|
outline: 2px solid var(--accent);
|
|
outline-offset: 2px;
|
|
}
|
|
|
|
button.primary {
|
|
background: var(--accent);
|
|
border-color: var(--accent);
|
|
color: var(--bg);
|
|
font-weight: 600;
|
|
}
|
|
|
|
button:disabled {
|
|
opacity: 0.45;
|
|
cursor: default;
|
|
}
|
|
|
|
.tabs button.active {
|
|
background: var(--accent);
|
|
border-color: var(--accent);
|
|
color: var(--bg);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.step {
|
|
margin: 0;
|
|
font-size: 0.8rem;
|
|
font-weight: 700;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.06em;
|
|
color: var(--muted);
|
|
}
|
|
|
|
textarea {
|
|
width: 100%;
|
|
min-height: 90px;
|
|
resize: vertical;
|
|
background: var(--bg);
|
|
color: var(--text);
|
|
border: 1px solid var(--border);
|
|
border-radius: 8px;
|
|
padding: 0.6rem;
|
|
font-family: ui-monospace, monospace;
|
|
font-size: 0.75rem;
|
|
word-break: break-all;
|
|
}
|
|
|
|
.dropzone {
|
|
border: 2px dashed var(--border);
|
|
border-radius: 10px;
|
|
padding: 2rem;
|
|
text-align: center;
|
|
color: var(--muted);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.dropzone.dragover {
|
|
border-color: var(--accent);
|
|
background: var(--accent-soft);
|
|
}
|
|
|
|
.progress {
|
|
height: 10px;
|
|
background: var(--bg);
|
|
border-radius: 6px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.progress > div {
|
|
height: 100%;
|
|
background: var(--accent);
|
|
transition: width 0.15s linear;
|
|
}
|
|
|
|
.status {
|
|
color: var(--muted);
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
.error {
|
|
color: #ff6b5e;
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
.file-chip {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
gap: 1rem;
|
|
background: var(--bg);
|
|
border: 1px solid var(--border);
|
|
border-radius: 8px;
|
|
padding: 0.6rem 0.9rem;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
a.download {
|
|
color: var(--accent);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.fingerprint {
|
|
background: var(--bg);
|
|
border: 1px solid var(--border);
|
|
border-radius: 8px;
|
|
padding: 0.75rem 0.9rem;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.4rem;
|
|
}
|
|
|
|
.fp-row {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
gap: 1rem;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.fp-row code {
|
|
font-family: ui-monospace, monospace;
|
|
color: var(--accent);
|
|
letter-spacing: 0.12em;
|
|
}
|
|
|
|
.fingerprint .status {
|
|
margin: 0.2rem 0 0;
|
|
}
|
|
|
|
.stun-select,
|
|
.stun-input {
|
|
width: 100%;
|
|
background: var(--bg);
|
|
color: var(--text);
|
|
border: 1px solid var(--border);
|
|
border-radius: 8px;
|
|
padding: 0.55rem 0.75rem;
|
|
font-size: 0.95rem;
|
|
font-family: inherit;
|
|
}
|
|
|
|
.stun-input {
|
|
font-family: ui-monospace, monospace;
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
.stun-select:focus,
|
|
.stun-input:focus {
|
|
border-color: var(--accent);
|
|
}
|
|
|
|
p.stun-hint {
|
|
margin: -0.35rem 0 0;
|
|
font-size: 0.78rem;
|
|
}
|
|
|
|
.network-settings {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-sm);
|
|
border: 1px solid var(--border);
|
|
border-radius: 8px;
|
|
min-width: 0;
|
|
padding: var(--space-sm) var(--space-md) var(--space-md);
|
|
}
|
|
.network-settings legend { color: var(--muted); }
|
|
.checkbox { display: flex; align-items: start; gap: var(--space-sm); }
|
|
.fp-row { flex-direction: column; align-items: start; }
|
|
.fp-row code { overflow-wrap: anywhere; line-height: 1.7; font-size: 0.8rem; }
|
|
.file-chip span { overflow-wrap: anywhere; min-width: 0; }
|
|
.incoming { display: flex; flex-direction: column; gap: 0.7rem; overflow-wrap: anywhere; }
|
|
|
|
.transfer-section { display: flex; flex-direction: column; gap: var(--space-md); scroll-margin-top: 1rem; min-width: 0; }
|
|
.transfer-section:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: 4px; }
|
|
|
|
.device-settings { display: flex; flex-direction: column; gap: var(--space-sm); min-width: 0; border: 1px solid var(--border); border-radius: 8px; padding: var(--space-sm) var(--space-md) var(--space-md); }
|
|
.config-details > :not(summary) { margin-block: var(--space-sm) 0; }
|
|
.config-details fieldset .status { margin-block: 0; line-height: 1.5; }
|
|
.device-settings input:not([type=checkbox]) { box-sizing: border-box; max-width: 100%; padding: 0.6rem; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 6px; }
|
|
|
|
/* The connection shell stays in place while each workspace scrolls. */
|
|
.app-shell { display: grid; grid-template-columns: 264px minmax(0, 1fr); height: 100%; }
|
|
.sidebar { display: flex; flex-direction: column; gap: var(--space-lg); background: #13161e; border-right: 1px solid var(--border); padding: 1.6rem 1rem 1rem; min-height: 0; overflow-y: auto; }
|
|
.brand { display: flex; align-items: center; gap: 0.8rem; padding: 0 0.5rem var(--space-lg); }
|
|
.brand img { object-fit: contain; }
|
|
.brand-name { display: block; font-family: ui-monospace, monospace; font-weight: 700; font-size: 1.45rem; letter-spacing: -0.05em; }
|
|
.brand p { font-size: 0.75rem; color: var(--muted); margin: 0.25rem 0 0; }
|
|
.sidebar-section-heading { display: flex; align-items: center; justify-content: space-between; padding: 0 0.65rem; }
|
|
.sidebar-section-heading h2 { text-transform: uppercase; font-size: 0.68rem; letter-spacing: 0.12em; color: var(--muted); margin: 0; font-weight: 650; }
|
|
.sidebar-section-heading > span { font-size: 0.72rem; color: var(--muted); }
|
|
.connection-nav { display: flex; flex-direction: column; gap: 0.35rem; }
|
|
.connection-item { position: relative; border: 1px solid transparent; border-radius: 9px; }
|
|
.connection-item.selected { background: var(--accent-soft); border-color: #65472e; }
|
|
.connection-link, .connection-edit { display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 0.4rem; min-width: 0; width: 100%; min-height: 64px; padding: 0.55rem 4.2rem 0.55rem 0.7rem; }
|
|
.connection-link { text-align: left; background: transparent; border: 0; border-radius: 8px; }
|
|
.connection-link:hover:not(:disabled) { background: #ffffff08; }
|
|
.connection-edit { padding-right: 2.4rem; }
|
|
.connection-name { color: var(--text); font-size: 0.87rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
.connection-status-line { display: flex; align-items: center; gap: 0.45rem; min-width: 0; color: var(--muted); font-size: 0.72rem; }
|
|
.connection-status { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
.connection-action { position: absolute; top: 0.45rem; display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; background: transparent; color: var(--muted); font-size: 0.9rem; }
|
|
.connection-action:hover:not(:disabled), .connection-action:focus-visible { color: var(--accent); }
|
|
.edit-action { right: 2.25rem; }
|
|
.remove-action { right: 0.35rem; }
|
|
.remove-action:hover:not(:disabled), .remove-action:focus-visible { color: #ff9185; }
|
|
.connection-rename-input { width: 100%; min-width: 0; border: 1px solid var(--accent); border-radius: 6px; padding: 0.28rem 0.35rem; background: var(--bg); color: var(--text); font: inherit; font-size: 0.87rem; font-weight: 600; }
|
|
.connection-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #7c8495; flex-shrink: 0; }
|
|
.connection-dot.connected { background: #69d6a4; }
|
|
.connection-dot.connecting { background: var(--accent); }
|
|
.add-connection { display: flex; align-items: center; justify-content: center; gap: 0.5rem; font-size: 0.82rem; background: transparent; border-style: dashed; }
|
|
.add-connection > span { font-size: 1.1rem; }
|
|
.sidebar-footer { margin-top: auto; padding: var(--space-xl) 0.65rem 0.25rem; color: var(--muted); font-size: 0.72rem; line-height: 1.65; }
|
|
.sidebar-tag { font-weight: 600; color: var(--text); }
|
|
.sidebar-footer p { margin: 0.5rem 0 1rem; }
|
|
.source-link { display: inline-flex; align-items: center; gap: 0.35rem; margin-top: 0.4rem; color: var(--muted); text-decoration: none; }
|
|
.source-link:hover { color: var(--text); }
|
|
.source-link img { filter: grayscale(1); opacity: 0.6; }
|
|
.source-link:hover img { opacity: 0.9; }
|
|
summary { cursor: pointer; color: var(--muted); font-size: 0.83rem; padding: 0.4rem 0; }
|
|
summary:hover { color: var(--text); }
|
|
summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
|
|
.privacy-details summary { font-size: 0.72rem; }
|
|
.main-pane { min-width: 0; min-height: 0; display: flex; flex-direction: column; }
|
|
.workspace-scroll { flex: 1; overflow-y: auto; padding: var(--space-2xl) 2.25rem; }
|
|
.connection-workspace { width: 100%; max-width: 720px; min-width: 0; margin-inline: auto; }
|
|
.workspace-intro { margin-bottom: 1.4rem; }
|
|
.workspace-intro h2 { font-size: 1.05rem; font-weight: 600; margin: 0 0 0.4rem; }
|
|
.workspace-intro p { font-size: 0.85rem; color: var(--muted); line-height: 1.6; margin: 0; }
|
|
.tabs { width: fit-content; padding: 4px; gap: 4px; background: #1b1f2a; border: 1px solid var(--border); border-radius: 10px; }
|
|
.tabs button { padding: 0.45rem var(--space-xl); font-size: 0.85rem; border: none; background: transparent; }
|
|
.tabs button.active { background: #3e3025; color: #ffb575; }
|
|
.panel { box-shadow: 0 6px 28px #00000012; }
|
|
.panel > .status { line-height: 1.6; margin: 0.1rem 0; }
|
|
.panel > button { align-self: start; font-size: 0.88rem; }
|
|
.dropzone { padding: 1.35rem 1rem; background: #141720; border-color: #414858; }
|
|
.dropzone p { font-size: 0.85rem; line-height: 1.65; margin: 0 0 1rem; }
|
|
input[type=file] { max-width: 100%; font-size: 0.8rem; }
|
|
input[type=file]::file-selector-button { border: 1px solid #505667; border-radius: 6px; padding: 0.45rem 0.65rem; margin-right: 0.6rem; background: #242a36; color: var(--text); cursor: pointer; }
|
|
.session-actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
|
|
.session-actions button { font-size: 0.88rem; }
|
|
.storage-error { color: #ffb4a9; background: #422725; border: 1px solid #8e5147; border-radius: 8px; padding: 1rem; font-size: 0.85rem; line-height: 1.6; }
|
|
.mobile-bar { display: none; }
|
|
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
|
|
@media (max-width: 1150px) {
|
|
.app-shell { grid-template-columns: 230px minmax(0, 1fr); }
|
|
.workspace-scroll { padding: var(--space-xl); }
|
|
}
|
|
@media (max-width: 700px) {
|
|
#app { height: auto; min-height: 100dvh; }
|
|
.app-shell { display: flex; flex-direction: column; min-height: 100dvh; }
|
|
.sidebar { display: none; border-right: 0; border-bottom: 1px solid var(--border); max-height: 60dvh; }
|
|
.sidebar-open .sidebar { display: flex; }
|
|
.brand { padding-bottom: 0; }
|
|
.sidebar-footer { padding-top: 0; }
|
|
.mobile-bar { display: flex; align-items: center; gap: 0.75rem; margin: 0.75rem 1rem 0; }
|
|
.mobile-current { display: flex; flex-direction: column; gap: 0.3rem; flex: 1; min-width: 0; }
|
|
.mobile-current-name { font-size: 0.95rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
.mobile-current-status { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
.sidebar-toggle { flex-shrink: 0; margin-left: auto; font-size: 0.8rem; background: transparent; padding: 0.5rem; }
|
|
.workspace-scroll { padding: var(--space-lg) 1rem; overflow: visible; }
|
|
.panel { padding: 1rem; }
|
|
}
|
|
.app-dialog { width: min(460px, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); margin: auto; padding: 1.5rem; border: 1px solid #414858; border-radius: 14px; color: var(--text); background: var(--panel); box-shadow: 0 24px 100px #0009; overflow-y: auto; }
|
|
.app-dialog::backdrop { background: #080b12b8; backdrop-filter: blur(4px); }
|
|
.dialog-header { display: flex; align-items: start; justify-content: space-between; gap: 1rem; }
|
|
.dialog-header h2 { margin: 0; font-size: 1.15rem; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
|
|
.dialog-close { flex-shrink: 0; border-color: transparent; background: transparent; color: var(--muted); padding: 0 0.4rem; font-size: 1.4rem; line-height: 1.2; }
|
|
.dialog-body { color: var(--muted); font-size: 0.88rem; line-height: 1.7; margin-block: 1rem 1.5rem; }
|
|
.dialog-body p { margin: 0.75rem 0; }
|
|
.dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.6rem; }
|
|
.dialog-actions button { font-size: 0.85rem; }
|
|
button.danger { border-color: #b84d42; background: #672f2b; color: #ffe3df; }
|
|
button.danger:hover:not(:disabled) { border-color: #ff9185; background: #813b34; }
|
|
@media (max-width: 700px) { .app-dialog { padding: 1.2rem; } }
|