feat: tune visual of web app admin panel
This commit is contained in:
@@ -33,6 +33,19 @@
|
||||
--danger: #ff6b6b;
|
||||
--blue: #2d9cff;
|
||||
--radius: 8px;
|
||||
|
||||
/* Admin design tokens — kept on :root so portal-rendered admin
|
||||
surfaces (dialogs, bits-ui Select.Portal content) inherit them. */
|
||||
--admin-bg: var(--bg);
|
||||
--admin-surface: var(--panel);
|
||||
--admin-surface-2: var(--panel-2);
|
||||
--admin-elev: var(--panel-3);
|
||||
--admin-border: var(--border);
|
||||
--admin-border-strong: var(--border-strong);
|
||||
--admin-text: var(--text);
|
||||
--admin-muted: var(--muted);
|
||||
--admin-dim: var(--dim);
|
||||
--admin-ring: color-mix(in srgb, var(--accent) 50%, transparent);
|
||||
--screen-gutter: 18px;
|
||||
--safe-inline: max(env(safe-area-inset-left), env(safe-area-inset-right));
|
||||
--nav-inline-gutter: max(var(--screen-gutter), var(--safe-inline));
|
||||
@@ -2647,16 +2660,6 @@ a {
|
||||
.admin-screen-wrap {
|
||||
--admin-sidebar-w: 248px;
|
||||
--admin-header-h: 60px;
|
||||
--admin-bg: var(--bg);
|
||||
--admin-surface: var(--panel);
|
||||
--admin-surface-2: var(--panel-2);
|
||||
--admin-elev: var(--panel-3);
|
||||
--admin-border: var(--border);
|
||||
--admin-border-strong: var(--border-strong);
|
||||
--admin-text: var(--text);
|
||||
--admin-muted: var(--muted);
|
||||
--admin-dim: var(--dim);
|
||||
--admin-ring: color-mix(in srgb, var(--accent) 50%, transparent);
|
||||
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
@@ -2704,9 +2707,6 @@ a {
|
||||
.admin-sidebar-brand .admin-brand-mark {
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
border-radius: 10px;
|
||||
background: color-mix(in srgb, var(--accent) 22%, var(--admin-surface-2));
|
||||
border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
|
||||
display: grid;
|
||||
place-items: center;
|
||||
color: var(--accent);
|
||||
@@ -2791,6 +2791,30 @@ a {
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.admin-version-link {
|
||||
order: 2;
|
||||
display: grid;
|
||||
gap: 2px;
|
||||
max-width: 100%;
|
||||
overflow: hidden;
|
||||
color: var(--admin-muted);
|
||||
font-family: var(--font-mono);
|
||||
font-size: 11px;
|
||||
text-decoration: none;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
transition: color 0.12s ease;
|
||||
}
|
||||
|
||||
.admin-version-link span {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.admin-version-link:hover {
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
.admin-content {
|
||||
flex: 1 1 auto;
|
||||
display: flex;
|
||||
@@ -3858,6 +3882,148 @@ a {
|
||||
overscroll-behavior: contain;
|
||||
}
|
||||
|
||||
/* User-detail dialog: constrain on desktop and lay out as a two-column
|
||||
sidebar (profile facts) + main content (tabs). On mobile it stacks. */
|
||||
.admin-user-dialog {
|
||||
width: min(100%, 1040px);
|
||||
max-height: min(100%, 760px);
|
||||
}
|
||||
|
||||
.admin-user-dialog-body {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
gap: 16px;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.admin-user-aside {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 12px;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.admin-user-main {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.admin-user-stats {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.admin-user-stat {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 2px;
|
||||
padding: 10px 12px;
|
||||
border-radius: 10px;
|
||||
border: 1px solid var(--admin-border);
|
||||
background: var(--admin-surface);
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.admin-user-stat span {
|
||||
color: var(--admin-muted);
|
||||
font-size: 11px;
|
||||
font-weight: 600;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.04em;
|
||||
}
|
||||
|
||||
.admin-user-stat strong {
|
||||
color: var(--admin-text);
|
||||
font-size: 15px;
|
||||
font-weight: 700;
|
||||
word-break: break-word;
|
||||
}
|
||||
|
||||
.admin-user-link-btn {
|
||||
align-self: stretch;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.admin-link-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.admin-link-row {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) auto;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
padding: 8px 10px;
|
||||
border-radius: 8px;
|
||||
border: 1px solid var(--admin-border);
|
||||
background: var(--admin-surface);
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.admin-link-row-meta {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 2px;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.admin-link-row-label {
|
||||
color: var(--admin-muted);
|
||||
font-size: 11px;
|
||||
font-weight: 600;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.04em;
|
||||
}
|
||||
|
||||
.admin-link-row-url {
|
||||
color: var(--admin-text);
|
||||
font-family: var(--font-mono);
|
||||
font-size: 11px;
|
||||
text-decoration: none;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.admin-link-row-url:hover {
|
||||
color: var(--accent);
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.admin-btn.admin-btn-icon {
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
padding: 0;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex: 0 0 auto;
|
||||
}
|
||||
|
||||
.admin-meta-truncate {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
@media (min-width: 860px) {
|
||||
.admin-user-dialog-body {
|
||||
grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
|
||||
gap: 20px;
|
||||
align-items: start;
|
||||
}
|
||||
|
||||
.admin-user-aside {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.admin-tariff-grid {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
@@ -3975,6 +4141,44 @@ a {
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
/* Section title block: stacks `<strong>` heading + `<small>` description.
|
||||
Higher specificity than `.admin-editor-section-head > div` (which would
|
||||
otherwise force flex-row on the wrapper). */
|
||||
.admin-editor-section-head > .admin-editor-section-title {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 2px;
|
||||
flex: 1 1 200px;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.admin-editor-section-head > .admin-editor-section-title small {
|
||||
color: var(--admin-muted);
|
||||
font-size: 12px;
|
||||
line-height: 1.4;
|
||||
font-weight: 400;
|
||||
text-transform: none;
|
||||
letter-spacing: 0;
|
||||
}
|
||||
|
||||
/* Column headers above an `.admin-row-editor` list — visually distinct,
|
||||
inherits the same grid template as input rows so columns line up. */
|
||||
.admin-row-editor-line.admin-row-editor-header {
|
||||
color: var(--admin-muted);
|
||||
font-size: 11px;
|
||||
font-weight: 600;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.04em;
|
||||
padding: 0 4px;
|
||||
}
|
||||
|
||||
.admin-row-editor-line.admin-row-editor-header span {
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.admin-row-editor {
|
||||
display: grid;
|
||||
gap: 8px;
|
||||
@@ -4438,6 +4642,23 @@ a {
|
||||
line-height: 1.45;
|
||||
}
|
||||
|
||||
.admin-field-label > small code,
|
||||
.admin-editor-section-title small code {
|
||||
display: inline-block;
|
||||
padding: 0 4px;
|
||||
border-radius: 4px;
|
||||
background: color-mix(in srgb, var(--admin-elev) 70%, transparent);
|
||||
color: var(--admin-text);
|
||||
font-family: var(--font-mono);
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
.admin-field-label > small b,
|
||||
.admin-editor-section-title small b {
|
||||
color: var(--admin-text);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
/* Action rows in dialogs */
|
||||
.admin-action-row {
|
||||
display: flex;
|
||||
@@ -4513,7 +4734,6 @@ a {
|
||||
border-radius: 12px;
|
||||
background: var(--admin-surface-2);
|
||||
border: 1px solid var(--admin-border);
|
||||
margin-bottom: 14px;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user