forked from wangziqi/gongxue-base
569 lines
9.2 KiB
CSS
569 lines
9.2 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;
|
|
}
|
|
|
|
.attendance-eyebrow {
|
|
font-size: 11px;
|
|
font-weight: 700;
|
|
letter-spacing: 1.7px;
|
|
opacity: 0.72;
|
|
}
|
|
|
|
.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;
|
|
}
|
|
|
|
.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 {
|
|
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;
|
|
}
|
|
}
|
|
|
|
@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;
|
|
}
|