Refactor code structure for improved readability and maintainability
This commit is contained in:
+117
-11
@@ -223,6 +223,43 @@ body {
|
||||
color: var(--muted);
|
||||
font-size: 13px;
|
||||
}
|
||||
.class-note.desc {
|
||||
color: var(--text);
|
||||
font-size: 12px;
|
||||
opacity: 0.75;
|
||||
}
|
||||
.class-note.warning {
|
||||
color: #b45309;
|
||||
background: #fffbeb;
|
||||
border: 1px solid #fde68a;
|
||||
border-radius: 6px;
|
||||
padding: 6px 10px;
|
||||
margin-top: 8px;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.class-legend {
|
||||
display: flex;
|
||||
gap: 16px;
|
||||
margin-top: 8px;
|
||||
font-size: 12px;
|
||||
}
|
||||
.legend-item {
|
||||
padding: 2px 8px;
|
||||
border-radius: 4px;
|
||||
}
|
||||
.legend-conducted {
|
||||
background: #dcfce7;
|
||||
color: #166534;
|
||||
}
|
||||
.legend-missed {
|
||||
background: #fef2f2;
|
||||
color: #991b1b;
|
||||
}
|
||||
.legend-other {
|
||||
background: #fffbeb;
|
||||
color: #92400e;
|
||||
}
|
||||
|
||||
.class-chart {
|
||||
position: relative;
|
||||
@@ -235,26 +272,21 @@ body {
|
||||
height: 320px;
|
||||
}
|
||||
|
||||
.class-table,
|
||||
.scheme-table,
|
||||
.table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
.class-table th,
|
||||
.class-table td,
|
||||
.scheme-table th,
|
||||
.scheme-table td,
|
||||
.table th,
|
||||
.table td {
|
||||
border-bottom: 1px solid var(--line);
|
||||
padding: 10px 12px;
|
||||
vertical-align: top;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.class-table th,
|
||||
.scheme-table th,
|
||||
.table th {
|
||||
font-size: 13px;
|
||||
@@ -285,7 +317,7 @@ body {
|
||||
|
||||
.scheme-table th,
|
||||
.scheme-table td {
|
||||
padding: 6px;
|
||||
padding: 3px 4px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
@@ -294,16 +326,64 @@ body {
|
||||
text-align: left;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.lesson-num {
|
||||
font-size: 11px;
|
||||
color: var(--muted);
|
||||
font-weight: 400;
|
||||
padding: 2px 6px !important;
|
||||
}
|
||||
|
||||
.scheme-cell {
|
||||
display: inline-block;
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
border-radius: 4px;
|
||||
background: var(--empty);
|
||||
border: 1px solid rgba(0, 0, 0, 0.06);
|
||||
}
|
||||
|
||||
.class-weeks {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
gap: 10px;
|
||||
}
|
||||
.week-block {
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 8px;
|
||||
padding: 8px 10px;
|
||||
}
|
||||
.week-header {
|
||||
font-weight: 600;
|
||||
font-size: 13px;
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
.week-stats {
|
||||
display: flex;
|
||||
gap: 12px;
|
||||
flex-wrap: wrap;
|
||||
margin-bottom: 6px;
|
||||
font-size: 12px;
|
||||
}
|
||||
.stat {
|
||||
padding: 1px 6px;
|
||||
border-radius: 3px;
|
||||
}
|
||||
.stat-cond {
|
||||
background: #dcfce7;
|
||||
color: #166534;
|
||||
}
|
||||
.stat-miss {
|
||||
background: #fef2f2;
|
||||
color: #991b1b;
|
||||
}
|
||||
.stat-oth {
|
||||
background: #fffbeb;
|
||||
color: #92400e;
|
||||
}
|
||||
.stat-total {
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
.scheme-cell.code-0 {
|
||||
background: var(--empty);
|
||||
}
|
||||
@@ -356,6 +436,13 @@ body {
|
||||
}
|
||||
|
||||
@media print {
|
||||
@page {
|
||||
margin: 10mm;
|
||||
}
|
||||
* {
|
||||
-webkit-print-color-adjust: exact !important;
|
||||
print-color-adjust: exact !important;
|
||||
}
|
||||
body {
|
||||
background: #fff;
|
||||
}
|
||||
@@ -381,8 +468,27 @@ body {
|
||||
.print-nav {
|
||||
box-shadow: none;
|
||||
}
|
||||
.table th,
|
||||
.class-table th {
|
||||
position: static;
|
||||
.week-block {
|
||||
break-inside: avoid;
|
||||
page-break-inside: avoid;
|
||||
}
|
||||
.class-weeks {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
gap: 6px;
|
||||
}
|
||||
.class-chart {
|
||||
min-height: auto;
|
||||
margin-bottom: 4px;
|
||||
padding: 0;
|
||||
}
|
||||
.class-chart img {
|
||||
max-width: 100%;
|
||||
width: 100% !important;
|
||||
height: auto !important;
|
||||
margin: 0;
|
||||
}
|
||||
.week-chart {
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user