правка визуальных багов

This commit is contained in:
2026-06-01 00:22:07 +03:00
parent f3a9905423
commit 41fde2566d
14 changed files with 484 additions and 88 deletions

View File

@@ -48,6 +48,189 @@
letter-spacing: 0.04em;
}
/* ===== Dashboard ===== */
.dashboard-container {
display: flex;
flex-direction: column;
gap: 1.5rem;
}
.dashboard-metrics-grid {
display: grid;
grid-template-columns: repeat(4, minmax(180px, 1fr));
gap: 1.25rem;
}
.dashboard-metric-card {
--metric-color: var(--accent);
--metric-bg: rgba(99, 102, 241, 0.1);
display: flex;
align-items: center;
gap: 1rem;
min-height: 112px;
padding: 1.25rem;
border-left: 4px solid var(--metric-color);
}
.dashboard-metric-card--students {
--metric-color: #10b981;
--metric-bg: rgba(16, 185, 129, 0.1);
}
.dashboard-metric-card--teachers {
--metric-color: #f59e0b;
--metric-bg: rgba(245, 158, 11, 0.1);
}
.dashboard-metric-card--classrooms {
--metric-color: #3b82f6;
--metric-bg: rgba(59, 130, 246, 0.1);
}
.dashboard-metric-card .metric-icon {
display: flex;
align-items: center;
justify-content: center;
flex: 0 0 48px;
width: 48px;
height: 48px;
color: var(--metric-color);
background: var(--metric-bg);
border-radius: 12px;
}
.dashboard-middle {
display: grid;
grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
gap: 1.25rem;
align-items: stretch;
}
.dashboard-monitor-card,
.dashboard-compact-card {
display: flex;
flex-direction: column;
}
.dashboard-monitor-card {
min-height: 100%;
}
.dashboard-card-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 1rem;
margin-bottom: 1rem;
}
.dashboard-card-header h2 {
margin: 0;
}
.dashboard-time-slot {
flex: 0 0 auto;
padding: 0.35rem 0.75rem;
border-radius: 999px;
color: var(--accent-hover);
background: var(--bg-hover);
font-size: 0.85rem;
font-weight: 600;
white-space: nowrap;
}
.dashboard-monitor-table {
flex: 1;
}
.dashboard-side-stack {
display: grid;
grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
gap: 1.25rem;
min-height: 100%;
}
.dashboard-compact-card {
min-height: 0;
padding: 1.25rem;
gap: 0.75rem;
}
.dashboard-card-title {
margin: 0;
font-size: 1.1rem;
font-weight: 600;
color: var(--text-primary);
}
.dashboard-badge-list {
display: flex;
flex-wrap: wrap;
align-content: flex-start;
gap: 0.5rem;
margin-top: 0.25rem;
}
.dashboard-actions {
display: grid;
grid-template-columns: 1fr;
gap: 0.65rem;
margin-top: auto;
}
.dashboard-action-link {
display: flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
min-height: 40px;
padding: 0.6rem 0.85rem;
text-align: center;
text-decoration: none;
font-size: 0.9rem;
}
.dashboard-action-link.btn-secondary {
color: var(--accent-hover);
background: var(--bg-input);
border: 1px solid var(--bg-card-border);
border-radius: var(--radius-sm);
box-shadow: none;
}
.dashboard-action-link.btn-secondary:hover {
color: var(--text-primary);
background: var(--bg-hover);
border-color: var(--accent);
}
@media (max-width: 1200px) {
.dashboard-metrics-grid {
grid-template-columns: repeat(2, minmax(180px, 1fr));
}
.dashboard-middle {
grid-template-columns: 1fr;
}
.dashboard-side-stack {
grid-template-columns: repeat(2, minmax(0, 1fr));
grid-template-rows: auto;
}
}
@media (max-width: 700px) {
.dashboard-metrics-grid,
.dashboard-side-stack {
grid-template-columns: 1fr;
}
.dashboard-card-header {
align-items: flex-start;
flex-direction: column;
}
}
/* ===== Form Structure ===== */
.form-row {
display: flex;
@@ -167,14 +350,34 @@
gap: 1rem;
}
.department-workspace-grid {
align-items: stretch;
}
.department-subject-import-card,
.department-teachers-card {
display: flex;
flex-direction: column;
align-self: stretch;
min-height: 100%;
}
.department-teachers-card .card-header-row {
margin-bottom: 0.85rem;
}
.department-teachers-card .metric-grid {
margin-top: 0;
}
.metric-grid {
display: grid;
gap: 0.75rem;
gap: 0.6rem;
}
.metric-card,
.department-comment-item {
padding: 0.85rem;
padding: 0.8rem 0.85rem;
background: var(--bg-input);
border: 1px solid var(--bg-card-border);
border-radius: var(--radius-sm);
@@ -183,7 +386,7 @@
.metric-card strong,
.department-comment-item strong {
display: block;
margin-bottom: 0.35rem;
margin-bottom: 0.28rem;
color: var(--text-primary);
}
@@ -299,8 +502,9 @@
.subject-import-row {
display: grid;
grid-template-columns: minmax(120px, 1fr) minmax(200px, 3fr) auto;
gap: 0.75rem;
grid-template-columns: 160px minmax(260px, 1fr) auto;
column-gap: 0.65rem;
row-gap: 0.75rem;
align-items: end;
padding: 0.75rem;
background: var(--bg-input);
@@ -323,16 +527,97 @@
min-width: 260px;
}
.schedule-slot-summary,
.schedule-semester-line {
.schedule-slot-summary {
margin-bottom: 0.35rem;
}
.schedule-semester-line {
display: flex;
.academic-year-semesters {
display: grid;
grid-template-columns: repeat(2, minmax(220px, 1fr));
gap: 0.35rem;
align-items: stretch;
}
.academic-years-table tbody td {
padding-top: 0.6rem;
padding-bottom: 0.6rem;
vertical-align: middle;
}
.academic-years-table thead th:first-child,
.academic-years-table thead th:nth-child(2),
.academic-years-table thead th:last-child {
text-align: center;
}
.academic-year-center-cell {
text-align: center;
font-weight: 700;
}
.academic-year-semesters-cell {
min-width: 520px;
vertical-align: middle;
}
.academic-year-actions-cell {
text-align: center;
vertical-align: middle;
}
.academic-year-actions {
display: inline-flex;
align-items: center;
justify-content: space-between;
gap: 0.5rem;
justify-content: center;
gap: 0.4rem;
min-height: 100%;
white-space: nowrap;
}
.academic-year-semester-item {
display: grid;
grid-template-columns: minmax(220px, 1fr) auto;
align-items: center;
gap: 0.65rem;
padding: 0.5rem 0.65rem;
background: var(--bg-input);
border: 1px solid var(--bg-card-border);
border-radius: var(--radius-sm);
}
.subject-import-code-field,
.subject-import-name-field {
min-width: 0;
}
.subject-import-row .form-group label {
margin-bottom: 0.45rem;
}
@media (max-width: 900px) {
.academic-year-semesters {
grid-template-columns: 1fr;
}
.academic-year-semesters-cell {
min-width: 360px;
}
}
.academic-year-semester-meta {
display: grid;
gap: 0.2rem;
}
.academic-year-semester-type {
color: var(--text-primary);
font-size: 0.9rem;
font-weight: 700;
}
.academic-year-semester-period {
color: var(--text-secondary);
font-size: 0.82rem;
}
.schedule-inline-table {
@@ -1807,12 +2092,35 @@ input[type="number"] {
box-shadow: 0 2px 10px var(--accent-glow);
}
.btn-delete {
.group-actions-cell {
text-align: right;
white-space: nowrap;
}
.group-actions {
display: grid;
grid-template-columns: 88px 104px 104px 116px;
gap: 0.35rem;
justify-content: end;
align-items: center;
}
.group-action-btn {
display: inline-flex;
align-items: center;
justify-content: center;
width: 100%;
min-height: 28px;
padding: 0.35rem 0.65rem;
font-size: 0.82rem;
line-height: 1;
white-space: nowrap;
}
.btn-delete,
.btn-restore-group {
padding: 0.35rem 0.7rem;
background: rgba(248, 113, 113, 0.1);
border: 1px solid rgba(248, 113, 113, 0.2);
border-radius: var(--radius-sm);
color: var(--error);
font-family: inherit;
font-size: 0.8rem;
cursor: pointer;
@@ -1821,11 +2129,28 @@ input[type="number"] {
overflow: hidden;
}
.btn-delete {
background: rgba(248, 113, 113, 0.1);
border: 1px solid rgba(248, 113, 113, 0.2);
color: var(--error);
}
.btn-delete:hover {
background: rgba(248, 113, 113, 0.2);
transform: scale(1.05);
}
.btn-restore-group {
background: rgba(245, 158, 11, 0.1);
border: 1px solid rgba(245, 158, 11, 0.24);
color: var(--warning);
}
.btn-restore-group:hover {
background: rgba(245, 158, 11, 0.2);
transform: scale(1.05);
}
.btn-icon-toggle {
background: transparent;
border: 1px solid var(--bg-card-border);
@@ -1864,6 +2189,12 @@ input[type="number"] {
transform: translateY(-1px);
}
.group-actions .group-action-btn {
min-height: 28px;
padding: 0.35rem 0.65rem;
font-size: 0.82rem;
}
/* ===== Alerts ===== */
.form-alert {
display: none;
@@ -2284,4 +2615,4 @@ tbody tr:hover {
padding: 0.05rem 0.35rem;
white-space: nowrap;
line-height: 1.2;
}
}

View File

@@ -56,6 +56,21 @@
padding: 0.75rem;
}
.sidebar-section-divider {
height: 1px;
background: var(--sidebar-section-divider);
margin: 0.5rem 1.5rem;
}
.sidebar-section-title {
padding: 0.5rem 1.25rem 0.25rem;
color: var(--sidebar-section-title);
font-size: 0.7rem;
font-weight: 700;
letter-spacing: 0.05em;
text-transform: uppercase;
}
.nav-item {
display: flex;
align-items: center;
@@ -306,6 +321,14 @@
padding: 0.75rem 0;
overflow: visible;
}
.sidebar.collapsed .sidebar-section-title {
display: none;
}
.sidebar.collapsed .sidebar-section-divider {
margin: 0.5rem;
}
.sidebar.collapsed .btn-settings {
justify-content: center;

View File

@@ -16,6 +16,8 @@
--bg-input: rgba(255, 255, 255, 0.04);
--bg-input-focus: rgba(255, 255, 255, 0.08);
--bg-hover: rgba(255, 255, 255, 0.06);
--sidebar-section-title: rgba(248, 250, 252, 0.45);
--sidebar-section-divider: rgba(229, 231, 235, 0.1);
/* Typography */
--text-primary: #f8fafc;
@@ -48,6 +50,8 @@
--bg-input: rgba(0, 0, 0, 0.03);
--bg-input-focus: rgba(0, 0, 0, 0.06);
--bg-hover: rgba(0, 0, 0, 0.05);
--sidebar-section-title: rgba(51, 65, 85, 0.78);
--sidebar-section-divider: rgba(148, 163, 184, 0.32);
--text-primary: #0f172a;
--text-secondary: #475569;
--text-placeholder: #94a3b8;