Добавил визуальную матрицу расписания групп
This commit is contained in:
@@ -312,6 +312,389 @@
|
||||
margin-top: 1rem;
|
||||
}
|
||||
|
||||
.schedule-visual-handle {
|
||||
position: fixed;
|
||||
top: 50%;
|
||||
right: 0;
|
||||
z-index: 905;
|
||||
width: 42px;
|
||||
height: 74px;
|
||||
border: 1px solid var(--bg-card-border);
|
||||
border-right: 0;
|
||||
border-radius: 10px 0 0 10px;
|
||||
background: color-mix(in srgb, var(--bg-card) 92%, var(--accent));
|
||||
color: var(--text-primary);
|
||||
font: inherit;
|
||||
font-size: 1.8rem;
|
||||
font-weight: 800;
|
||||
line-height: 1;
|
||||
cursor: pointer;
|
||||
box-shadow: -8px 0 24px rgba(0, 0, 0, 0.2);
|
||||
transform: translateY(-50%);
|
||||
transition: right var(--transition), background var(--transition), border-color var(--transition), color var(--transition);
|
||||
}
|
||||
|
||||
.schedule-visual-handle:hover,
|
||||
.schedule-visual-handle.open {
|
||||
border-color: var(--accent);
|
||||
background: color-mix(in srgb, var(--accent) 20%, var(--bg-card));
|
||||
color: var(--accent-hover);
|
||||
}
|
||||
|
||||
.schedule-visual-handle.open {
|
||||
right: min(92vw, 1180px);
|
||||
}
|
||||
|
||||
.schedule-visual-backdrop {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
z-index: 880;
|
||||
background: rgba(0, 0, 0, 0.24);
|
||||
backdrop-filter: blur(2px);
|
||||
}
|
||||
|
||||
.schedule-visual-drawer {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
right: 0;
|
||||
z-index: 900;
|
||||
display: grid;
|
||||
grid-template-rows: auto minmax(0, 1fr);
|
||||
width: min(92vw, 1180px);
|
||||
height: 100vh;
|
||||
padding: 1rem;
|
||||
background: color-mix(in srgb, var(--bg-primary) 90%, var(--bg-card));
|
||||
border-left: 1px solid var(--bg-card-border);
|
||||
box-shadow: -22px 0 55px rgba(0, 0, 0, 0.34);
|
||||
transform: translateX(100%);
|
||||
transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
|
||||
}
|
||||
|
||||
.schedule-visual-drawer.open {
|
||||
transform: translateX(0);
|
||||
}
|
||||
|
||||
.schedule-visual-header {
|
||||
display: grid;
|
||||
gap: 1rem;
|
||||
padding-bottom: 0.85rem;
|
||||
border-bottom: 1px solid var(--bg-card-border);
|
||||
}
|
||||
|
||||
.schedule-visual-header-main,
|
||||
.schedule-visual-filter-head {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
justify-content: space-between;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.schedule-visual-header h2 {
|
||||
margin: 0 0 0.25rem;
|
||||
color: var(--text-primary);
|
||||
font-size: 1rem;
|
||||
text-transform: none;
|
||||
letter-spacing: 0;
|
||||
}
|
||||
|
||||
.schedule-visual-toolbar {
|
||||
display: grid;
|
||||
gap: 0.55rem;
|
||||
}
|
||||
|
||||
.schedule-visual-filter-head {
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.schedule-visual-filter-head > span {
|
||||
color: var(--text-secondary);
|
||||
font-size: 0.74rem;
|
||||
font-weight: 800;
|
||||
letter-spacing: 0.04em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.schedule-visual-filter-head div {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: flex-end;
|
||||
gap: 0.4rem;
|
||||
}
|
||||
|
||||
.schedule-visual-group-filter {
|
||||
display: flex;
|
||||
gap: 0.4rem;
|
||||
overflow-x: auto;
|
||||
padding-bottom: 0.15rem;
|
||||
}
|
||||
|
||||
.schedule-visual-group-chip {
|
||||
flex: 0 0 auto;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.4rem;
|
||||
min-height: 30px;
|
||||
padding: 0.25rem 0.58rem;
|
||||
border: 1px solid var(--bg-card-border);
|
||||
border-radius: var(--radius-sm);
|
||||
background: var(--bg-input);
|
||||
color: var(--text-secondary);
|
||||
font-size: 0.78rem;
|
||||
font-weight: 700;
|
||||
cursor: pointer;
|
||||
transition: background var(--transition), border-color var(--transition), color var(--transition);
|
||||
}
|
||||
|
||||
.schedule-visual-group-chip:hover {
|
||||
background: var(--bg-hover);
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.schedule-visual-group-chip input {
|
||||
width: 0.9rem;
|
||||
height: 0.9rem;
|
||||
margin: 0;
|
||||
accent-color: var(--accent);
|
||||
}
|
||||
|
||||
.schedule-visual-group-chip:has(input:checked) {
|
||||
border-color: var(--accent);
|
||||
background: color-mix(in srgb, var(--accent) 14%, var(--bg-input));
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.schedule-visual-stage {
|
||||
min-height: 0;
|
||||
padding-top: 0.85rem;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.schedule-visual-state {
|
||||
height: 100%;
|
||||
border: 1px solid var(--bg-card-border);
|
||||
border-radius: var(--radius-sm);
|
||||
background: var(--bg-input);
|
||||
}
|
||||
|
||||
.schedule-visual-table-wrap {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
overflow: auto;
|
||||
border: 1px solid var(--bg-card-border);
|
||||
border-radius: var(--radius-sm);
|
||||
background: var(--bg-primary);
|
||||
}
|
||||
|
||||
.schedule-visual-table {
|
||||
min-width: 760px;
|
||||
border-collapse: collapse;
|
||||
table-layout: fixed;
|
||||
}
|
||||
|
||||
.schedule-visual-table th,
|
||||
.schedule-visual-table td {
|
||||
border: 1px solid var(--bg-card-border);
|
||||
}
|
||||
|
||||
.schedule-visual-table th {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 6;
|
||||
min-width: 168px;
|
||||
padding: 0.52rem;
|
||||
background: var(--bg-input);
|
||||
color: var(--text-primary);
|
||||
text-align: center;
|
||||
font-size: 0.78rem;
|
||||
font-weight: 800;
|
||||
text-transform: none;
|
||||
letter-spacing: 0;
|
||||
}
|
||||
|
||||
.schedule-visual-table .schedule-visual-day-head,
|
||||
.schedule-visual-table .schedule-visual-time-head {
|
||||
z-index: 8;
|
||||
min-width: 96px;
|
||||
width: 96px;
|
||||
}
|
||||
|
||||
.schedule-visual-table .schedule-visual-day-head {
|
||||
left: 0;
|
||||
}
|
||||
|
||||
.schedule-visual-table .schedule-visual-time-head {
|
||||
left: 96px;
|
||||
}
|
||||
|
||||
.schedule-visual-day-cell,
|
||||
.schedule-visual-time-cell {
|
||||
position: sticky;
|
||||
background: var(--bg-input);
|
||||
color: var(--text-primary);
|
||||
box-shadow: 1px 0 0 var(--bg-card-border);
|
||||
}
|
||||
|
||||
.schedule-visual-day-cell {
|
||||
left: 0;
|
||||
z-index: 4;
|
||||
width: 96px;
|
||||
min-width: 96px;
|
||||
padding: 0.52rem;
|
||||
vertical-align: top;
|
||||
font-weight: 800;
|
||||
font-size: 0.74rem;
|
||||
line-height: 1.15;
|
||||
overflow-wrap: anywhere;
|
||||
word-break: break-word;
|
||||
hyphens: auto;
|
||||
}
|
||||
|
||||
.schedule-visual-time-cell {
|
||||
left: 96px;
|
||||
z-index: 4;
|
||||
width: 96px;
|
||||
min-width: 96px;
|
||||
padding: 0.48rem;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.schedule-visual-time-cell strong,
|
||||
.schedule-visual-time-cell span {
|
||||
display: block;
|
||||
line-height: 1.15;
|
||||
}
|
||||
|
||||
.schedule-visual-time-cell span {
|
||||
margin-top: 0.2rem;
|
||||
color: var(--text-secondary);
|
||||
font-size: 0.66rem;
|
||||
}
|
||||
|
||||
.schedule-visual-lesson-cell {
|
||||
height: 1px;
|
||||
min-width: 168px;
|
||||
padding: 0 !important;
|
||||
vertical-align: stretch;
|
||||
background: var(--bg-primary);
|
||||
}
|
||||
|
||||
.schedule-visual-lesson-cell-empty {
|
||||
background: color-mix(in srgb, var(--bg-input) 42%, var(--bg-primary));
|
||||
}
|
||||
|
||||
.schedule-visual-unified {
|
||||
min-height: 96px;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.22rem;
|
||||
padding: 0.34rem;
|
||||
}
|
||||
|
||||
.schedule-visual-unified {
|
||||
justify-content: flex-start;
|
||||
background: color-mix(in srgb, var(--accent) 5%, var(--bg-primary));
|
||||
}
|
||||
|
||||
.schedule-visual-half {
|
||||
position: relative;
|
||||
min-height: 56px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.22rem;
|
||||
padding: 1.28rem 0.34rem 0.34rem;
|
||||
background: color-mix(in srgb, var(--accent) 13%, var(--bg-primary));
|
||||
}
|
||||
|
||||
.schedule-visual-half + .schedule-visual-half {
|
||||
border-top: 1px solid var(--bg-card-border);
|
||||
}
|
||||
|
||||
.schedule-visual-half-even {
|
||||
background: color-mix(in srgb, var(--success) 8%, var(--bg-primary));
|
||||
}
|
||||
|
||||
.schedule-visual-half-label {
|
||||
position: absolute;
|
||||
top: 0.35rem;
|
||||
left: 0.45rem;
|
||||
max-width: calc(100% - 0.9rem);
|
||||
padding: 0.1rem 0.4rem;
|
||||
border-radius: 999px;
|
||||
background: var(--bg-input);
|
||||
color: var(--text-secondary);
|
||||
font-size: 0.58rem;
|
||||
font-weight: 800;
|
||||
line-height: 1.1;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.schedule-visual-half-odd .schedule-visual-half-label {
|
||||
color: var(--accent-hover);
|
||||
}
|
||||
|
||||
.schedule-visual-half-even .schedule-visual-half-label {
|
||||
color: var(--success);
|
||||
}
|
||||
|
||||
.schedule-visual-lesson {
|
||||
display: grid;
|
||||
gap: 0.12rem;
|
||||
padding: 0.34rem;
|
||||
border: 1px solid var(--bg-card-border);
|
||||
border-radius: var(--radius-sm);
|
||||
background: var(--bg-card);
|
||||
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
|
||||
}
|
||||
|
||||
.schedule-visual-lesson strong {
|
||||
color: var(--text-primary);
|
||||
font-size: 0.7rem;
|
||||
line-height: 1.18;
|
||||
}
|
||||
|
||||
.schedule-visual-lesson strong span {
|
||||
color: var(--accent-hover);
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
.schedule-visual-lesson small {
|
||||
color: var(--text-secondary);
|
||||
font-size: 0.6rem;
|
||||
line-height: 1.14;
|
||||
}
|
||||
|
||||
.schedule-visual-free {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
min-height: 100%;
|
||||
color: var(--text-secondary);
|
||||
font-size: 0.78rem;
|
||||
}
|
||||
|
||||
@media (max-width: 640px) {
|
||||
.schedule-visual-drawer {
|
||||
width: 100vw;
|
||||
padding: 0.75rem;
|
||||
}
|
||||
|
||||
.schedule-visual-handle.open {
|
||||
right: calc(100vw - 42px);
|
||||
}
|
||||
|
||||
.schedule-visual-header {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.schedule-visual-header-main,
|
||||
.schedule-visual-filter-head {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
|
||||
.calendar-fill-panel {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(4, minmax(150px, 1fr)) auto;
|
||||
@@ -391,10 +774,9 @@
|
||||
}
|
||||
|
||||
.calendar-semesters-grid {
|
||||
--calendar-semester-block-height: 194px;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
grid-auto-rows: 1fr;
|
||||
grid-auto-rows: auto;
|
||||
align-items: stretch;
|
||||
gap: 0.65rem;
|
||||
padding: 0.65rem;
|
||||
@@ -403,8 +785,8 @@
|
||||
.calendar-semester-block {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: var(--calendar-semester-block-height);
|
||||
min-height: 100%;
|
||||
height: auto;
|
||||
min-height: 0;
|
||||
border: 1px solid var(--bg-card-border);
|
||||
border-radius: var(--radius-sm);
|
||||
background: var(--bg-card);
|
||||
@@ -433,11 +815,11 @@
|
||||
}
|
||||
|
||||
.calendar-semester-table-wrap {
|
||||
flex: 1;
|
||||
flex: 1 1 auto;
|
||||
display: flex;
|
||||
min-height: 0;
|
||||
min-height: 151px;
|
||||
overflow-x: auto;
|
||||
overflow-y: hidden;
|
||||
overflow-y: visible;
|
||||
background: var(--bg-primary);
|
||||
scrollbar-width: none;
|
||||
}
|
||||
@@ -450,7 +832,7 @@
|
||||
.calendar-semester-table {
|
||||
width: max-content;
|
||||
min-width: 100%;
|
||||
height: 100%;
|
||||
min-height: 100%;
|
||||
border-collapse: collapse;
|
||||
table-layout: fixed;
|
||||
font-size: 0.62rem;
|
||||
@@ -604,20 +986,30 @@
|
||||
}
|
||||
|
||||
.calendar-day-tooltip-code {
|
||||
width: 34px;
|
||||
min-width: 34px;
|
||||
height: 34px;
|
||||
display: inline-grid;
|
||||
place-items: center;
|
||||
border-radius: 8px;
|
||||
background: color-mix(in srgb, var(--activity-color, var(--accent)) 24%, transparent);
|
||||
border: 1px solid color-mix(in srgb, var(--activity-color, var(--accent)) 56%, transparent);
|
||||
color: var(--text-primary);
|
||||
font-size: 0.86rem;
|
||||
font-weight: 800;
|
||||
line-height: 1;
|
||||
padding-top: 2px;
|
||||
text-align: center;
|
||||
width: 34px;
|
||||
min-width: 34px;
|
||||
height: 34px;
|
||||
box-sizing: border-box;
|
||||
|
||||
display: inline-grid;
|
||||
place-items: center;
|
||||
|
||||
border-radius: 8px;
|
||||
background: color-mix(in srgb, var(--activity-color, var(--accent)) 24%, transparent);
|
||||
border: 1px solid color-mix(in srgb, var(--activity-color, var(--accent)) 56%, transparent);
|
||||
color: var(--text-primary);
|
||||
|
||||
font-size: 0.86rem;
|
||||
font-weight: 800;
|
||||
line-height: 1;
|
||||
|
||||
padding: 0;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.calendar-day-tooltip-code span {
|
||||
display: block;
|
||||
transform: translateY(2px);
|
||||
}
|
||||
|
||||
.calendar-day-tooltip-body {
|
||||
|
||||
Reference in New Issue
Block a user