Rename the Config top-nav to 'Admin' and move SSH Access into its sidebar
under a 'Tools' group, instead of a separate top-level nav item. SSH Access is
rendered by SshPage into the config main pane via a renderConfig('ssh-access')
special case; the sidebar item (config-sidebar.js) routes there. SshPage now
mounts into any container (defaults to #config-section). /ssh redirects to
/config?=ssh-access for old links; the standalone ssh-content.html is removed.
Declutters the top bar and gives system/admin features one home that scales
(updates, users, Connect settings can become sidebar entries later).
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Signed-off-by: librelad <librelad@digitalangels.vip>
86 lines
1.7 KiB
CSS
86 lines
1.7 KiB
CSS
/* SSH Access page. Reuses the .backup-ssh-key-card / button styles from
|
|
backup.css for the cards; this file only adds page chrome + the key list. */
|
|
|
|
.ssh-page {
|
|
max-width: 860px;
|
|
margin: 0 auto;
|
|
padding: 8px 4px 40px;
|
|
}
|
|
|
|
/* "Tools" group heading in the Admin (config) sidebar, above SSH Access. */
|
|
.sidebar-group-label {
|
|
margin: 14px 8px 4px;
|
|
padding-top: 10px;
|
|
border-top: 1px solid rgba(var(--text-rgb), 0.08);
|
|
font-size: 0.7rem;
|
|
font-weight: 700;
|
|
letter-spacing: 0.06em;
|
|
text-transform: uppercase;
|
|
color: rgba(var(--text-rgb), 0.45);
|
|
}
|
|
|
|
.ssh-page-header {
|
|
margin-bottom: 18px;
|
|
}
|
|
|
|
.ssh-page-header h1 {
|
|
margin: 0 0 6px;
|
|
font-size: 1.5rem;
|
|
}
|
|
|
|
.ssh-page-sub {
|
|
margin: 0;
|
|
color: rgba(var(--text-rgb), 0.65);
|
|
font-size: 0.92rem;
|
|
line-height: 1.45;
|
|
}
|
|
|
|
.ssh-page .backup-ssh-key-card {
|
|
margin-top: 16px;
|
|
}
|
|
|
|
.ssh-key-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
.ssh-key-row {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
padding: 10px 12px;
|
|
border: 1px solid rgba(var(--text-rgb), 0.10);
|
|
border-radius: 8px;
|
|
background: var(--card-bg);
|
|
}
|
|
|
|
.ssh-key-row-main {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
min-width: 0;
|
|
}
|
|
|
|
.ssh-key-type {
|
|
font-size: 0.72rem;
|
|
font-weight: 700;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.04em;
|
|
color: var(--accent);
|
|
}
|
|
|
|
.ssh-key-comment {
|
|
font-size: 0.9rem;
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.ssh-key-fp {
|
|
font-family: var(--font-mono, monospace);
|
|
font-size: 0.74rem;
|
|
color: rgba(var(--text-rgb), 0.6);
|
|
word-break: break-all;
|
|
}
|