Files
HellCon/src/style.css
T

404 lines
16 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, .eyebrow { 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-link { display: flex; align-items: center; gap: 0.7rem; width: 100%; text-align: left; background: transparent; border: 1px solid transparent; padding: 0.75rem 0.6rem; border-radius: 9px; }
.connection-link.selected { background: var(--accent-soft); border-color: #65472e; }
.connection-avatar { flex: 0 0 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: #252a36; font-size: 0.88rem; color: var(--muted); }
.selected .connection-avatar { color: var(--accent); background: #473022; }
.connection-label { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; flex: 1; }
.connection-name { font-size: 0.87rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.connection-preview { font-size: 0.72rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.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; }
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; }
.connection-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 80px; padding: 1rem var(--space-xl); border-bottom: 1px solid var(--border); background: #141720; }
.connection-title { min-width: 0; flex: 1; }
.title-line { display: flex; align-items: center; gap: 1rem; margin-top: 0.4rem; }
.title-line h1 { margin: 0; font-size: 1.35rem; font-weight: 600; font-family: inherit; overflow-wrap: anywhere; }
.header-action { font-size: 0.72rem; padding: 0.3rem 0.5rem; color: var(--muted); background: transparent; border-color: transparent; }
.header-action-icon { margin-right: 0.15rem; opacity: 0.65; }
.header-action:hover:not(:disabled), .header-action:focus-visible { color: #ff9185; }
.header-action:hover:not(:disabled) .header-action-icon, .header-action:focus-visible .header-action-icon { opacity: 1; }
.session-badge { display: inline-flex; align-items: center; gap: 0.45rem; color: var(--muted); font-size: 0.74rem; white-space: nowrap; border: 1px solid var(--border); border-radius: 20px; padding: 0.45rem 0.7rem; }
.session-badge.connected { color: #8ddbb6; border-color: #315344; }
.workspace-scroll { flex: 1; overflow-y: auto; padding: var(--space-2xl) 2.25rem; }
.connection-workspace { display: grid; grid-template-columns: minmax(0, 720px) minmax(240px, 320px); gap: var(--space-2xl); max-width: 1200px; margin-inline: auto; align-items: start; }
.session-column { min-width: 0; }
.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; }
.share-actions, .session-actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.share-actions button, .session-actions button { font-size: 0.88rem; }
.code-details { width: 100%; min-width: 0; }
.code-details > .code-entry { margin-top: var(--space-md); }
.code-entry { display: flex; flex-direction: column; gap: var(--space-md); min-width: 0; }
.code-entry > button { align-self: start; font-size: 0.88rem; }
.activity-panel { min-width: 0; border-left: 1px solid var(--border); padding-left: var(--space-xl); }
.activity-heading { display: flex; align-items: center; gap: var(--space-sm); }
.activity-heading h2 { font-size: 0.9rem; font-weight: 600; margin: 0; }
.activity-heading > span { font-size: 0.68rem; color: var(--muted); border-radius: 5px; padding: 0.15rem 0.35rem; background: #242936; }
.empty-activity { padding: 3.5rem 0.25rem; text-align: center; }
.empty-activity-icon { font-size: 1.6rem; display: grid; place-items: center; margin: 0 auto 1rem; width: 54px; height: 54px; border-radius: 16px; border: 1px solid var(--border); color: var(--muted); }
.empty-activity h3 { font-size: 0.88rem; font-weight: 500; margin: 0 0 0.6rem; }
.empty-activity p { font-size: 0.8rem; line-height: 1.7; color: var(--muted); }
p.activity-note { font-size: 0.7rem; color: var(--muted); line-height: 1.6; }
.empty-activity .activity-note { margin-top: var(--space-xl); }
.activity-list { list-style: none; padding: 0; margin: var(--space-lg) 0; }
.activity-item { display: flex; gap: 0.7rem; padding: 1rem 0; border-bottom: 1px solid var(--border); font-size: 0.78rem; }
.activity-item > div { min-width: 0; }
.activity-icon { color: var(--accent); padding-top: 0.1rem; font-size: 1rem; }
.activity-filename { margin: 0; overflow-wrap: anywhere; font-weight: 500; }
.activity-meta, .activity-result { color: var(--muted); margin: 0.4rem 0; font-size: 0.72rem; }
.activity-item time { font-size: 0.68rem; color: var(--muted); }
.storage-error { color: #ffb4a9; background: #422725; border: 1px solid #8e5147; border-radius: 8px; padding: 1rem; font-size: 0.85rem; line-height: 1.6; }
.sidebar-toggle { 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); }
.connection-workspace { grid-template-columns: minmax(0, 1fr); gap: var(--space-2xl); }
.activity-panel { border-left: 0; border-top: 1px solid var(--border); padding: var(--space-xl) 0 0; }
.empty-activity { padding: var(--space-xl) 0; }
.connection-header { padding-inline: var(--space-xl); }
.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; }
.connection-header { flex-wrap: wrap; padding: 1rem; min-height: 0; gap: 0.75rem; }
.sidebar-toggle { display: block; flex-basis: 100%; font-size: 0.8rem; text-align: left; background: transparent; padding: 0.5rem; }
.workspace-scroll { padding: var(--space-lg) 1rem; overflow: visible; }
.title-line { gap: 0.4rem; }
.title-line h1 { font-size: 1.15rem; }
.panel { padding: 1rem; }
.session-badge { font-size: 0.65rem; padding: 0.35rem 0.5rem; }
}
.title-line { flex-wrap: wrap; column-gap: 0.6rem; }
.editable-name { display: inline-flex; position: relative; max-width: min(100%, 26rem); min-width: 0; }
.editable-name input { width: 100%; min-width: 0; max-width: 100%; border: 1px solid transparent; border-radius: 7px; padding: 0.12rem 1.65rem 0.12rem 0.4rem; margin-left: -0.4rem; font: inherit; font-size: 1.35rem; font-weight: 600; color: var(--text); background: #ffffff03; text-overflow: ellipsis; transition: border-color 120ms, background 120ms; }
.editable-name input:hover { border-color: var(--border); background: #ffffff06; }
.editable-name input:focus { border-color: var(--accent); outline: none; background: var(--bg); }
.name-edit-icon { position: absolute; right: 0.65rem; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 0.9rem; pointer-events: none; opacity: 0.65; }
.editable-name:focus-within .name-edit-icon { color: var(--accent); opacity: 1; }
.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) {
.editable-name input { font-size: 1.15rem; }
.app-dialog { padding: 1.2rem; }
}