Files
hrynco-notification-service/HrynCo.NotificationService.Web/wwwroot/css/admin.css
T
Anatolii Grynchuk 50828d23ec refactor: replace internal UnitOfWork with NotificationUnitOfWork and NotificationBaseRepository
- Consolidate unit of work implementation with NotificationUnitOfWork.
- Refactor repositories to use NotificationBaseRepository for consistency.
- Simplify request handlers by removing IUnitOfWork dependency.
- Update related tests and service registration.
2026-05-13 02:08:43 +03:00

312 lines
8.2 KiB
CSS

/* ========================================================
Notification Service — Admin Panel Styles
======================================================== */
:root {
--sidebar-bg: #1a1d23;
--sidebar-active: #0d6efd;
--sidebar-muted: #8a929e;
--content-bg: #f0f2f5;
--card-shadow: 0 2px 8px rgba(0,0,0,.10), 0 0 1px rgba(0,0,0,.08);
}
/* ── Body ─────────────────────────────────────────────── */
body {
background-color: var(--content-bg);
font-size: .9rem;
}
/* ── Navbar ───────────────────────────────────────────── */
.admin-navbar {
border-bottom: 1px solid rgba(255,255,255,.07);
box-shadow: 0 2px 6px rgba(0,0,0,.4);
height: 52px;
}
.admin-navbar .navbar-brand {
font-size: .95rem;
font-weight: 700;
letter-spacing: .02em;
}
/* ── Sidebar ──────────────────────────────────────────── */
.sidebar {
min-height: calc(100vh - 52px);
background-color: var(--sidebar-bg);
border-right: 1px solid rgba(255,255,255,.05);
padding: 1.25rem 0 1rem;
}
.sidebar-section-label {
font-size: .65rem;
font-weight: 700;
letter-spacing: .12em;
text-transform: uppercase;
color: var(--sidebar-muted);
padding: .25rem 1.25rem .5rem;
}
.sidebar .nav-link {
color: #adb5bd;
border-radius: 0 .375rem .375rem 0;
margin: .1rem .75rem .1rem 0;
padding: .5rem 1rem;
font-size: .85rem;
display: flex;
align-items: center;
gap: .6rem;
border-left: 3px solid transparent;
transition: background .15s, color .15s, border-color .15s;
}
.sidebar .nav-link:hover {
color: #fff;
background-color: rgba(255,255,255,.06);
border-left-color: rgba(255,255,255,.2);
}
.sidebar .nav-link.active {
color: #fff;
background-color: rgba(13,110,253,.2);
border-left-color: var(--sidebar-active);
font-weight: 600;
}
.sidebar .nav-link .bi { font-size: .95rem; flex-shrink: 0; }
/* ── Main content ─────────────────────────────────────── */
.main-content { padding: 1.75rem 2rem; }
/* ── Page header ──────────────────────────────────────── */
.page-header {
display: flex;
justify-content: space-between;
align-items: center;
padding-bottom: .875rem;
margin-bottom: 1.5rem;
border-bottom: 1px solid #dee2e6;
}
.page-header h2 {
margin: 0;
font-size: 1.25rem;
font-weight: 700;
color: #212529;
display: flex;
align-items: center;
gap: .45rem;
}
/* ── Table card ───────────────────────────────────────── */
.table-card {
border: none;
border-radius: .5rem;
box-shadow: var(--card-shadow);
overflow: hidden;
}
.table { font-size: .875rem; }
.table tbody tr td { vertical-align: middle; }
.table thead th { font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
/* ── Empty state ──────────────────────────────────────── */
.empty-state {
text-align: center;
padding: 3.5rem 2rem;
color: var(--sidebar-muted);
}
.empty-state .bi { font-size: 2.5rem; opacity: .35; display: block; margin-bottom: .75rem; }
.empty-state p { font-size: .9rem; margin-bottom: 0; }
/* ── Editor wrapper ──────────────────────────────────── */
.editor-wrapper {
width: 100%;
max-width: none;
}
/* ── Editor card ──────────────────────────────────────── */
.editor-card {
border: none;
border-radius: .5rem;
box-shadow: var(--card-shadow);
}
.editor-card-header-bar {
background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
color: #fff;
font-size: .9rem;
font-weight: 600;
padding: .75rem 1.25rem;
border-bottom: none;
display: flex;
align-items: center;
border-radius: .5rem .5rem 0 0 !important;
}
.editor-card-body { padding: 1.5rem 1.5rem 1rem; }
.editor-card-footer {
background-color: #f8f9fa;
border-top: 1px solid #e9ecef;
padding: .875rem 1.5rem;
display: flex;
justify-content: flex-end;
gap: .5rem;
border-radius: 0 0 .5rem .5rem !important;
}
/* ── Editor tabs ─────────────────────────────────────── */
.template-editor-tabs {
border-bottom-color: #dce3eb;
}
.template-editor-tabs .nav-link {
color: #526072;
font-weight: 600;
border-radius: .5rem .5rem 0 0;
}
.template-editor-tabs .nav-link.active {
color: #0d6efd;
}
/* ── Tab content ──────────────────────────────────────── */
.tab-content {
min-width: 0;
}
/* ── Email template preview ───────────────────────────── */
.template-preview-panel {
border: 1px solid #dce3eb;
border-radius: .75rem;
background: #fff;
overflow: hidden;
box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
}
.template-preview-panel-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: 1rem;
padding: 1rem 1.25rem;
background: linear-gradient(180deg, #f9fbff 0%, #f3f6fb 100%);
border-bottom: 1px solid #e1e7ef;
}
.template-preview-title {
font-size: .9rem;
font-weight: 700;
color: #1f2937;
}
.template-preview-subtitle {
font-size: .82rem;
color: #6b7280;
margin-top: .15rem;
}
.template-preview-body {
display: grid;
grid-template-columns: minmax(0, 1fr);
gap: 1rem;
padding: 1rem 1.25rem 1.25rem;
}
.template-preview-source,
.template-preview-output {
min-width: 0;
}
.template-preview-section-block {
padding: 1rem;
border: 1px solid #e5ebf2;
border-radius: .65rem;
background: #fafcff;
}
.template-preview-section-title {
font-size: .7rem;
font-weight: 700;
letter-spacing: .08em;
text-transform: uppercase;
color: #6b7280;
margin-bottom: .5rem;
}
.template-preview-variables {
display: flex;
flex-direction: column;
gap: .75rem;
max-width: 420px;
}
.template-preview-variables .form-control-sm {
background: #fff;
}
.template-preview-subject {
padding: .75rem 1rem;
border: 1px dashed #cfd8e3;
border-radius: .5rem;
background: #f8fafc;
min-height: 3rem;
font-weight: 600;
color: #111827;
white-space: pre-wrap;
word-break: break-word;
}
.template-preview-frame {
width: 100%;
height: 420px;
border: 1px solid #cfd8e3;
border-radius: .5rem;
background: #eef2f7;
}
.template-preview-text {
padding: .75rem 1rem;
border: 1px solid #cfd8e3;
border-radius: .5rem;
background: #0f172a;
color: #e2e8f0;
min-height: 120px;
white-space: pre-wrap;
word-break: break-word;
}
@media (max-width: 992px) {
.template-preview-body {
grid-template-columns: 1fr;
}
.template-preview-frame {
height: 360px;
}
}
/* ── Form-section divider ─────────────────────────────── */
.form-section-title {
font-size: .68rem;
font-weight: 700;
letter-spacing: .1em;
text-transform: uppercase;
color: var(--sidebar-muted);
padding-bottom: .4rem;
margin-bottom: 1rem;
border-bottom: 1px solid #dee2e6;
}
/* ── Form fields ──────────────────────────────────────── */
.form-label { font-size: .82rem; margin-bottom: .3rem; }
.form-control[readonly] {
background-color: #f4f5f7;
border-color: #e2e5e9;
color: #6c757d;
cursor: not-allowed;
}
textarea.form-control { resize: vertical; }