Files
hrynco-notification-service/HrynCo.NotificationService.Web/wwwroot/css/admin.css
T
Anatolii Grynchuk c90b07386d feat: polished admin UI styles + email channels admin CRUD
- Extract inline styles to wwwroot/css/admin.css
- Bootstrap Icons for nav and buttons
- Styled page headers, table, empty state, readonly fields
- Email Channels admin: list, create, edit, delete
- GetAllEmailChannelsQuery + handler
- AdminChannelsController with full CRUD
- form id + form= attribute pattern for EditorLayout footer buttons

Ref: IT-628

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-05-02 02:43:59 +03:00

168 lines
4.5 KiB
CSS

/* ========================================================
Notification Service — Admin Panel Styles
======================================================== */
:root {
--sidebar-bg: #1a1d23;
--sidebar-width: 220px;
--sidebar-active: #0d6efd;
--sidebar-muted: #6c757d;
--navbar-border: rgba(255, 255, 255, 0.08);
}
/* ── Body ─────────────────────────────────────────────── */
body {
background-color: #f0f2f5;
}
/* ── Navbar ───────────────────────────────────────────── */
.admin-navbar {
border-bottom: 1px solid var(--navbar-border);
box-shadow: 0 1px 4px rgba(0, 0, 0, .35);
}
.admin-navbar .navbar-brand {
font-size: 1rem;
letter-spacing: .02em;
}
/* ── Sidebar ──────────────────────────────────────────── */
.sidebar {
min-height: calc(100vh - 56px);
background-color: var(--sidebar-bg);
padding-top: 1.25rem;
border-right: 1px solid rgba(255, 255, 255, 0.05);
}
.sidebar-section-label {
font-size: .65rem;
font-weight: 700;
letter-spacing: .12em;
text-transform: uppercase;
color: var(--sidebar-muted);
padding: .5rem 1rem .25rem;
margin-bottom: .1rem;
}
.sidebar .nav-link {
color: #adb5bd;
border-radius: .375rem;
margin-bottom: .2rem;
padding: .5rem .75rem;
font-size: .875rem;
display: flex;
align-items: center;
gap: .5rem;
border-left: 3px solid transparent;
transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.sidebar .nav-link:hover {
color: #fff;
background-color: rgba(255, 255, 255, 0.07);
border-left-color: rgba(255, 255, 255, 0.2);
}
.sidebar .nav-link.active {
color: #fff;
background-color: rgba(13, 110, 253, 0.18);
border-left-color: var(--sidebar-active);
font-weight: 600;
}
.sidebar .nav-link .bi {
font-size: 1rem;
flex-shrink: 0;
}
/* ── Main content ─────────────────────────────────────── */
.main-content {
padding: 1.5rem 2rem;
}
/* ── Page header ──────────────────────────────────────── */
.page-header {
display: flex;
justify-content: space-between;
align-items: center;
padding-bottom: .875rem;
margin-bottom: 1.5rem;
border-bottom: 2px solid #dee2e6;
}
.page-header h2 {
margin: 0;
font-size: 1.4rem;
font-weight: 700;
color: #212529;
display: flex;
align-items: center;
gap: .5rem;
}
/* ── Table ────────────────────────────────────────────── */
.table-card {
border-radius: .5rem;
overflow: hidden;
box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
}
.table tbody tr td {
vertical-align: middle;
}
/* ── Empty state ──────────────────────────────────────── */
.empty-state {
text-align: center;
padding: 3rem 2rem;
color: var(--sidebar-muted);
}
.empty-state .bi {
font-size: 3rem;
opacity: .4;
display: block;
margin-bottom: 1rem;
}
.empty-state p {
font-size: .95rem;
margin-bottom: 0;
}
/* ── Editor card ──────────────────────────────────────── */
.editor-card-header {
display: flex;
align-items: center;
gap: .5rem;
}
.editor-card-header .bi {
font-size: 1.1rem;
opacity: .85;
}
/* ── Form fields ──────────────────────────────────────── */
.form-control[readonly] {
background-color: #f8f9fa;
border-color: #dee2e6;
color: #6c757d;
cursor: not-allowed;
}
textarea.form-control {
resize: vertical;
}
/* ── Section divider inside editor card ──────────────── */
.form-section-title {
font-size: .7rem;
font-weight: 700;
letter-spacing: .1em;
text-transform: uppercase;
color: var(--sidebar-muted);
padding-bottom: .4rem;
margin-bottom: 1rem;
border-bottom: 1px solid #dee2e6;
}