This commit is contained in:
2026-06-30 15:53:01 +07:00
parent 595aebd8a5
commit 74b540cac2
19 changed files with 1719 additions and 252 deletions

View File

@@ -4505,3 +4505,549 @@ input:checked + .slider:before {
.exam-git-last a {
color: var(--accent);
}
/* ── Mobile sidebar drawer ── */
.mobile-menu-btn {
display: none;
position: fixed;
top: 0.75rem;
left: 0.75rem;
z-index: 30;
width: 42px;
height: 42px;
border-radius: var(--radius-sm);
border: 1px solid var(--border-color);
background: var(--bg-card);
color: var(--text-primary);
box-shadow: var(--shadow-sm);
align-items: center;
justify-content: center;
cursor: pointer;
}
.mobile-menu-btn svg {
width: 22px;
height: 22px;
}
.sidebar-backdrop {
display: none;
position: fixed;
inset: 0;
z-index: 19;
background: rgba(15, 23, 42, 0.45);
border: none;
cursor: pointer;
}
.nav-sub {
list-style: none;
margin: 0 0 0.35rem 0;
padding: 0 0 0 2.15rem;
}
.nav-sub .nav-btn {
font-size: 0.82rem;
padding: 0.45rem 0.65rem;
min-height: auto;
}
.nav-sub .nav-btn::before {
display: none;
}
.nav-sub .nav-btn.active {
background: var(--accent-light);
color: var(--accent);
font-weight: 600;
}
@media (max-width: 900px) {
.mobile-menu-btn {
display: inline-flex;
}
.sidebar-backdrop {
display: block;
}
.sidebar {
transform: translateX(-110%);
transition: transform 0.28s ease;
z-index: 25;
box-shadow: var(--shadow-md);
}
.sidebar.sidebar--open {
transform: translateX(0);
}
.main-content {
margin-left: 0;
padding: 3.75rem 0.85rem 1rem;
}
}
/* ── System management ── */
.system-page {
overflow-y: auto;
padding-bottom: 1.5rem;
}
.system-subnav {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 0.65rem;
margin-bottom: 1.25rem;
}
.system-subnav-btn {
display: flex;
align-items: flex-start;
gap: 0.65rem;
text-align: left;
padding: 0.85rem 1rem;
border-radius: var(--radius-md);
border: 1px solid var(--border-color);
background: var(--bg-card);
cursor: pointer;
transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.system-subnav-btn:hover {
border-color: rgba(198, 40, 40, 0.35);
}
.system-subnav-btn.active {
border-color: var(--accent);
background: var(--accent-light);
box-shadow: 0 0 0 1px rgba(198, 40, 40, 0.12);
}
.system-subnav-icon {
width: 36px;
height: 36px;
border-radius: var(--radius-sm);
background: var(--bg-subtle);
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
color: var(--accent);
}
.system-subnav-btn.active .system-subnav-icon {
background: rgba(198, 40, 40, 0.12);
}
.system-subnav-icon svg {
width: 18px;
height: 18px;
}
.system-subnav-text {
display: flex;
flex-direction: column;
gap: 0.15rem;
min-width: 0;
}
.system-subnav-text strong {
font-size: 0.88rem;
color: var(--text-primary);
}
.system-subnav-text small {
font-size: 0.72rem;
color: var(--text-muted);
}
.system-panel {
min-height: 200px;
}
.system-section {
display: flex;
flex-direction: column;
gap: 1rem;
}
.system-section--grid {
display: grid;
grid-template-columns: 1fr 280px;
gap: 1rem;
align-items: start;
}
.system-block {
background: var(--bg-card);
border: 1px solid var(--border-color);
border-radius: var(--radius-md);
padding: 1.15rem 1.25rem;
box-shadow: var(--shadow-sm);
}
.system-block--info {
background: var(--bg-subtle);
}
.system-block-head {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 1rem;
margin-bottom: 1rem;
}
.system-block-title {
margin: 0 0 0.35rem;
font-size: 1.05rem;
font-weight: 700;
}
.system-block-desc {
margin: 0;
font-size: 0.84rem;
color: var(--text-muted);
line-height: 1.5;
max-width: 52rem;
}
.system-stat-pill {
flex-shrink: 0;
padding: 0.25rem 0.65rem;
border-radius: 99px;
font-size: 0.75rem;
font-weight: 700;
background: var(--bg-subtle);
border: 1px solid var(--border-color);
color: var(--text-muted);
}
.system-inline-form {
display: flex;
gap: 0.5rem;
margin-bottom: 1rem;
}
.system-inline-form input {
flex: 1;
min-width: 0;
}
.system-inline-form--stack {
flex-direction: column;
}
.system-empty {
padding: 1.25rem;
text-align: center;
color: var(--text-muted);
font-size: 0.88rem;
border: 1px dashed var(--border-color);
border-radius: var(--radius-sm);
background: var(--bg-subtle);
}
.system-empty--muted {
background: transparent;
}
.system-domain-list {
list-style: none;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
gap: 0.45rem;
}
.system-domain-item {
display: flex;
align-items: center;
justify-content: space-between;
gap: 0.75rem;
padding: 0.65rem 0.85rem;
border: 1px solid var(--border-color);
border-radius: var(--radius-sm);
background: var(--bg-subtle);
}
.system-domain-label {
font-weight: 600;
font-family: ui-monospace, monospace;
font-size: 0.88rem;
}
.system-info-title {
margin: 0 0 0.65rem;
font-size: 0.92rem;
font-weight: 700;
}
.system-form-card {
background: var(--bg-subtle);
border: 1px solid var(--border-color);
border-radius: var(--radius-md);
padding: 1rem 1.15rem;
margin-bottom: 1rem;
}
.system-form-title {
margin: 0 0 0.85rem;
font-size: 0.95rem;
font-weight: 700;
}
.system-form-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 0.75rem;
}
.system-form-full {
grid-column: 1 / -1;
}
.system-form-actions {
display: flex;
align-items: center;
justify-content: space-between;
gap: 0.75rem;
margin-top: 0.85rem;
flex-wrap: wrap;
}
.system-form-actions-right {
display: flex;
gap: 0.5rem;
}
.system-table-wrap {
overflow-x: auto;
margin-bottom: 0.75rem;
}
.template-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
gap: 0.75rem;
}
.template-card {
border: 1px solid var(--border-color);
border-radius: var(--radius-md);
padding: 0.9rem 1rem;
background: var(--bg-subtle);
display: flex;
flex-direction: column;
gap: 0.45rem;
}
.template-card-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 0.5rem;
}
.template-card-head h3 {
margin: 0;
font-size: 0.95rem;
}
.template-card-badge {
font-size: 0.7rem;
font-weight: 700;
padding: 0.15rem 0.45rem;
border-radius: 99px;
background: var(--bg-card);
border: 1px solid var(--border-color);
color: var(--text-muted);
}
.template-card-desc {
margin: 0;
font-size: 0.8rem;
color: var(--text-muted);
}
.template-card-kw {
display: block;
font-size: 0.72rem;
line-height: 1.45;
padding: 0.45rem 0.55rem;
border-radius: var(--radius-sm);
background: var(--bg-card);
border: 1px solid var(--border-light);
word-break: break-word;
max-height: 4.5rem;
overflow: hidden;
}
.template-card-actions {
display: flex;
gap: 0.35rem;
margin-top: 0.25rem;
}
.template-picker-list {
display: flex;
flex-direction: column;
gap: 0.65rem;
}
.template-picker-card {
border: 1px solid var(--border-color);
border-radius: var(--radius-md);
padding: 0.85rem 1rem;
background: var(--bg-subtle);
}
.template-picker-card-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 0.5rem;
margin-bottom: 0.35rem;
}
.template-picker-count {
font-size: 0.72rem;
color: var(--text-muted);
font-weight: 600;
}
.template-picker-desc {
margin: 0 0 0.35rem;
font-size: 0.8rem;
color: var(--text-muted);
}
.template-picker-kw {
display: block;
font-size: 0.72rem;
margin-bottom: 0.65rem;
word-break: break-word;
}
.template-picker-apply {
width: 100%;
justify-content: center;
}
.app-pool-open-actions {
display: flex;
flex-wrap: wrap;
gap: 0.45rem;
justify-content: flex-end;
}
/* ── Exams list cards ── */
.exams-page {
overflow-y: auto;
padding-bottom: 1.5rem;
}
.exams-stats-row {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 0.75rem;
margin-bottom: 1rem;
}
.exams-toolbar {
margin-bottom: 1rem;
}
.exams-search {
max-width: 420px;
}
.exams-create-card {
margin-bottom: 1rem;
}
.exams-card-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
gap: 0.85rem;
}
.exam-list-card {
background: var(--bg-card);
border: 1px solid var(--border-color);
border-radius: var(--radius-md);
padding: 1rem 1.1rem;
display: flex;
flex-direction: column;
gap: 0.75rem;
box-shadow: var(--shadow-sm);
transition: border-color 0.15s, box-shadow 0.15s;
}
.exam-list-card:hover {
border-color: rgba(198, 40, 40, 0.3);
box-shadow: var(--shadow-md);
}
.exam-list-card-head {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 0.65rem;
}
.exam-list-card-head h3 {
margin: 0;
font-size: 1rem;
line-height: 1.35;
}
.exam-list-card-meta {
display: flex;
flex-direction: column;
gap: 0.45rem;
font-size: 0.8rem;
color: var(--text-secondary);
}
.exam-list-card-meta > div {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 0.35rem;
}
.exam-list-card-label {
font-weight: 700;
color: var(--text-muted);
margin-right: 0.25rem;
}
.exam-list-card-sep {
color: var(--text-muted);
}
.exam-list-card-open {
width: 100%;
justify-content: center;
}
@media (max-width: 900px) {
.system-subnav {
grid-template-columns: 1fr;
}
.system-section--grid {
grid-template-columns: 1fr;
}
.system-form-grid {
grid-template-columns: 1fr;
}
.exams-stats-row {
grid-template-columns: 1fr;
}
}