This commit is contained in:
2026-06-30 11:51:34 +07:00
parent fd08bee7ab
commit 0abf48ea2d
28 changed files with 3514 additions and 37 deletions

View File

@@ -797,6 +797,12 @@ input:checked + .slider:before {
border: 1px solid rgba(187, 33, 38, 0.2);
}
.badge-warning {
background-color: #fff8e6;
color: #b45309;
border: 1px solid rgba(180, 83, 9, 0.25);
}
.courses-tag-list {
display: flex;
flex-wrap: wrap;
@@ -3729,3 +3735,514 @@ input:checked + .slider:before {
border: 1px solid var(--border-color);
font-size: 0.84rem;
}
/* ── Exam workspace ── */
.exam-workspace {
flex: 1;
min-height: 0;
height: 100%;
}
.exam-workspace-header {
flex-shrink: 0;
}
.exam-workspace-actions {
display: flex;
gap: 0.5rem;
flex-wrap: wrap;
align-items: center;
}
.exam-workspace-alert {
flex-shrink: 0;
margin: 0;
}
.exam-workspace-scroll {
flex: 1;
min-height: 0;
padding-bottom: 1rem;
}
.exam-section-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 1rem;
}
.exam-section-grid--bottom {
margin-top: 0;
}
@media (max-width: 960px) {
.exam-section-grid {
grid-template-columns: 1fr;
}
}
.exam-section {
padding: 1.15rem 1.25rem;
display: flex;
flex-direction: column;
gap: 0.85rem;
min-width: 0;
}
.exam-section-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 0.75rem;
flex-wrap: wrap;
}
.exam-section-title {
margin: 0;
font-size: 1rem;
font-weight: 700;
color: var(--text-primary);
}
.exam-section-toolbar {
display: flex;
gap: 0.5rem;
align-items: center;
flex-wrap: wrap;
}
.exam-section-toolbar .search-input {
min-width: 140px;
width: auto;
}
.exam-form-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 0.75rem;
}
@media (max-width: 640px) {
.exam-form-grid {
grid-template-columns: 1fr;
}
}
.exam-section-students {
min-height: 280px;
}
.exam-students-panel {
padding: 0;
overflow: hidden;
}
.exam-students-head {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 1rem;
flex-wrap: wrap;
padding: 1.15rem 1.25rem 0.85rem;
border-bottom: 1px solid var(--border-light);
background: #fff;
flex-shrink: 0;
}
.exam-online-stat {
margin: 0.35rem 0 0;
font-size: 0.8rem;
color: var(--text-muted);
font-weight: 600;
}
.exam-online-count {
color: var(--success);
font-size: 1rem;
font-weight: 800;
}
.exam-online-sep {
margin: 0 0.2rem;
color: var(--text-muted);
}
.exam-students-toolbar {
display: flex;
align-items: center;
gap: 0.65rem;
flex-wrap: wrap;
}
.exam-students-search {
min-width: 200px;
}
.exam-students-search .search-input {
width: 100%;
min-width: 180px;
}
.exam-students-body {
padding: 1rem 1.25rem 1.15rem;
max-height: min(52vh, 520px);
overflow-y: auto;
overflow-x: hidden;
}
.exam-student-grid {
padding-right: 0.15rem;
}
.exam-student-card {
align-items: flex-start;
position: relative;
}
.exam-student-card-main {
display: flex;
flex-direction: column;
flex: 1;
min-width: 0;
overflow: hidden;
}
.exam-student-card-name {
font-size: 0.875rem;
font-weight: 600;
color: var(--text-primary);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.exam-student-card-code {
font-size: 0.78rem;
color: var(--accent);
font-family: monospace;
font-weight: 600;
}
.exam-student-card-status {
display: flex;
align-items: center;
gap: 0.35rem;
margin-top: 0.4rem;
}
.exam-student-online-label {
font-size: 0.75rem;
font-weight: 700;
color: var(--success);
}
.exam-student-offline-label {
font-size: 0.75rem;
font-weight: 700;
color: var(--text-muted);
}
.exam-student-card-tags {
display: flex;
flex-wrap: wrap;
gap: 0.35rem;
margin-top: 0.5rem;
}
.exam-student-tag {
font-size: 0.7rem;
font-weight: 600;
padding: 0.15rem 0.45rem;
border-radius: 999px;
background: var(--bg-subtle);
border: 1px solid var(--border-light);
color: var(--text-secondary);
max-width: 100%;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.exam-student-tag--muted {
color: var(--text-muted);
}
.exam-student-tag--ok {
background: var(--success-light);
color: var(--success);
border-color: rgba(13, 159, 110, 0.25);
}
.exam-student-tag--sent {
background: var(--accent-light);
color: var(--accent);
border-color: rgba(187, 33, 38, 0.2);
}
.exam-student-card-actions {
display: flex;
flex-direction: column;
gap: 0.25rem;
flex-shrink: 0;
}
.exam-student-chat-btn {
font-size: 1rem !important;
line-height: 1;
}
.exam-students-table-scroll {
max-height: min(46vh, 460px);
overflow: auto;
border: 1px solid var(--border-light);
border-radius: var(--radius-md);
}
.exam-students-table-scroll .data-table thead {
position: sticky;
top: 0;
z-index: 2;
background: #fff;
box-shadow: 0 1px 0 var(--border-light);
}
.exam-students-table-scroll .data-table th {
background: #fff;
}
.exam-submissions-scroll .data-table thead {
position: sticky;
top: 0;
z-index: 2;
background: #fff;
}
.exam-student-row-clickable {
cursor: pointer;
}
.exam-student-row-clickable:hover td {
background: var(--bg-subtle);
}
.exam-row-status {
display: inline-flex;
align-items: center;
gap: 0.35rem;
font-size: 0.78rem;
font-weight: 700;
}
.exam-row-status.online {
color: var(--success);
}
.exam-row-status.offline {
color: var(--text-muted);
}
.exam-student-row-actions {
white-space: nowrap;
}
.exam-table-wrap {
flex: 1;
min-height: 0;
max-height: 320px;
overflow: auto;
border: 1px solid var(--border-light);
border-radius: var(--radius-md);
}
.exam-table-wrap--short {
max-height: 240px;
}
.exam-table-empty {
text-align: center;
color: var(--text-muted);
padding: 2rem 1rem !important;
}
.exam-cell-muted {
font-size: 0.78rem;
color: var(--text-muted);
}
.exam-empty-state {
text-align: center;
padding: 1.5rem 1rem;
color: var(--text-muted);
background: var(--bg-subtle);
border-radius: var(--radius-md);
border: 1px dashed var(--border-color);
}
.exam-empty-state span {
font-size: 1.75rem;
display: block;
margin-bottom: 0.35rem;
}
.exam-empty-state--compact {
padding: 1rem;
}
.exam-paper-list {
list-style: none;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
gap: 0.65rem;
}
.exam-paper-item {
border: 1px solid var(--border-light);
border-radius: var(--radius-md);
padding: 0.75rem 0.85rem;
background: var(--bg-subtle);
}
.exam-paper-item-head {
display: flex;
justify-content: space-between;
align-items: center;
gap: 0.5rem;
}
.exam-paper-meta {
font-size: 0.78rem;
color: var(--text-muted);
margin-top: 0.25rem;
}
.exam-paper-add-res {
margin-top: 0.5rem;
cursor: pointer;
}
.exam-send-row {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
align-items: center;
}
.exam-send-row .search-input {
width: auto;
min-width: 180px;
}
.exam-student-overlay {
padding: 1.5rem;
}
.exam-student-modal {
max-width: min(920px, 96vw);
width: 100%;
max-height: min(88vh, 760px);
display: flex;
flex-direction: column;
}
.exam-student-modal-header {
flex-shrink: 0;
}
.exam-student-modal-desc {
margin: 0.35rem 0 0;
color: var(--text-muted);
font-size: 0.88rem;
}
.exam-student-modal-body {
padding: 0 1.5rem 1.5rem;
display: flex;
flex-direction: column;
gap: 0.85rem;
flex: 1;
min-height: 0;
overflow: hidden;
}
.exam-student-modal-search .search-input {
width: 100%;
padding: 0.7rem 2.5rem 0.7rem 0.85rem;
font-size: 0.95rem;
}
.exam-student-hits {
flex: 1;
min-height: 280px;
max-height: min(62vh, 560px);
overflow-y: auto;
display: flex;
flex-direction: column;
gap: 0.65rem;
padding-right: 0.2rem;
}
.exam-student-hits-empty {
text-align: center;
padding: 2.5rem 1rem;
color: var(--text-muted);
}
.exam-student-hits-empty span {
font-size: 2rem;
display: block;
margin-bottom: 0.5rem;
}
.exam-student-hit {
display: grid;
grid-template-columns: auto 1fr auto;
align-items: center;
gap: 0.85rem;
padding: 0.85rem 1rem;
border: 1px solid var(--border-light);
border-radius: var(--radius-md);
background: #fff;
transition: var(--transition);
}
.exam-student-hit:hover {
border-color: var(--accent);
box-shadow: 0 2px 10px rgba(187, 33, 38, 0.08);
}
.exam-student-hit-info {
min-width: 0;
}
.exam-student-hit-info strong {
display: block;
font-size: 0.95rem;
margin-bottom: 0.2rem;
}
.exam-student-hit-meta {
font-size: 0.8rem;
color: var(--text-muted);
line-height: 1.45;
word-break: break-word;
}
.exam-student-hit-meta code {
font-size: 0.78rem;
color: var(--accent);
font-weight: 700;
}
@media (max-width: 640px) {
.exam-student-hit {
grid-template-columns: 1fr;
text-align: left;
}
.exam-student-hit .btn {
width: 100%;
justify-content: center;
}
}