chrysopedia/frontend/src/pages/AdminUsers.module.css
jlightner 4969935c76 feat: Added ConfirmModal component, Edit As button with write-mode conf…
- "frontend/src/components/ConfirmModal.tsx"
- "frontend/src/components/ConfirmModal.module.css"
- "frontend/src/api/auth.ts"
- "frontend/src/context/AuthContext.tsx"
- "frontend/src/pages/AdminUsers.tsx"
- "frontend/src/pages/AdminUsers.module.css"
- "frontend/src/components/ImpersonationBanner.tsx"
- "frontend/src/components/ImpersonationBanner.module.css"

GSD-Task: S07/T02
2026-04-04 06:27:38 +00:00

123 lines
2.1 KiB
CSS

.page {
max-width: 900px;
margin: 0 auto;
padding: 2rem 1rem;
}
.title {
font-size: 1.5rem;
font-weight: 700;
margin-bottom: 1.5rem;
color: var(--text-primary, #e2e8f0);
}
.table {
width: 100%;
border-collapse: collapse;
font-size: 0.9rem;
}
.table th {
text-align: left;
padding: 0.6rem 0.75rem;
border-bottom: 2px solid var(--color-border, #2d2d3d);
color: var(--text-secondary, #828291);
font-weight: 600;
font-size: 0.8rem;
text-transform: uppercase;
letter-spacing: 0.05em;
}
.table td {
padding: 0.6rem 0.75rem;
border-bottom: 1px solid var(--color-border, #2d2d3d);
color: var(--text-primary, #e2e8f0);
}
.roleBadge {
display: inline-block;
padding: 0.15rem 0.5rem;
border-radius: 4px;
font-size: 0.75rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.03em;
}
.roleBadge[data-role="admin"] {
background: rgba(239, 68, 68, 0.15);
color: #ef4444;
}
.roleBadge[data-role="creator"] {
background: rgba(34, 211, 238, 0.15);
color: #22d3ee;
}
.viewAsBtn {
padding: 0.3rem 0.6rem;
border: 1px solid var(--color-accent, #22d3ee);
border-radius: 4px;
background: transparent;
color: var(--color-accent, #22d3ee);
font-size: 0.8rem;
font-weight: 600;
cursor: pointer;
transition: background 150ms, color 150ms;
}
.viewAsBtn:hover {
background: var(--color-accent, #22d3ee);
color: var(--color-bg, #0f0f1a);
}
.viewAsBtn:disabled {
opacity: 0.4;
cursor: not-allowed;
}
.actionBtns {
display: flex;
gap: 0.5rem;
}
.editAsBtn {
padding: 0.3rem 0.6rem;
border: 1px solid #dc2626;
border-radius: 4px;
background: transparent;
color: #dc2626;
font-size: 0.8rem;
font-weight: 600;
cursor: pointer;
transition: background 150ms, color 150ms;
}
.editAsBtn:hover {
background: #dc2626;
color: #fff;
}
.editAsBtn:disabled {
opacity: 0.4;
cursor: not-allowed;
}
.loading,
.error,
.empty {
text-align: center;
padding: 3rem 1rem;
color: var(--text-secondary, #828291);
}
.error {
color: #ef4444;
}
@media (max-width: 600px) {
.table th:nth-child(2),
.table td:nth-child(2) {
display: none;
}
}