- 移除教师端 hero 的英文眉标(TEACHING DAY),日期并入正文描述 - 删除不再使用的 attendance-eyebrow 样式 - Dashboard 的 ══ 装饰注释改为普通注释 kill-ai-slop 扫描: 18 处命中 → 7 处(剩余均为合理用法: 链接 hover 下划线、头像圆形角)
1445 lines
24 KiB
CSS
1445 lines
24 KiB
CSS
.attendance-page {
|
|
--ink: #172033;
|
|
--muted: #667085;
|
|
--line: #e6eaf0;
|
|
--blue: #1677ff;
|
|
color: var(--ink);
|
|
padding-bottom: 28px;
|
|
}
|
|
|
|
.attendance-hero {
|
|
position: relative;
|
|
overflow: hidden;
|
|
display: flex;
|
|
align-items: flex-end;
|
|
justify-content: space-between;
|
|
gap: 24px;
|
|
min-height: 188px;
|
|
padding: 34px 38px;
|
|
margin-bottom: 18px;
|
|
border-radius: 18px;
|
|
}
|
|
|
|
.attendance-hero::after {
|
|
content: '';
|
|
position: absolute;
|
|
width: 320px;
|
|
height: 320px;
|
|
right: -105px;
|
|
top: -165px;
|
|
border: 64px solid rgb(255 255 255 / 8%);
|
|
border-radius: 50%;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.attendance-hero--teacher {
|
|
color: white;
|
|
background: linear-gradient(125deg, #122c5a 0%, #174c93 58%, #1e78c8 100%);
|
|
box-shadow: 0 14px 34px rgb(24 76 147 / 18%);
|
|
}
|
|
|
|
.attendance-hero--admin {
|
|
color: #172033;
|
|
background: linear-gradient(120deg, #f7f9fc 0%, #eef3f9 100%);
|
|
border: 1px solid #e2e8f0;
|
|
}
|
|
|
|
.attendance-hero h1 {
|
|
margin: 7px 0 8px;
|
|
font-size: clamp(28px, 3vw, 40px);
|
|
line-height: 1.15;
|
|
letter-spacing: -1.2px;
|
|
}
|
|
|
|
.attendance-hero p {
|
|
max-width: 650px;
|
|
margin: 0;
|
|
color: inherit;
|
|
opacity: 0.72;
|
|
font-size: 15px;
|
|
}
|
|
|
|
.teacher-topbar {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 16px;
|
|
margin-bottom: 14px;
|
|
padding: 12px 14px;
|
|
border: 1px solid var(--line);
|
|
border-radius: 14px;
|
|
background: #fff;
|
|
box-shadow: 0 5px 18px rgb(23 32 51 / 4%);
|
|
}
|
|
|
|
.teacher-topbar-select {
|
|
min-width: 160px;
|
|
}
|
|
|
|
.teacher-workspace-layout {
|
|
display: grid;
|
|
grid-template-columns: 168px minmax(0, 1fr);
|
|
gap: 16px;
|
|
}
|
|
|
|
.teacher-filter-rail {
|
|
position: sticky;
|
|
top: 16px;
|
|
align-self: start;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
padding: 14px;
|
|
border: 1px solid var(--line);
|
|
border-radius: 14px;
|
|
background: #fff;
|
|
box-shadow: 0 5px 18px rgb(23 32 51 / 4%);
|
|
}
|
|
|
|
.teacher-filter-title {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 7px;
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.teacher-filter-select {
|
|
width: 100%;
|
|
}
|
|
|
|
.teacher-filter-hint {
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.teacher-main-panel {
|
|
min-width: 0;
|
|
}
|
|
|
|
.current-lesson-card {
|
|
margin-bottom: 18px;
|
|
border: 1px solid #d8e6fb;
|
|
border-radius: 14px;
|
|
background: linear-gradient(120deg, #f7fbff 0%, #fff 70%);
|
|
}
|
|
|
|
.current-lesson-card .ant-card-body {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 18px;
|
|
}
|
|
|
|
.current-lesson-copy > span {
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
}
|
|
|
|
.current-lesson-copy h2 {
|
|
margin: 4px 0;
|
|
font-size: 22px;
|
|
}
|
|
|
|
.current-lesson-copy p {
|
|
margin: 0;
|
|
color: var(--muted);
|
|
}
|
|
|
|
.current-lesson-actions {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
justify-content: flex-end;
|
|
gap: 10px;
|
|
}
|
|
|
|
.teacher-overview {
|
|
margin-bottom: 30px;
|
|
}
|
|
|
|
.teacher-kpi {
|
|
height: 112px;
|
|
padding: 21px 24px;
|
|
border: 1px solid var(--line);
|
|
border-radius: 14px;
|
|
background: white;
|
|
box-shadow: 0 5px 16px rgb(19 33 68 / 5%);
|
|
}
|
|
|
|
.teacher-kpi > span,
|
|
.teacher-kpi > small {
|
|
display: block;
|
|
color: var(--muted);
|
|
}
|
|
|
|
.teacher-kpi > strong {
|
|
display: inline-block;
|
|
margin: 6px 7px 0 0;
|
|
font-size: 30px;
|
|
line-height: 1;
|
|
}
|
|
|
|
.teacher-kpi--next {
|
|
border-color: #cfe1fb;
|
|
background: #f4f8ff;
|
|
}
|
|
|
|
.attendance-section-heading {
|
|
display: flex;
|
|
align-items: flex-end;
|
|
justify-content: space-between;
|
|
margin: 0 2px 14px;
|
|
}
|
|
|
|
.attendance-section-heading span {
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
}
|
|
|
|
.attendance-section-heading h2 {
|
|
margin: 2px 0 0;
|
|
font-size: 22px;
|
|
}
|
|
|
|
.lesson-timeline {
|
|
display: grid;
|
|
gap: 12px;
|
|
}
|
|
|
|
.lesson-card {
|
|
display: grid;
|
|
grid-template-columns: 54px 120px minmax(220px, 1fr) auto;
|
|
align-items: center;
|
|
min-height: 116px;
|
|
padding: 18px 20px 18px 12px;
|
|
border: 1px solid var(--line);
|
|
border-left: 4px solid #c9d2df;
|
|
border-radius: 14px;
|
|
background: white;
|
|
transition:
|
|
transform 180ms ease,
|
|
box-shadow 180ms ease,
|
|
border-color 180ms ease;
|
|
}
|
|
|
|
.lesson-card:hover {
|
|
transform: translateY(-1px);
|
|
box-shadow: 0 10px 26px rgb(24 39 75 / 9%);
|
|
}
|
|
|
|
.lesson-card--ongoing {
|
|
border-left-color: #1677ff;
|
|
background: linear-gradient(90deg, #f6f9ff, #fff 32%);
|
|
}
|
|
|
|
.lesson-card--ended {
|
|
border-left-color: #32a46d;
|
|
}
|
|
|
|
.lesson-sequence {
|
|
align-self: start;
|
|
padding-top: 3px;
|
|
color: #a6b0bf;
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
letter-spacing: 1px;
|
|
}
|
|
|
|
.lesson-time {
|
|
display: grid;
|
|
grid-template-columns: auto 1px auto;
|
|
align-items: center;
|
|
gap: 10px;
|
|
padding-right: 22px;
|
|
}
|
|
|
|
.lesson-time strong {
|
|
font-size: 15px;
|
|
}
|
|
|
|
.lesson-time span {
|
|
height: 28px;
|
|
background: #d9e0e9;
|
|
}
|
|
|
|
.lesson-main {
|
|
padding-left: 24px;
|
|
border-left: 1px solid var(--line);
|
|
}
|
|
|
|
.lesson-title-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
.lesson-title-row h3 {
|
|
margin: 0;
|
|
font-size: 18px;
|
|
}
|
|
|
|
.lesson-main p {
|
|
display: flex;
|
|
gap: 18px;
|
|
margin: 8px 0 0;
|
|
color: var(--muted);
|
|
}
|
|
|
|
.lesson-action {
|
|
padding-left: 20px;
|
|
}
|
|
|
|
.attendance-empty-card {
|
|
padding: 28px;
|
|
border-radius: 14px;
|
|
}
|
|
|
|
.attendance-empty-card strong {
|
|
display: block;
|
|
color: var(--ink);
|
|
font-size: 16px;
|
|
}
|
|
|
|
.attendance-empty-card p {
|
|
margin: 4px 0 0;
|
|
color: var(--muted);
|
|
}
|
|
|
|
.lesson-record-header {
|
|
padding: 8px 0 22px;
|
|
}
|
|
|
|
.lesson-record-header h2 {
|
|
margin: 6px 0;
|
|
font-size: 28px;
|
|
}
|
|
|
|
.lesson-record-header p {
|
|
margin: 0;
|
|
color: var(--muted);
|
|
}
|
|
|
|
.attendance-summary-strip {
|
|
display: grid;
|
|
grid-template-columns: minmax(190px, 1.35fr) repeat(4, minmax(100px, 1fr));
|
|
align-items: center;
|
|
gap: 0;
|
|
min-height: 106px;
|
|
margin-bottom: 18px;
|
|
padding: 16px 8px;
|
|
border: 1px solid var(--line);
|
|
border-radius: 14px;
|
|
background: white;
|
|
box-shadow: 0 5px 18px rgb(23 32 51 / 4%);
|
|
}
|
|
|
|
.attendance-rate,
|
|
.attendance-summary-cell {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
min-height: 66px;
|
|
padding: 0 20px;
|
|
}
|
|
|
|
.attendance-rate {
|
|
border-right: 1px solid var(--line);
|
|
}
|
|
|
|
.attendance-rate span,
|
|
.attendance-summary-cell span {
|
|
display: block;
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
}
|
|
|
|
.attendance-rate strong,
|
|
.attendance-summary-cell strong {
|
|
display: block;
|
|
margin-top: 3px;
|
|
font-size: 20px;
|
|
}
|
|
|
|
|
|
.lesson-summary-strip {
|
|
grid-template-columns: minmax(210px, 1fr) repeat(2, minmax(120px, 0.7fr));
|
|
}
|
|
|
|
.lesson-summary-strip .attendance-rate,
|
|
.lesson-summary-strip .attendance-summary-cell {
|
|
justify-content: center;
|
|
}
|
|
|
|
.lesson-summary-strip .attendance-rate {
|
|
text-align: left;
|
|
}
|
|
|
|
.attendance-correction-segment.ant-segmented {
|
|
padding: 2px;
|
|
border: 1px solid var(--student-line, #e1e8e5);
|
|
background: #f8faf9;
|
|
}
|
|
|
|
.attendance-correction-segment .ant-segmented-item {
|
|
min-width: 52px;
|
|
}
|
|
|
|
.attendance-correction-segment .ant-segmented-item-label {
|
|
min-height: 28px;
|
|
line-height: 28px;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.attendance-summary-icon {
|
|
display: grid !important;
|
|
flex: 0 0 auto;
|
|
width: 36px;
|
|
height: 36px;
|
|
place-items: center;
|
|
border-radius: 10px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.is-present {
|
|
color: #198754 !important;
|
|
background: #eaf8f1;
|
|
}
|
|
.is-late {
|
|
color: #b56b00 !important;
|
|
background: #fff4db;
|
|
}
|
|
.is-absent {
|
|
color: #cf3030 !important;
|
|
background: #fff0f0;
|
|
}
|
|
.is-leave {
|
|
color: #2874c6 !important;
|
|
background: #edf5ff;
|
|
}
|
|
.is-pending {
|
|
color: #667085 !important;
|
|
background: #f1f3f6;
|
|
}
|
|
|
|
.lesson-record-filters {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
margin: 0 0 14px;
|
|
padding: 12px 14px;
|
|
border: 1px solid var(--line);
|
|
border-radius: 12px;
|
|
background: #f8fafc;
|
|
}
|
|
|
|
.lesson-record-search {
|
|
width: 260px;
|
|
}
|
|
|
|
.lesson-record-filter-select {
|
|
width: 130px;
|
|
}
|
|
|
|
.lesson-record-filter-count {
|
|
margin-left: auto;
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.attendance-status {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 7px;
|
|
padding: 4px 9px;
|
|
border-radius: 999px;
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.attendance-status__dot {
|
|
width: 6px;
|
|
height: 6px;
|
|
border-radius: 50%;
|
|
background: currentColor;
|
|
}
|
|
|
|
.archive-alert {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
margin-bottom: 16px;
|
|
padding: 13px 16px;
|
|
color: #8c5d05;
|
|
border: 1px solid #f3d79c;
|
|
border-radius: 12px;
|
|
background: #fffbf0;
|
|
}
|
|
|
|
.archive-alert > span.anticon {
|
|
font-size: 20px;
|
|
}
|
|
|
|
.archive-alert div {
|
|
flex: 1;
|
|
}
|
|
|
|
.archive-alert strong,
|
|
.archive-alert span {
|
|
display: block;
|
|
}
|
|
|
|
.archive-alert span {
|
|
margin-top: 2px;
|
|
color: #8a7452;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.archive-card {
|
|
overflow: hidden;
|
|
border: 1px solid var(--line);
|
|
border-radius: 14px;
|
|
box-shadow: 0 6px 24px rgb(23 32 51 / 5%);
|
|
}
|
|
|
|
.archive-card .ant-card-body {
|
|
padding: 0;
|
|
}
|
|
|
|
.archive-toolbar {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 18px;
|
|
padding: 18px 20px;
|
|
border-bottom: 1px solid var(--line);
|
|
background: #fbfcfe;
|
|
}
|
|
|
|
.archive-toolbar__title {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 11px;
|
|
min-width: 150px;
|
|
}
|
|
|
|
.archive-toolbar__title > span.anticon {
|
|
color: var(--blue);
|
|
font-size: 21px;
|
|
}
|
|
|
|
.archive-toolbar__title strong,
|
|
.archive-toolbar__title span {
|
|
display: block;
|
|
}
|
|
|
|
.archive-toolbar__title span {
|
|
color: var(--muted);
|
|
font-size: 11px;
|
|
}
|
|
|
|
.archive-card .ant-table-wrapper {
|
|
padding: 0 20px 10px;
|
|
}
|
|
|
|
.archive-card .ant-table-thead > tr > th {
|
|
color: #667085;
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
background: white;
|
|
}
|
|
|
|
.student-cell {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
.student-cell .ant-avatar {
|
|
color: #245b9e;
|
|
background: #e8f1fd;
|
|
}
|
|
|
|
.student-cell strong,
|
|
.student-cell span {
|
|
display: block;
|
|
}
|
|
|
|
.student-cell span {
|
|
margin-top: 2px;
|
|
color: var(--muted);
|
|
font-size: 11px;
|
|
}
|
|
|
|
.muted-text {
|
|
color: #a1a9b5;
|
|
}
|
|
|
|
@media (max-width: 640px) {
|
|
.lesson-record-filters {
|
|
align-items: stretch;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.lesson-record-search,
|
|
.lesson-record-filter-select {
|
|
width: 100%;
|
|
}
|
|
|
|
.lesson-record-filter-count {
|
|
margin-left: 0;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 900px) {
|
|
.attendance-hero,
|
|
.archive-toolbar,
|
|
.teacher-topbar {
|
|
align-items: flex-start;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.attendance-summary-strip {
|
|
grid-template-columns: repeat(2, 1fr);
|
|
}
|
|
|
|
.attendance-rate {
|
|
grid-column: 1 / -1;
|
|
border-right: 0;
|
|
border-bottom: 1px solid var(--line);
|
|
padding-bottom: 14px;
|
|
}
|
|
|
|
.lesson-card {
|
|
grid-template-columns: 42px 1fr auto;
|
|
}
|
|
|
|
.lesson-time {
|
|
grid-column: 2;
|
|
}
|
|
|
|
.lesson-main {
|
|
grid-column: 2 / -1;
|
|
margin-top: 12px;
|
|
padding: 12px 0 0;
|
|
border-top: 1px solid var(--line);
|
|
border-left: 0;
|
|
}
|
|
|
|
.lesson-action {
|
|
grid-column: 2 / -1;
|
|
padding: 14px 0 0;
|
|
}
|
|
|
|
.teacher-workspace-layout {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.teacher-filter-rail {
|
|
position: static;
|
|
}
|
|
|
|
.current-lesson-card .ant-card-body {
|
|
align-items: flex-start;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.current-lesson-actions {
|
|
justify-content: flex-start;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 576px) {
|
|
.attendance-hero {
|
|
padding: 26px 22px;
|
|
border-radius: 14px;
|
|
}
|
|
|
|
.attendance-hero h1 {
|
|
font-size: 28px;
|
|
}
|
|
|
|
.attendance-summary-strip {
|
|
grid-template-columns: 1fr 1fr;
|
|
}
|
|
|
|
.attendance-summary-cell {
|
|
padding: 10px 14px;
|
|
}
|
|
|
|
.lesson-card {
|
|
grid-template-columns: 1fr;
|
|
padding: 18px;
|
|
}
|
|
|
|
.lesson-sequence {
|
|
display: none;
|
|
}
|
|
|
|
.lesson-time,
|
|
.lesson-main,
|
|
.lesson-action {
|
|
grid-column: 1;
|
|
}
|
|
|
|
.lesson-main p {
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
}
|
|
}
|
|
|
|
.attendance-marking-actions {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 6px;
|
|
}
|
|
|
|
.attendance-marking-actions .ant-btn {
|
|
min-width: 54px;
|
|
}
|
|
|
|
.punch-device-cell {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
gap: 4px;
|
|
}
|
|
|
|
.punch-device-cell .ant-tag {
|
|
margin-inline-end: 0;
|
|
}
|
|
|
|
.punch-device-cell strong {
|
|
color: #1f2937;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.punch-device-cell span {
|
|
color: #8c8c8c;
|
|
font-size: 12px;
|
|
}
|
|
|
|
/* Student attendance center — adapted from the provided class overview reference */
|
|
.student-attendance-center {
|
|
--student-bg: #f4f7f7;
|
|
--student-surface: #ffffff;
|
|
--student-soft: #f7faf9;
|
|
--student-ink: #17201e;
|
|
--student-muted: #66736f;
|
|
--student-quiet: #8a9692;
|
|
--student-line: #e1e8e5;
|
|
--student-primary: #157a65;
|
|
--student-primary-soft: #e8f4f0;
|
|
min-width: 0;
|
|
min-height: calc(100vh - 64px);
|
|
margin: -24px;
|
|
padding: 0 24px 28px;
|
|
overflow: hidden;
|
|
background: var(--student-bg);
|
|
color: var(--student-ink);
|
|
}
|
|
|
|
.student-center-topbar {
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 12;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 18px;
|
|
min-height: 60px;
|
|
margin: 0 -24px 18px;
|
|
padding: 0 24px;
|
|
border-bottom: 1px solid var(--student-line);
|
|
background: rgb(255 255 255 / 96%);
|
|
}
|
|
|
|
.student-center-title {
|
|
display: flex;
|
|
align-items: baseline;
|
|
gap: 12px;
|
|
}
|
|
|
|
.student-center-title h1 {
|
|
margin: 0;
|
|
font-size: 18px;
|
|
letter-spacing: 0;
|
|
}
|
|
|
|
.student-center-title span,
|
|
.student-sync-status {
|
|
color: var(--student-quiet);
|
|
font-size: 12px;
|
|
}
|
|
|
|
.student-center-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.student-sync-status {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
margin-right: 6px;
|
|
}
|
|
|
|
.student-sync-status i {
|
|
width: 7px;
|
|
height: 7px;
|
|
border-radius: 50%;
|
|
background: #2f9c78;
|
|
}
|
|
|
|
.student-filter-panel {
|
|
display: grid;
|
|
grid-template-columns: 176px 220px 142px 142px 142px auto;
|
|
gap: 10px;
|
|
align-items: end;
|
|
justify-content: start;
|
|
min-width: 0;
|
|
margin-bottom: 16px;
|
|
padding: 16px;
|
|
border: 1px solid var(--student-line);
|
|
border-radius: 10px;
|
|
background: var(--student-surface);
|
|
}
|
|
|
|
.student-filter-field {
|
|
display: grid;
|
|
gap: 6px;
|
|
min-width: 0;
|
|
}
|
|
|
|
.student-filter-field label {
|
|
color: var(--student-muted);
|
|
font-size: 12px;
|
|
}
|
|
|
|
.student-filter-field .ant-picker,
|
|
.student-filter-field .ant-select {
|
|
width: 100%;
|
|
}
|
|
|
|
.student-filter-actions {
|
|
display: flex;
|
|
justify-content: flex-start;
|
|
flex-wrap: nowrap;
|
|
gap: 8px;
|
|
padding-top: 2px;
|
|
}
|
|
|
|
.student-filter-actions .ant-btn {
|
|
min-width: 88px;
|
|
}
|
|
|
|
|
|
.attendance-period-editor {
|
|
display: grid;
|
|
gap: 12px;
|
|
}
|
|
|
|
.attendance-period-row {
|
|
display: grid;
|
|
grid-template-columns: 1.05fr 1fr 132px 132px 92px auto;
|
|
gap: 10px;
|
|
align-items: start;
|
|
padding: 12px;
|
|
border: 1px solid var(--student-line);
|
|
border-radius: 12px;
|
|
background: #fff;
|
|
}
|
|
|
|
.attendance-period-row .ant-form-item {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.attendance-period-row__delete {
|
|
align-self: end;
|
|
min-width: 72px;
|
|
}
|
|
|
|
.attendance-period-add {
|
|
height: 44px;
|
|
border-radius: 12px;
|
|
}
|
|
|
|
.attendance-period-modal .ant-modal-body {
|
|
padding-top: 12px;
|
|
}
|
|
|
|
.student-class-overview {
|
|
display: grid;
|
|
grid-template-columns: minmax(360px, 0.95fr) minmax(360px, 1.05fr);
|
|
gap: 16px;
|
|
min-width: 0;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.student-class-identity,
|
|
.student-metric-strip,
|
|
.student-workspace,
|
|
.student-record-card {
|
|
border: 1px solid rgb(21 122 101 / 12%);
|
|
border-radius: 18px;
|
|
background: var(--student-surface);
|
|
box-shadow: 0 14px 36px rgb(24 44 38 / 7%);
|
|
}
|
|
|
|
.student-class-overview > *,
|
|
.student-workspace,
|
|
.student-record-card {
|
|
min-width: 0;
|
|
}
|
|
|
|
.student-class-identity {
|
|
position: relative;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: space-between;
|
|
min-height: 176px;
|
|
overflow: hidden;
|
|
padding: 20px;
|
|
background: var(--student-surface);
|
|
}
|
|
|
|
.student-class-heading {
|
|
position: relative;
|
|
z-index: 1;
|
|
}
|
|
|
|
.student-class-identity h2 {
|
|
margin: 0 0 6px;
|
|
color: #111c18;
|
|
font-size: 24px;
|
|
line-height: 1.2;
|
|
}
|
|
|
|
.student-class-identity p {
|
|
margin: 0;
|
|
color: var(--student-muted);
|
|
font-size: 13px;
|
|
}
|
|
|
|
.student-teacher-list {
|
|
position: relative;
|
|
z-index: 1;
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
|
|
gap: 10px;
|
|
margin-top: 20px;
|
|
}
|
|
|
|
.student-teacher-item {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 10px;
|
|
text-align: center;
|
|
min-width: 0;
|
|
padding: 10px;
|
|
border: 1px solid rgb(21 122 101 / 10%);
|
|
border-radius: 12px;
|
|
background: rgb(255 255 255 / 76%);
|
|
}
|
|
|
|
.student-teacher-item.is-muted {
|
|
opacity: 0.72;
|
|
}
|
|
|
|
.student-teacher-item .ant-avatar {
|
|
flex: 0 0 auto;
|
|
color: var(--student-primary);
|
|
background: var(--student-primary-soft);
|
|
}
|
|
|
|
.student-teacher-item > div {
|
|
flex: 1;
|
|
min-width: 0;
|
|
text-align: center;
|
|
}
|
|
|
|
.student-teacher-item strong,
|
|
.student-teacher-item span {
|
|
display: block;
|
|
}
|
|
|
|
.student-teacher-item span {
|
|
color: var(--student-muted);
|
|
font-size: 12px;
|
|
}
|
|
|
|
.student-teacher-item strong {
|
|
min-width: 0;
|
|
margin-top: 2px;
|
|
overflow-wrap: anywhere;
|
|
color: #15231f;
|
|
font-size: 13px;
|
|
line-height: 1.35;
|
|
}
|
|
|
|
.student-metric-strip {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
gap: 10px;
|
|
min-width: 0;
|
|
padding: 10px;
|
|
}
|
|
|
|
.student-metric-card {
|
|
appearance: none;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
min-width: 0;
|
|
min-height: 76px;
|
|
padding: 13px 14px;
|
|
border: 1px solid transparent;
|
|
border-radius: 14px;
|
|
background: #f9fbfa;
|
|
color: inherit;
|
|
text-align: left;
|
|
cursor: pointer;
|
|
transition:
|
|
background 160ms ease,
|
|
border-color 160ms ease,
|
|
box-shadow 160ms ease,
|
|
transform 160ms ease;
|
|
}
|
|
|
|
.student-metric-card:hover,
|
|
.student-metric-card.active {
|
|
transform: translateY(-1px);
|
|
border-color: rgb(21 122 101 / 24%);
|
|
background: #ffffff;
|
|
box-shadow: 0 10px 22px rgb(24 44 38 / 8%);
|
|
}
|
|
|
|
.student-metric-card:focus-visible {
|
|
outline: 3px solid rgb(21 122 101 / 22%);
|
|
outline-offset: 2px;
|
|
}
|
|
|
|
.student-metric-icon {
|
|
display: inline-grid;
|
|
flex: 0 0 auto;
|
|
width: 40px;
|
|
height: 40px;
|
|
place-items: center;
|
|
border-radius: 12px;
|
|
font-size: 12px;
|
|
font-weight: 800;
|
|
}
|
|
|
|
.student-metric-copy {
|
|
display: grid;
|
|
gap: 4px;
|
|
min-width: 0;
|
|
}
|
|
|
|
.student-metric-card strong {
|
|
overflow: hidden;
|
|
color: #111c18;
|
|
font-size: clamp(19px, 3vw, 24px);
|
|
line-height: 1;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.student-metric-card small {
|
|
color: var(--student-muted);
|
|
font-size: 12px;
|
|
}
|
|
|
|
.student-workspace {
|
|
margin-bottom: 16px;
|
|
padding: 0 18px 20px;
|
|
}
|
|
|
|
.student-workspace-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 18px;
|
|
min-height: 70px;
|
|
border-bottom: 1px solid var(--student-line);
|
|
}
|
|
|
|
.student-workspace-header h3 {
|
|
margin: 0 0 4px;
|
|
font-size: 17px;
|
|
}
|
|
|
|
.student-workspace-header span {
|
|
color: var(--student-muted);
|
|
font-size: 12px;
|
|
}
|
|
|
|
.student-workspace-tools {
|
|
display: flex;
|
|
align-items: center;
|
|
flex: 0 0 auto;
|
|
flex-wrap: nowrap;
|
|
gap: 8px;
|
|
min-width: 0;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.student-workspace-tools .ant-input-search {
|
|
flex: 0 0 240px;
|
|
width: 240px;
|
|
}
|
|
|
|
.student-workspace-tools .ant-btn {
|
|
flex: 0 0 auto;
|
|
}
|
|
|
|
.student-legend {
|
|
display: flex;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
gap: 8px 12px;
|
|
padding: 12px 0;
|
|
color: var(--student-muted);
|
|
font-size: 12px;
|
|
}
|
|
|
|
.student-legend span {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
margin-right: 12px;
|
|
}
|
|
|
|
.student-legend i {
|
|
width: 9px;
|
|
height: 9px;
|
|
border-radius: 2px;
|
|
}
|
|
|
|
.student-legend i.is-present {
|
|
background: #2f9c78;
|
|
}
|
|
.student-legend i.is-late {
|
|
background: #d78a18;
|
|
}
|
|
.student-legend i.is-leave {
|
|
background: #397bbf;
|
|
}
|
|
.student-legend i.is-absent {
|
|
background: #d44d4d;
|
|
}
|
|
.student-legend i.is-pending {
|
|
background: #8a9692;
|
|
}
|
|
|
|
.student-legend em {
|
|
color: var(--student-quiet);
|
|
font-style: normal;
|
|
}
|
|
|
|
.student-card-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(216px, 1fr));
|
|
gap: 10px;
|
|
}
|
|
|
|
.student-attendance-card {
|
|
appearance: none;
|
|
display: grid;
|
|
gap: 12px;
|
|
min-height: 96px;
|
|
padding: 13px;
|
|
border: 1px solid var(--student-line);
|
|
border-radius: 8px;
|
|
background: #fff;
|
|
color: inherit;
|
|
text-align: left;
|
|
cursor: pointer;
|
|
transition:
|
|
border-color 160ms ease,
|
|
box-shadow 160ms ease,
|
|
transform 160ms ease;
|
|
}
|
|
|
|
.student-attendance-card:hover,
|
|
.student-attendance-card.selected {
|
|
transform: translateY(-1px);
|
|
border-color: #91c8b9;
|
|
box-shadow: 0 8px 20px rgb(24 44 38 / 8%);
|
|
}
|
|
|
|
.student-attendance-head {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 8px;
|
|
}
|
|
|
|
.student-attendance-head strong {
|
|
font-size: 15px;
|
|
}
|
|
|
|
.student-attendance-head small {
|
|
flex: 0 0 auto;
|
|
max-width: 112px;
|
|
overflow: hidden;
|
|
color: var(--student-quiet);
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.student-status-blocks {
|
|
display: grid;
|
|
grid-template-columns: repeat(4, 1fr);
|
|
gap: 6px;
|
|
}
|
|
|
|
.student-status-block {
|
|
display: grid;
|
|
min-height: 28px;
|
|
place-items: center;
|
|
border-radius: 5px;
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.student-record-card {
|
|
overflow: hidden;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.student-record-card .ant-card-body {
|
|
padding: 0 18px 14px;
|
|
}
|
|
|
|
.student-detail-panel {
|
|
display: grid;
|
|
gap: 18px;
|
|
}
|
|
|
|
.student-detail-profile {
|
|
display: grid;
|
|
grid-template-columns: auto minmax(0, 1fr) auto;
|
|
gap: 12px;
|
|
align-items: center;
|
|
padding-bottom: 18px;
|
|
border-bottom: 1px solid var(--student-line);
|
|
}
|
|
|
|
.student-detail-profile h4 {
|
|
margin: 0 0 4px;
|
|
font-size: 18px;
|
|
}
|
|
|
|
.student-detail-profile p,
|
|
.student-detail-rate span {
|
|
margin: 0;
|
|
color: var(--student-muted);
|
|
font-size: 12px;
|
|
}
|
|
|
|
.student-detail-rate {
|
|
text-align: right;
|
|
}
|
|
|
|
.student-detail-rate strong {
|
|
display: block;
|
|
color: var(--student-primary);
|
|
font-size: 24px;
|
|
}
|
|
|
|
.student-detail-rates {
|
|
display: grid;
|
|
grid-template-columns: repeat(4, 1fr);
|
|
gap: 8px;
|
|
}
|
|
|
|
.student-detail-rates > div {
|
|
padding: 12px 8px;
|
|
border-radius: 8px;
|
|
background: var(--student-soft);
|
|
text-align: center;
|
|
}
|
|
|
|
.student-detail-rates strong,
|
|
.student-detail-rates span {
|
|
display: block;
|
|
}
|
|
|
|
.student-detail-rates span {
|
|
margin-top: 4px;
|
|
color: var(--student-muted);
|
|
font-size: 12px;
|
|
}
|
|
|
|
.student-detail-section h5 {
|
|
margin: 0 0 10px;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.student-detail-timeline {
|
|
display: grid;
|
|
gap: 8px;
|
|
}
|
|
|
|
.student-detail-timeline > div {
|
|
display: grid;
|
|
grid-template-columns: 64px 96px 1fr auto;
|
|
gap: 8px;
|
|
align-items: center;
|
|
padding: 10px;
|
|
border: 1px solid var(--student-line);
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.student-detail-timeline > div > span:first-child {
|
|
color: var(--student-muted);
|
|
}
|
|
|
|
|
|
@media (max-width: 1280px) {
|
|
.student-filter-panel {
|
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
}
|
|
|
|
.student-filter-field--date {
|
|
grid-column: auto;
|
|
}
|
|
|
|
.student-filter-actions {
|
|
grid-column: 1 / -1;
|
|
justify-content: flex-end;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 1180px) {
|
|
.student-class-overview {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.student-metric-strip {
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
}
|
|
}
|
|
|
|
@media (max-width: 760px) {
|
|
.lesson-summary-strip {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.lesson-summary-strip .attendance-rate,
|
|
.lesson-summary-strip .attendance-summary-cell {
|
|
justify-content: flex-start;
|
|
}
|
|
|
|
.student-attendance-center {
|
|
margin: -12px;
|
|
padding: 0 12px 20px;
|
|
}
|
|
|
|
.student-center-topbar {
|
|
margin-inline: -12px;
|
|
padding: 12px;
|
|
}
|
|
|
|
.student-center-topbar,
|
|
.student-workspace-header,
|
|
.student-center-actions,
|
|
.student-legend {
|
|
align-items: stretch;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.student-center-title {
|
|
align-items: flex-start;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
}
|
|
|
|
.student-filter-panel,
|
|
.attendance-period-row {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.student-class-overview {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.student-filter-field--date {
|
|
grid-column: auto;
|
|
}
|
|
|
|
.student-filter-actions > *,
|
|
.student-center-actions .ant-btn {
|
|
width: 100%;
|
|
}
|
|
|
|
.student-workspace-tools {
|
|
align-self: stretch;
|
|
width: 100%;
|
|
}
|
|
|
|
.student-workspace-tools .ant-input-search {
|
|
flex: 1 1 auto;
|
|
min-width: 0;
|
|
width: auto;
|
|
}
|
|
|
|
.student-filter-actions > * {
|
|
flex: 1;
|
|
}
|
|
|
|
.student-metric-strip {
|
|
grid-template-columns: repeat(2, 1fr);
|
|
}
|
|
|
|
.student-metric-card {
|
|
min-height: 72px;
|
|
}
|
|
|
|
.student-workspace {
|
|
padding-inline: 12px;
|
|
}
|
|
|
|
.student-card-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.student-teacher-list {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.student-detail-profile {
|
|
grid-template-columns: auto minmax(0, 1fr);
|
|
}
|
|
|
|
.student-detail-rate {
|
|
grid-column: 1 / -1;
|
|
text-align: left;
|
|
}
|
|
|
|
.student-detail-timeline > div {
|
|
grid-template-columns: 56px minmax(0, 1fr);
|
|
}
|
|
}
|
|
|
|
@media (max-width: 430px) {
|
|
.student-metric-strip {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.student-attendance-head {
|
|
align-items: flex-start;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
}
|
|
|
|
.student-attendance-head small {
|
|
max-width: 100%;
|
|
}
|
|
}
|