Files
visitor-signin/public/css/admin.css
T

297 lines
8.3 KiB
CSS

:root {
--paper: #eef1f4;
--card: #ffffff;
--ink: #16202b;
--muted: #5d6b7a;
--rule: #d4dce3;
--deep: #0b4f4a;
--exit: #2c4a6b;
--alert: #96162f;
}
* { box-sizing: border-box; }
body {
margin: 0;
background: var(--paper);
color: var(--ink);
font-family: "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
font-size: 15px;
line-height: 1.5;
}
h1, h2, h3 { letter-spacing: -0.015em; font-weight: 620; }
h2 { font-size: 20px; margin: 0; }
h3 { font-size: 18px; margin: 0 0 14px; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.primary {
padding: 9px 16px;
border: 1px solid var(--deep);
border-radius: 3px;
background: var(--deep);
color: #fff;
font-weight: 600;
}
.ghost {
display: inline-block;
padding: 9px 16px;
border: 1px solid var(--rule);
border-radius: 3px;
background: var(--card);
color: var(--ink);
text-decoration: none;
}
.danger { color: var(--alert); border-color: #e3bcc4; }
.link {
border: none;
background: none;
color: #d7e4e1;
text-decoration: underline;
text-underline-offset: 3px;
}
:focus-visible { outline: 3px solid var(--deep); outline-offset: 2px; }
/* -------------------------------------------------------------- chrome */
.topbar {
display: flex;
align-items: center;
gap: 22px;
flex-wrap: wrap;
padding: 12px 22px;
background: var(--deep);
color: #eef5f3;
}
.topbar nav { display: flex; gap: 4px; flex-wrap: wrap; margin-right: auto; }
.tab {
padding: 8px 14px;
border: none;
border-radius: 3px;
background: transparent;
color: #cfe0dd;
}
.tab.on { background: rgba(255, 255, 255, 0.14); color: #fff; font-weight: 600; }
main { max-width: 1100px; margin: 0 auto; padding: 26px 22px 60px; }
.panel { display: none; }
.panel.on { display: block; }
.panel-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
flex-wrap: wrap;
margin-bottom: 18px;
}
.stat {
font-size: 40px;
font-weight: 650;
font-variant-numeric: tabular-nums;
margin: 0 0 6px;
color: var(--deep);
}
.hint { color: var(--muted); font-size: 14px; max-width: 70ch; }
/* -------------------------------------------------------------- tables */
table { width: 100%; border-collapse: collapse; background: var(--card); font-size: 14.5px; }
th, td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--rule); vertical-align: middle; }
th { font-weight: 600; color: var(--muted); font-size: 13.5px; }
tbody tr:last-child td { border-bottom: none; }
td.actions { text-align: right; white-space: nowrap; }
td.actions button { margin-left: 6px; padding: 6px 11px; font-size: 13.5px; }
.mono { font-variant-numeric: tabular-nums; }
.thumb { width: 42px; height: 42px; object-fit: cover; border-radius: 3px; display: block; }
.empty { padding: 26px; background: var(--card); color: var(--muted); }
.pill {
display: inline-block;
padding: 2px 9px;
border-radius: 2px;
font-size: 12.5px;
background: #e6efed;
color: var(--deep);
}
.pill.off { background: #eceff2; color: var(--muted); }
.pill.out { background: #e7edf4; color: var(--exit); }
/* ------------------------------------------------------------- filters */
.filters {
display: flex;
gap: 12px;
flex-wrap: wrap;
align-items: flex-end;
margin-bottom: 16px;
}
.filters label { display: block; }
.filters .grow { flex: 1 1 240px; }
.filters span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.filters input { width: 100%; padding: 9px 11px; border: 1px solid var(--rule); border-radius: 3px; }
/* -------------------------------------------------------------- import */
.import {
background: var(--card);
border: 1px solid var(--rule);
border-radius: 3px;
padding: 14px 16px;
margin-bottom: 20px;
}
.import summary { cursor: pointer; font-weight: 600; }
.import textarea {
width: 100%;
margin: 12px 0;
padding: 10px;
border: 1px solid var(--rule);
border-radius: 3px;
font-family: ui-monospace, Menlo, Consolas, monospace;
font-size: 13px;
}
.import input[type="file"] { margin-top: 12px; }
.inline { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: 14px; }
/* --------------------------------------------------------------- modal */
dialog {
border: none;
border-radius: 3px;
padding: 24px;
width: min(520px, calc(100vw - 32px));
border-top: 5px solid var(--deep);
}
dialog::backdrop { background: rgba(22, 32, 43, 0.45); }
.modal-field { margin-bottom: 14px; }
.modal-field span { display: block; font-size: 13.5px; color: var(--muted); margin-bottom: 5px; }
.modal-field input, .modal-field select, .modal-field textarea {
width: 100%;
padding: 10px 11px;
border: 1px solid var(--rule);
border-radius: 3px;
}
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.pin-reveal {
font-size: 34px;
font-weight: 700;
letter-spacing: 0.22em;
color: var(--deep);
font-variant-numeric: tabular-nums;
margin: 6px 0 16px;
}
/* -------------------------------------------------------------- system */
#system-body { background: var(--card); padding: 20px; border-radius: 3px; }
#system-body dl { display: grid; grid-template-columns: minmax(150px, 30%) 1fr; gap: 8px 16px; margin: 0 0 22px; }
#system-body dt { color: var(--muted); }
#system-body dd { margin: 0; }
.sys-actions { display: flex; gap: 10px; flex-wrap: wrap; }
/* --------------------------------------------------------------- toast */
.toast {
position: fixed;
left: 50%;
bottom: 22px;
transform: translateX(-50%);
margin: 0;
padding: 13px 18px;
border-left: 5px solid var(--deep);
border-radius: 3px;
background: #fff;
box-shadow: 0 10px 28px rgba(22, 32, 43, 0.18);
max-width: min(560px, calc(100% - 32px));
}
.toast.bad { border-left-color: var(--alert); }
.foot { padding: 0 22px 26px; color: var(--muted); font-size: 12.5px; text-align: center; }
/* ----------------------------------------------------- site switching */
.site-switch { display: flex; align-items: center; gap: 8px; color: #cfe0dd; font-size: 14px; }
.site-switch select {
padding: 7px 10px;
border: 1px solid rgba(255, 255, 255, 0.3);
border-radius: 3px;
background: rgba(255, 255, 255, 0.12);
color: #fff;
}
.site-switch select option { color: var(--ink); }
.badge-count {
display: inline-block;
min-width: 20px;
margin-left: 6px;
padding: 0 6px;
border-radius: 10px;
background: var(--alert);
color: #fff;
font-size: 12px;
text-align: center;
}
/* ------------------------------------------------------ banner, cards */
.banner {
margin: 0;
padding: 12px 22px;
background: #fdf3d8;
border-bottom: 1px solid #e6d5a4;
font-size: 14.5px;
}
.banner.bad { background: #fbeaed; border-bottom-color: #e8c3cb; }
.notice {
padding: 12px 14px;
margin: 0 0 16px;
background: #fdf3d8;
border-left: 4px solid #d9a441;
font-size: 14.5px;
}
.card {
background: var(--card);
border-radius: 3px;
padding: 18px 20px;
margin-bottom: 14px;
}
.site-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: flex-start; }
.site-head h3 { margin: 0 0 4px; }
.site-head .hint { margin: 0; }
.site-meta { display: grid; grid-template-columns: minmax(130px, 24%) 1fr; gap: 6px 16px; margin: 14px 0 0; font-size: 14.5px; }
.site-meta dt { color: var(--muted); }
.site-meta dd { margin: 0; }
.section-gap { margin-top: 34px; }
#account-body { background: var(--card); padding: 20px; border-radius: 3px; }
#account-body dl { display: grid; grid-template-columns: minmax(150px, 30%) 1fr; gap: 8px 16px; margin: 0 0 22px; }
#account-body dt { color: var(--muted); }
#account-body dd { margin: 0; }
td small { display: block; color: var(--muted); font-size: 13px; }
tr.row-warn td { background: #fdf8ec; }
tr.row-bad td { background: #fdf0f2; }
.pill.warn { background: #f7e7c4; color: #7a5308; }
.pill.bad { background: #f6d5db; color: var(--alert); }
.modal-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.modal-section { margin: 20px 0 12px; font-size: 15px; }
.pin-reveal.small { font-size: 24px; letter-spacing: 0.06em; word-break: break-all; }
#modal img { display: block; margin: 0 auto 12px; border: 1px solid var(--rule); }
.fingerprint {
font-family: ui-monospace, Menlo, Consolas, monospace;
font-size: 12px;
word-break: break-all;
}
#system-body h3 { margin-bottom: 14px; }