Nightly Build / build (push) Successful in 7m17s
Every full-page view now renders the same sticky top bar (back button, title, right-side actions) from the new web/css/page-header.css, replacing a dozen per-page duplicates (.page-panel-header, .project-page-header, .task-page-header, .llm-page-header, .um-header, .apr-header, .llmr-header, .pv-header, .sa-header, .config-page-header, .agents-page-header). Pages that padded the whole container (config, agents, system-agents, llm-requests, models-hub) move that padding into a body wrapper so the bar sits flush and stays pinned on scroll. Back buttons are standardized to the icon-only .page-header-back.
203 lines
4.4 KiB
CSS
203 lines
4.4 KiB
CSS
/* ── Users & Roles pages (shared) ───────────────────────────────────────────── */
|
|
|
|
.um-page {
|
|
flex: 1;
|
|
flex-direction: column;
|
|
min-height: 0;
|
|
overflow-y: auto;
|
|
padding: 0;
|
|
}
|
|
|
|
.um-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
padding: 16px 24px 12px;
|
|
}
|
|
|
|
.um-title {
|
|
font-size: 1.35rem;
|
|
font-weight: 700;
|
|
margin: 0;
|
|
}
|
|
|
|
.um-table-wrap {
|
|
padding: 0 24px 24px;
|
|
}
|
|
|
|
.um-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
font-size: .88rem;
|
|
}
|
|
|
|
.um-table th {
|
|
text-align: left;
|
|
padding: 8px 12px;
|
|
font-weight: 600;
|
|
font-size: .78rem;
|
|
text-transform: uppercase;
|
|
letter-spacing: .03em;
|
|
color: var(--placeholder-color);
|
|
border-bottom: 1px solid var(--card-border);
|
|
}
|
|
|
|
.um-table td {
|
|
padding: 10px 12px;
|
|
border-bottom: 1px solid var(--card-border);
|
|
}
|
|
|
|
.um-table tr:hover td {
|
|
background: var(--bs-tertiary-bg);
|
|
}
|
|
|
|
.um-badge {
|
|
display: inline-block;
|
|
padding: 2px 8px;
|
|
border-radius: 4px;
|
|
font-size: .72rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.um-badge-encrypted { background: rgba(var(--accent-rgb), .15); color: var(--accent); }
|
|
.um-badge-clear { background: rgba(108, 117, 125, .15); color: #6c757d; }
|
|
.um-badge-active { background: rgba(25, 135, 84, .15); color: #198754; }
|
|
.um-badge-inactive { background: rgba(220, 53, 69, .15); color: #dc3545; }
|
|
|
|
.um-actions {
|
|
display: flex;
|
|
gap: 4px;
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
.um-btn-icon {
|
|
background: none;
|
|
border: none;
|
|
padding: 4px 8px;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
color: var(--placeholder-color);
|
|
font-size: .95rem;
|
|
transition: background .15s, color .15s;
|
|
}
|
|
|
|
.um-btn-icon:hover { background: var(--bs-tertiary-bg); color: var(--bs-body-color); }
|
|
.um-btn-icon:disabled { opacity: .3; cursor: not-allowed; }
|
|
|
|
/* ── Modal form ─────────────────────────────────────────────────────────────── */
|
|
|
|
.um-modal-overlay {
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 10000;
|
|
background: rgba(0, 0, 0, .4);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 24px;
|
|
}
|
|
|
|
.um-modal {
|
|
width: 100%;
|
|
max-width: 460px;
|
|
background: var(--card-bg);
|
|
border: 1px solid var(--card-border);
|
|
border-radius: 8px;
|
|
box-shadow: var(--card-shadow);
|
|
}
|
|
|
|
.um-modal-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 16px 20px;
|
|
border-bottom: 1px solid var(--card-border);
|
|
font-weight: 600;
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.um-modal-body { padding: 20px; }
|
|
.um-modal-footer { padding: 12px 20px; display: flex; justify-content: flex-end; gap: 8px; }
|
|
|
|
.um-empty {
|
|
text-align: center;
|
|
padding: 48px 24px;
|
|
color: var(--placeholder-color);
|
|
}
|
|
|
|
/* ── User detail page (#users/{id}) ──────────────────────────────────────────
|
|
*
|
|
* One user's own page: Profile / Connectors / Security sections. Surfaces come
|
|
* from the shared `.connector-card`; what is local is the avatar, the section
|
|
* rhythm and the "saved" tick. Rows in the connectors checklist reuse the
|
|
* Connectors page's `.connector-list`/`.connector-row`.
|
|
*/
|
|
|
|
.ud-avatar {
|
|
width: 40px;
|
|
height: 40px;
|
|
border-radius: 50%;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: #fff;
|
|
font-weight: 600;
|
|
font-size: 1rem;
|
|
flex-shrink: 0;
|
|
user-select: none;
|
|
}
|
|
|
|
.ud-avatar--sm {
|
|
width: 26px;
|
|
height: 26px;
|
|
font-size: 0.72rem;
|
|
}
|
|
|
|
.ud-section {
|
|
margin-top: 1.5rem;
|
|
}
|
|
|
|
.ud-section-title {
|
|
font-size: 1rem;
|
|
font-weight: 600;
|
|
margin: 0 0 0.6rem;
|
|
color: var(--bs-body-color);
|
|
}
|
|
|
|
.ud-conn-group-title {
|
|
font-weight: 600;
|
|
font-size: 0.72rem;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.03em;
|
|
color: var(--placeholder-color);
|
|
margin: 0 0 0.4rem;
|
|
}
|
|
|
|
.ud-saved {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.25rem;
|
|
font-size: 0.78rem;
|
|
color: var(--bs-success-text-emphasis);
|
|
}
|
|
|
|
/* The delete-user card: a danger-tinted edge so it reads as the risky zone
|
|
without shouting. */
|
|
.ud-danger {
|
|
border-color: var(--bs-danger-border-subtle);
|
|
}
|
|
|
|
.ud-section .connector-row .form-check-input {
|
|
margin-top: 0;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
/* Clickable list rows (the whole row opens the user's page). */
|
|
.um-table-clickable tbody tr {
|
|
cursor: pointer;
|
|
}
|
|
|
|
.um-table-clickable tbody tr:hover td {
|
|
background: var(--bs-tertiary-bg);
|
|
}
|