337 lines
7.8 KiB
CSS
337 lines
7.8 KiB
CSS
/* ═══════════════════════════════════════════════════════════════════════════
|
|
* Check List PoC — Custom styles (Bootstrap 5 handles layout + components)
|
|
* Only app-specific overrides and classes that JS depends on live here.
|
|
* ═══════════════════════════════════════════════════════════════════════════ */
|
|
|
|
:root {
|
|
--font-ui: "Inter", "Segoe UI", sans-serif;
|
|
}
|
|
|
|
body {
|
|
font-family: var(--font-ui);
|
|
}
|
|
|
|
/* ── Sidebar (shared across pages) ──────────────────────────────────────── */
|
|
|
|
.sidebar-bs {
|
|
font-family: var(--font-ui);
|
|
}
|
|
|
|
/* ── Admin panel visibility (JS toggles these) ──────────────────────────── */
|
|
|
|
.admin-panel {
|
|
display: none;
|
|
}
|
|
|
|
.admin-panel-active {
|
|
display: block;
|
|
}
|
|
|
|
/* ── Admin navigation (sidebar category tree) ───────────────────────────── */
|
|
|
|
.admin-nav-sub {
|
|
display: none;
|
|
}
|
|
|
|
.admin-nav-cat.is-open > .admin-nav-sub {
|
|
display: block;
|
|
}
|
|
|
|
.admin-nav-item.is-active {
|
|
font-weight: 700;
|
|
color: var(--bs-primary) !important;
|
|
text-decoration: none;
|
|
}
|
|
|
|
/* ── Workspace views (JS toggling for user page) ────────────────────────── */
|
|
|
|
.workspace-view {
|
|
display: none;
|
|
}
|
|
|
|
.workspace-view-active {
|
|
display: block;
|
|
}
|
|
|
|
/* ── Toast notification ─────────────────────────────────────────────────── */
|
|
|
|
.admin-toast {
|
|
position: fixed;
|
|
top: 20px;
|
|
right: 20px;
|
|
z-index: 9000;
|
|
padding: 12px 20px;
|
|
border-radius: 999px;
|
|
font-weight: 700;
|
|
font-size: 0.88rem;
|
|
opacity: 0;
|
|
transform: translateY(-10px);
|
|
pointer-events: none;
|
|
transition: opacity 200ms ease, transform 200ms ease;
|
|
background: #198754;
|
|
color: #fff;
|
|
}
|
|
|
|
.admin-toast-visible {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
pointer-events: auto;
|
|
}
|
|
|
|
/* ── Report list (index.html sidebar) ───────────────────────────────────── */
|
|
|
|
.report-list {
|
|
display: grid;
|
|
gap: 8px;
|
|
max-height: 420px;
|
|
overflow: auto;
|
|
}
|
|
|
|
.report-list-item {
|
|
width: 100%;
|
|
text-align: left;
|
|
border: 1px solid rgba(0, 0, 0, 0.1);
|
|
background: #fff;
|
|
border-radius: 8px;
|
|
padding: 10px 12px;
|
|
display: grid;
|
|
gap: 4px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.report-list-item:hover {
|
|
background: #f8f9fa;
|
|
}
|
|
|
|
.report-list-item.is-active,
|
|
.report-list-item--active {
|
|
border-color: var(--bs-primary);
|
|
background: rgba(13, 110, 253, 0.05);
|
|
}
|
|
|
|
.report-list-item__header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 8px;
|
|
}
|
|
|
|
.report-list-item__title {
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.report-list-item__meta {
|
|
color: #6c757d;
|
|
font-size: 0.8rem;
|
|
}
|
|
|
|
/* ── Task record cards (user page) ──────────────────────────────────────── */
|
|
|
|
.task-record-card {
|
|
border: 1px solid rgba(0, 0, 0, 0.1);
|
|
border-radius: 8px;
|
|
padding: 16px;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.task-record-header {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: 8px;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.task-record-sort {
|
|
font-weight: 700;
|
|
font-size: 0.9rem;
|
|
color: var(--bs-primary);
|
|
}
|
|
|
|
.task-record-desc {
|
|
flex: 1;
|
|
font-size: 0.92rem;
|
|
}
|
|
|
|
.task-record-meta {
|
|
font-size: 0.8rem;
|
|
color: #6c757d;
|
|
}
|
|
|
|
.task-record-fields {
|
|
margin-top: 8px;
|
|
}
|
|
|
|
.task-record-images {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.task-img-thumb {
|
|
position: relative;
|
|
display: inline-block;
|
|
}
|
|
|
|
.task-img-thumb img {
|
|
width: 64px;
|
|
height: 64px;
|
|
object-fit: cover;
|
|
border-radius: 6px;
|
|
border: 1px solid rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.task-img-thumb .btn-remove {
|
|
position: absolute;
|
|
top: -4px;
|
|
right: -4px;
|
|
background: #fff;
|
|
border-radius: 50%;
|
|
width: 20px;
|
|
height: 20px;
|
|
padding: 0;
|
|
line-height: 20px;
|
|
text-align: center;
|
|
font-size: 0.8rem;
|
|
border: 1px solid rgba(0, 0, 0, 0.15);
|
|
}
|
|
|
|
/* ── Drop zone (drag & drop images) ────────────────────────────────────── */
|
|
|
|
.drop-zone {
|
|
cursor: pointer;
|
|
transition: border-color 150ms ease, background-color 150ms ease;
|
|
}
|
|
|
|
.drop-zone:hover {
|
|
border-color: var(--bs-primary) !important;
|
|
background: rgba(13, 110, 253, 0.03);
|
|
}
|
|
|
|
/* ── Bulk image drop zone (smaller for inline use) ────────────────────── */
|
|
|
|
.bulk-drop-zone {
|
|
cursor: pointer;
|
|
transition: border-color 150ms ease, background-color 150ms ease;
|
|
font-size: 0.8rem;
|
|
}
|
|
|
|
.bulk-drop-zone:hover {
|
|
border-color: var(--bs-primary) !important;
|
|
background: rgba(13, 110, 253, 0.05);
|
|
}
|
|
|
|
.bulk-img-thumb img {
|
|
border: 1px solid #dee2e6;
|
|
}
|
|
|
|
/* ── Portal page ────────────────────────────────────────────────────────── */
|
|
|
|
.portal-body {
|
|
display: grid;
|
|
place-items: center;
|
|
min-height: 100vh;
|
|
padding: 24px;
|
|
background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
|
|
}
|
|
|
|
/* ── Connection badges (JS sets these classes) ──────────────────────────── */
|
|
|
|
.badge-online {
|
|
background-color: #198754 !important;
|
|
color: #fff !important;
|
|
}
|
|
|
|
.badge-offline {
|
|
background-color: #ffc107 !important;
|
|
color: #000 !important;
|
|
}
|
|
|
|
.badge-error {
|
|
background-color: #dc3545 !important;
|
|
color: #fff !important;
|
|
}
|
|
|
|
/* ── Sub-category group styling ─────────────────────────────────────────── */
|
|
|
|
.sub-cat-header {
|
|
cursor: pointer;
|
|
user-select: none;
|
|
}
|
|
|
|
.sub-cat-chevron {
|
|
transition: transform 200ms ease;
|
|
}
|
|
|
|
.sub-cat-chevron.rotated {
|
|
transform: rotate(90deg);
|
|
}
|
|
|
|
/* ── Mobile hamburger button (hidden on desktop) ───────────────────────── */
|
|
|
|
.mobile-menu-btn {
|
|
display: none;
|
|
position: fixed;
|
|
bottom: 16px;
|
|
left: 16px;
|
|
z-index: 1060;
|
|
width: 48px;
|
|
height: 48px;
|
|
border-radius: 50%;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 1.3rem;
|
|
box-shadow: 0 2px 8px rgba(0,0,0,0.2);
|
|
}
|
|
|
|
/* ── Responsive ─────────────────────────────────────────────────────────── */
|
|
|
|
/* Toggle button chevron rotation */
|
|
#toggleTaskInfoBtn .bi-chevron-up {
|
|
transition: transform 200ms ease;
|
|
}
|
|
#taskInfoCollapse:not(.show) ~ .d-md-none #toggleTaskInfoBtn .bi-chevron-up,
|
|
.collapsed .bi-chevron-up {
|
|
transform: rotate(180deg);
|
|
}
|
|
|
|
@media (max-width: 992px) {
|
|
.sidebar-bs {
|
|
width: 220px !important;
|
|
min-width: 220px !important;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.sidebar-bs {
|
|
display: flex !important;
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
height: 100vh;
|
|
width: 260px !important;
|
|
min-width: 260px !important;
|
|
z-index: 1050;
|
|
transform: translateX(-100%);
|
|
transition: transform 250ms ease;
|
|
box-shadow: none;
|
|
}
|
|
.sidebar-bs.sidebar-open {
|
|
transform: translateX(0);
|
|
box-shadow: 4px 0 16px rgba(0,0,0,0.15);
|
|
}
|
|
.sidebar-backdrop {
|
|
display: none;
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 1040;
|
|
background: rgba(0,0,0,0.3);
|
|
}
|
|
.sidebar-backdrop.show {
|
|
display: block;
|
|
}
|
|
.mobile-menu-btn {
|
|
display: flex !important;
|
|
}
|
|
} |