536 lines
12 KiB
CSS
536 lines
12 KiB
CSS
:root {
|
|
color: var(--ink);
|
|
background: var(--bg);
|
|
font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
|
|
font-size: 14px;
|
|
}
|
|
* { box-sizing: border-box; }
|
|
html, body, #app, .n-config-provider, .n-message-provider, .n-dialog-provider, .app-root { margin: 0; height: 100%; }
|
|
html:has(.gate),
|
|
html:has(.gate) body { overflow-x: hidden; }
|
|
body { background: var(--bg); }
|
|
button, input, select { font: inherit; }
|
|
::selection { background: var(--accent-soft); }
|
|
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
|
|
|
|
/* shell — keep sider geometry and selected-edge indicator */
|
|
.shell { height: 100%; background: var(--bg); color: var(--ink); }
|
|
.shell .n-layout,
|
|
.shell .n-layout-scroll-container,
|
|
.content { background: var(--bg); }
|
|
.shell .n-layout-sider { background: var(--sidebar); }
|
|
.shell .n-layout-sider > .n-scrollbar,
|
|
.shell .n-layout-sider .n-scrollbar-container,
|
|
.shell .n-layout-sider .n-scrollbar-content { height: 100%; }
|
|
.sider-body {
|
|
flex: 1;
|
|
height: 100%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-height: 0;
|
|
}
|
|
.sider-brand {
|
|
height: 56px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
padding: 0 16px;
|
|
border-bottom: 1px solid var(--line);
|
|
flex: none;
|
|
}
|
|
.sider-brand.compact { justify-content: center; padding: 0; }
|
|
.sider-brand strong { font-size: 15px; font-weight: 650; letter-spacing: -0.02em; }
|
|
.sider-brand .brand-mark { width: 28px; height: 28px; font-size: 14px; }
|
|
.sider-body .n-menu { flex: 1; min-height: 0; padding-top: 8px; }
|
|
.shell .n-menu .n-menu-item-content--selected::before {
|
|
background-color: transparent !important;
|
|
border-left: 2px solid var(--accent);
|
|
border-radius: 0;
|
|
}
|
|
.sider-back {
|
|
flex: none;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
height: 40px;
|
|
margin: 0 8px 8px;
|
|
padding: 0 10px;
|
|
border-radius: 4px;
|
|
color: var(--muted);
|
|
text-decoration: none;
|
|
}
|
|
.sider-back:hover { background: var(--hover); color: var(--ink); }
|
|
.sider-back.compact { justify-content: center; padding: 0; }
|
|
.sider-user {
|
|
margin-top: auto;
|
|
padding: 12px;
|
|
border-top: 1px solid var(--line);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
.sider-user.compact { flex-direction: column; padding: 8px 0 12px; }
|
|
.sider-user .who { min-width: 0; flex: 1; }
|
|
.sider-user strong,
|
|
.sider-user span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
.sider-user span { color: var(--muted); font-size: 12px; }
|
|
.logout-btn.n-button {
|
|
color: var(--danger);
|
|
--n-text-color: var(--danger);
|
|
--n-text-color-hover: var(--danger);
|
|
--n-text-color-pressed: var(--danger);
|
|
--n-text-color-focus: var(--danger);
|
|
}
|
|
.sider-user .theme-switch { position: static; }
|
|
.content {
|
|
min-width: 0;
|
|
min-height: 0;
|
|
height: 100%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
.content > .n-layout-scroll-container,
|
|
.content > .n-scrollbar,
|
|
.content > .n-scrollbar > .n-scrollbar-container {
|
|
height: 100%;
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* page chrome */
|
|
.page {
|
|
height: 100%;
|
|
min-height: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
.page-head {
|
|
height: 56px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 16px;
|
|
flex: none;
|
|
margin: 0;
|
|
padding: 0 24px;
|
|
border-bottom: 1px solid var(--line);
|
|
background: var(--bg);
|
|
}
|
|
.page-head h2 {
|
|
margin: 0;
|
|
font-size: 16px;
|
|
font-weight: 650;
|
|
letter-spacing: -0.02em;
|
|
line-height: 1.2;
|
|
}
|
|
.admin-page { overflow: hidden; }
|
|
.admin-alert { flex: none; margin-bottom: 12px; }
|
|
.admin-scroll {
|
|
flex: 1;
|
|
min-height: 0;
|
|
overflow: auto;
|
|
padding: 20px 24px 28px;
|
|
}
|
|
.admin-status { margin: 0; color: var(--muted); }
|
|
|
|
/* surfaces */
|
|
.surface {
|
|
background: var(--panel);
|
|
border: 1px solid var(--line);
|
|
border-radius: 8px;
|
|
box-shadow: var(--shadow);
|
|
}
|
|
.table-card { overflow: auto; }
|
|
.table-card.compact,
|
|
.empty-card.compact { width: min(720px, 100%); }
|
|
.empty-card {
|
|
min-height: 220px;
|
|
display: grid;
|
|
place-items: center;
|
|
padding: 32px 24px;
|
|
}
|
|
.settings-card {
|
|
width: min(520px, 100%);
|
|
padding: 20px 22px 10px;
|
|
}
|
|
.settings-card .form-row:last-child { margin-bottom: 10px; }
|
|
|
|
.dash-kpis {
|
|
display: grid;
|
|
grid-template-columns: repeat(6, minmax(0, 1fr));
|
|
gap: 12px;
|
|
margin-bottom: 16px;
|
|
}
|
|
.dash-kpi {
|
|
padding: 14px 16px 12px;
|
|
}
|
|
.dash-kpi span {
|
|
display: block;
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
}
|
|
.dash-kpi strong {
|
|
display: block;
|
|
margin-top: 6px;
|
|
font-size: 24px;
|
|
font-weight: 650;
|
|
letter-spacing: -0.03em;
|
|
line-height: 1.2;
|
|
}
|
|
.dash-grid {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
|
|
gap: 12px;
|
|
}
|
|
.dash-card { padding: 16px 16px 8px; }
|
|
.dash-card h3 {
|
|
margin: 0 0 8px;
|
|
font-size: 13px;
|
|
font-weight: 650;
|
|
}
|
|
.dash-chart { height: 260px; }
|
|
|
|
@media (max-width: 1100px) {
|
|
.dash-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
|
|
.dash-grid { grid-template-columns: 1fr; }
|
|
}
|
|
@media (max-width: 720px) {
|
|
.dash-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
}
|
|
|
|
/* tables */
|
|
.admin-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
}
|
|
.admin-table th,
|
|
.admin-table td {
|
|
padding: 11px 16px;
|
|
border-bottom: 1px solid var(--line);
|
|
text-align: left;
|
|
vertical-align: middle;
|
|
}
|
|
.admin-table th {
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 1;
|
|
background: var(--panel-2);
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
font-weight: 550;
|
|
letter-spacing: 0.01em;
|
|
}
|
|
.admin-table tbody tr:last-child td { border-bottom: 0; }
|
|
.admin-table tbody tr:hover td { background: var(--hover); }
|
|
.admin-table .col-actions {
|
|
width: 1%;
|
|
white-space: nowrap;
|
|
text-align: center;
|
|
}
|
|
.admin-table .col-format,
|
|
.admin-table .col-role { width: 88px; }
|
|
.admin-table .col-pick { width: 128px; }
|
|
.row-actions {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
gap: 4px;
|
|
}
|
|
.page-head-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
min-width: 0;
|
|
}
|
|
.page-head-actions .n-input { width: min(280px, 42vw); }
|
|
|
|
/* forms: label left, control right */
|
|
.form-row {
|
|
display: grid;
|
|
grid-template-columns: 7em minmax(0, 1fr);
|
|
gap: 8px 14px;
|
|
align-items: center;
|
|
margin-bottom: 12px;
|
|
}
|
|
.form-row > * { min-width: 0; }
|
|
.form-row > label {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
color: var(--ink);
|
|
line-height: 1.3;
|
|
white-space: nowrap;
|
|
}
|
|
.form-row .n-input,
|
|
.form-row .n-select,
|
|
.form-row .n-input-number,
|
|
.form-row .n-date-picker,
|
|
.form-row .n-radio-group { width: 100%; }
|
|
.form-row > div { width: 100%; }
|
|
.form-row:last-child { margin-bottom: 0; }
|
|
.field-error { margin: 6px 0 0; color: var(--danger); font-size: 12px; line-height: 1.3; }
|
|
.form-section {
|
|
margin: 18px 0 10px;
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
font-weight: 650;
|
|
letter-spacing: 0.04em;
|
|
}
|
|
.gate-brand + .form-section,
|
|
.form-section:first-child { margin-top: 0; }
|
|
.hint-mark {
|
|
display: inline-grid;
|
|
place-items: center;
|
|
width: 16px;
|
|
height: 16px;
|
|
margin-left: 4px;
|
|
color: var(--muted);
|
|
vertical-align: -2px;
|
|
cursor: help;
|
|
}
|
|
.filters, .form-grid {
|
|
display: grid;
|
|
grid-template-columns: 7em minmax(0, 1fr);
|
|
gap: 8px 14px;
|
|
align-items: center;
|
|
}
|
|
.late, .status-bad { color: var(--danger); }
|
|
.status-ok { color: var(--ok); }
|
|
.status-run { color: var(--accent); }
|
|
.status-wait { color: var(--muted); }
|
|
|
|
.settings-form {
|
|
height: 100%;
|
|
min-height: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
.settings-fields .form-row { grid-template-columns: 11em minmax(0, 1fr); }
|
|
.settings-fields .n-radio-group {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 2px 18px;
|
|
align-items: center;
|
|
}
|
|
.setting-control {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
width: auto;
|
|
min-width: 0;
|
|
}
|
|
.settings-fields .setting-control .n-input-number {
|
|
width: 112px;
|
|
min-width: 112px;
|
|
}
|
|
.settings-fields .setting-refresh .n-input-number {
|
|
width: calc(112px * 4 / 3);
|
|
min-width: calc(112px * 4 / 3);
|
|
}
|
|
.settings-fields .setting-control .n-input__input-el {
|
|
text-align: center;
|
|
}
|
|
.setting-unit { flex: none; color: var(--muted); line-height: 28px; }
|
|
.panel { background: var(--panel); border: 1px solid var(--line); }
|
|
.hint {
|
|
width: 16px;
|
|
height: 16px;
|
|
border: 1px solid var(--line);
|
|
border-radius: 50%;
|
|
color: var(--muted);
|
|
font-size: 11px;
|
|
line-height: 14px;
|
|
text-align: center;
|
|
cursor: default;
|
|
}
|
|
|
|
/* gate / login / install */
|
|
.app-root { height: 100%; }
|
|
.gate {
|
|
position: relative;
|
|
height: 100%;
|
|
min-height: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 32px 16px;
|
|
overflow: auto;
|
|
background: var(--bg);
|
|
}
|
|
.gate .theme-switch { position: absolute; top: 16px; right: 16px; }
|
|
.sider-foot .theme-switch { position: static; align-self: flex-start; }
|
|
.gate-card,
|
|
.lv-side {
|
|
width: min(400px, 100%);
|
|
background: var(--panel);
|
|
color: var(--ink);
|
|
border: 1px solid var(--line);
|
|
border-radius: 8px;
|
|
padding: 32px;
|
|
box-shadow: var(--shadow);
|
|
}
|
|
.gate-card.wide { width: min(480px, 100%); }
|
|
.gate-brand,
|
|
.lv-side .lv-brand {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 12px;
|
|
margin-bottom: 24px;
|
|
}
|
|
.lv-notice {
|
|
margin: 0 0 18px;
|
|
padding: 8px 12px;
|
|
border-radius: 6px;
|
|
background: var(--accent-soft);
|
|
color: var(--ink);
|
|
font-size: 13px;
|
|
line-height: 1.45;
|
|
text-align: center;
|
|
}
|
|
.lv-brand + .lv-notice { margin-top: -8px; }
|
|
.gate-brand h1,
|
|
.lv-side h1 { margin: 0; font-size: 20px; font-weight: 650; letter-spacing: -0.02em; }
|
|
.brand-mark,
|
|
.lv-side .lv-mark {
|
|
width: 32px;
|
|
height: 32px;
|
|
display: grid;
|
|
place-items: center;
|
|
border: 1px solid var(--accent);
|
|
color: var(--accent);
|
|
border-radius: 6px;
|
|
font-weight: 650;
|
|
font-size: 14px;
|
|
flex: none;
|
|
}
|
|
.lv-side form,
|
|
.lv-embed form {
|
|
display: grid;
|
|
grid-template-columns: 4em minmax(0, 1fr);
|
|
column-gap: 12px;
|
|
row-gap: 14px;
|
|
align-items: center;
|
|
}
|
|
.lv-side label,
|
|
.lv-embed label {
|
|
margin: 0;
|
|
color: var(--ink);
|
|
line-height: 1.3;
|
|
}
|
|
.lv-side .n-alert,
|
|
.lv-embed .n-alert { grid-column: 1 / -1; }
|
|
.lv-side .n-button,
|
|
.lv-embed .n-button { grid-column: 2; width: 100%; }
|
|
.lv-side .lv-go,
|
|
.lv-embed .lv-go {
|
|
grid-column: 1 / -1;
|
|
width: 100%;
|
|
height: 36px;
|
|
margin-top: 8px;
|
|
font-weight: 600;
|
|
justify-self: center;
|
|
}
|
|
.gate-title {
|
|
margin: 0 0 10px;
|
|
font-size: 16px;
|
|
font-weight: 650;
|
|
text-align: center;
|
|
}
|
|
.gate-text {
|
|
margin: 0;
|
|
color: var(--muted);
|
|
line-height: 1.6;
|
|
}
|
|
.gate-actions {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
gap: 8px;
|
|
margin-top: 24px;
|
|
}
|
|
.gate-submit.n-button {
|
|
width: 100%;
|
|
height: 36px;
|
|
margin-top: 20px;
|
|
font-weight: 600;
|
|
}
|
|
.lv-captcha { display: flex; gap: 8px; align-items: center; min-width: 0; }
|
|
.lv-captcha .n-input { flex: 1; min-width: 0; }
|
|
.lv-captcha-box {
|
|
width: 108px;
|
|
height: 34px;
|
|
flex: none;
|
|
display: grid;
|
|
place-items: center;
|
|
padding: 0;
|
|
border: 1px solid var(--line);
|
|
border-radius: 4px;
|
|
background: var(--bg);
|
|
cursor: pointer;
|
|
overflow: hidden;
|
|
}
|
|
.lv-captcha-box:hover { border-color: var(--accent); }
|
|
.lv-captcha-box img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
border: 0;
|
|
}
|
|
.lv-captcha-box img.broken {
|
|
width: auto;
|
|
height: auto;
|
|
object-fit: none;
|
|
}
|
|
.lv-embed {
|
|
width: 100%;
|
|
background: transparent;
|
|
border: 0;
|
|
padding: 0;
|
|
}
|
|
.sms-actions {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
margin-top: 16px;
|
|
}
|
|
.captcha { height: 34px; cursor: pointer; }
|
|
|
|
/* dialogs: class is on the dialog/card itself; actions stay outside the scrolling body */
|
|
.n-dialog.app-dialog,
|
|
.n-card.app-dialog,
|
|
.app-dialog .n-dialog,
|
|
.app-dialog .n-card {
|
|
width: min(440px, calc(100vw - 32px));
|
|
}
|
|
.n-dialog.app-dialog-wide,
|
|
.n-card.app-dialog-wide,
|
|
.app-dialog-wide .n-dialog,
|
|
.app-dialog-wide .n-card {
|
|
width: min(480px, calc(100vw - 32px));
|
|
}
|
|
.n-dialog.app-dialog.app-dialog-collect,
|
|
.n-card.app-dialog.app-dialog-collect {
|
|
width: min(760px, calc(100vw - 32px));
|
|
}
|
|
.n-card.app-dialog.app-dialog-collect .n-card__content {
|
|
overflow-x: hidden;
|
|
}
|
|
.n-dialog.app-dialog .n-dialog__content,
|
|
.n-dialog.app-dialog-wide .n-dialog__content,
|
|
.n-card.app-dialog .n-card__content,
|
|
.n-card.app-dialog-wide .n-card__content,
|
|
.app-dialog .n-dialog__content,
|
|
.app-dialog-wide .n-dialog__content,
|
|
.app-dialog .n-card__content,
|
|
.app-dialog-wide .n-card__content {
|
|
max-height: min(64vh, 560px);
|
|
overflow: auto;
|
|
}
|
|
.n-dialog.app-dialog .n-dialog__action,
|
|
.n-dialog.app-dialog-wide .n-dialog__action {
|
|
position: sticky;
|
|
bottom: 0;
|
|
background: var(--panel);
|
|
}
|