New /ssh page (topbar nav + SPA route + SshPage controller + ssh-content.html + ssh.css). Reads data/ssh/access.json and lets the admin: paste a public key to authorize a machine, remove keys, and toggle key-only login — all via 'libreportal ssh ...' tasks through the backend's lockout guards. Reuses the backup key-card styles for a consistent look. This is the inbound counterpart to the backup location key card (outbound): same paste-a-key model, opposite direction. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> Signed-off-by: librelad <librelad@digitalangels.vip>
74 lines
1.3 KiB
CSS
74 lines
1.3 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: 24px 20px 40px;
|
|
}
|
|
|
|
.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;
|
|
}
|