Files
Skald-Circle/web/css/users-roles.css
T
dguiducci fadb31832f
Nightly Build / build (push) Successful in 6m58s
users: turn the four modals into a per-user page at #users/{id}
The connectors-assignment dialog was the fourth modal on the Users page
and the first to break: a checkbox list taller than the viewport with no
scroll. Same failure the connector activation and manual-add dialogs had,
same fix — a page. The list stays a table, but rows are clickable and
open the user's own page with three sections:

- Profile: the old edit form (username, display name, role, directory
  fields, active switch) with a saved tick;
- Connectors: the grant checklist as the Connectors page's row list
  (icon, name, description, search, global/personal groups), one Save;
- Security: password reset (disabled with an explanation for encrypted
  users) and the delete action.

Only user creation stays a modal — three fields and a role fit.
2026-07-27 21:40:17 +01:00

215 lines
4.6 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-header-right {
margin-left: auto;
display: flex;
align-items: center;
gap: 14px;
}
.um-header-count {
font-size: .82rem;
color: var(--placeholder-color);
}
.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);
}