3 Задача
This commit is contained in:
@@ -185,6 +185,8 @@
|
||||
--green: #047857;
|
||||
--orange: #b45309;
|
||||
--shadow: 0 12px 30px rgba(23, 32, 51, 0.08);
|
||||
--card: var(--panel);
|
||||
--border: var(--panel-border);
|
||||
}
|
||||
|
||||
[data-theme="dark"] {
|
||||
@@ -419,6 +421,456 @@ body {
|
||||
background: var(--panel);
|
||||
}
|
||||
|
||||
.btn-sm {
|
||||
min-height: 32px;
|
||||
padding: 0 10px;
|
||||
font-size: 12px;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.workspace-nav {
|
||||
display: inline-flex;
|
||||
gap: 4px;
|
||||
margin: 0 0 18px;
|
||||
padding: 5px;
|
||||
border: 1px solid var(--panel-border);
|
||||
border-radius: 12px;
|
||||
background: var(--panel);
|
||||
box-shadow: var(--shadow);
|
||||
}
|
||||
|
||||
.workspace-tab {
|
||||
min-height: 38px;
|
||||
padding: 0 15px;
|
||||
border: 0;
|
||||
border-radius: 8px;
|
||||
background: transparent;
|
||||
color: var(--muted);
|
||||
font: inherit;
|
||||
font-size: 13px;
|
||||
font-weight: 700;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.workspace-tab span {
|
||||
display: inline-grid;
|
||||
min-width: 20px;
|
||||
min-height: 20px;
|
||||
margin-left: 5px;
|
||||
place-items: center;
|
||||
border-radius: 999px;
|
||||
background: color-mix(in srgb, var(--accent) 12%, transparent);
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
.workspace-tab.active {
|
||||
background: var(--text);
|
||||
color: var(--panel);
|
||||
}
|
||||
|
||||
.workspace-view[hidden],
|
||||
.request-dialog-overlay[hidden] {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.workspace-view.active {
|
||||
animation: workspace-in 0.28s ease both;
|
||||
}
|
||||
|
||||
@keyframes workspace-in {
|
||||
from { opacity: 0; transform: translateY(7px); }
|
||||
to { opacity: 1; transform: translateY(0); }
|
||||
}
|
||||
|
||||
.preference-hero,
|
||||
.request-ledger-head {
|
||||
position: relative;
|
||||
display: flex;
|
||||
align-items: end;
|
||||
justify-content: space-between;
|
||||
gap: 30px;
|
||||
margin-bottom: 14px;
|
||||
padding: 26px;
|
||||
overflow: hidden;
|
||||
border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--panel-border));
|
||||
border-radius: 18px;
|
||||
background:
|
||||
linear-gradient(120deg, color-mix(in srgb, var(--accent) 13%, transparent), transparent 58%),
|
||||
var(--panel);
|
||||
box-shadow: var(--shadow);
|
||||
}
|
||||
|
||||
.preference-hero::after {
|
||||
position: absolute;
|
||||
top: -90px;
|
||||
right: 18%;
|
||||
width: 180px;
|
||||
height: 180px;
|
||||
border: 1px solid color-mix(in srgb, var(--accent) 23%, transparent);
|
||||
border-radius: 50%;
|
||||
content: '';
|
||||
}
|
||||
|
||||
.preference-kicker,
|
||||
.request-ledger-head > div > span {
|
||||
color: var(--accent-strong);
|
||||
font-size: 11px;
|
||||
font-weight: 800;
|
||||
letter-spacing: 0.13em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.preference-hero h2,
|
||||
.request-ledger-head h2 {
|
||||
max-width: 720px;
|
||||
margin: 7px 0;
|
||||
font-size: clamp(24px, 4vw, 42px);
|
||||
line-height: 1.02;
|
||||
letter-spacing: -0.035em;
|
||||
}
|
||||
|
||||
.preference-hero p,
|
||||
.request-ledger-head p {
|
||||
max-width: 760px;
|
||||
margin: 0;
|
||||
color: var(--muted);
|
||||
line-height: 1.55;
|
||||
}
|
||||
|
||||
.preference-semester-field,
|
||||
.preference-board-head label,
|
||||
.request-dialog label {
|
||||
display: grid;
|
||||
gap: 6px;
|
||||
color: var(--muted);
|
||||
font-size: 12px;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.preference-semester-field {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
min-width: 280px;
|
||||
}
|
||||
|
||||
.preference-semester-field select,
|
||||
.preference-board-head select,
|
||||
.preference-date-form input,
|
||||
.request-dialog select,
|
||||
.request-dialog textarea {
|
||||
min-height: 42px;
|
||||
padding: 0 12px;
|
||||
border: 1px solid var(--panel-border);
|
||||
border-radius: 9px;
|
||||
background: var(--panel);
|
||||
color: var(--text);
|
||||
font: inherit;
|
||||
}
|
||||
|
||||
.preference-board,
|
||||
.preference-card {
|
||||
border: 1px solid var(--panel-border);
|
||||
border-radius: 16px;
|
||||
background: var(--panel);
|
||||
box-shadow: var(--shadow);
|
||||
}
|
||||
|
||||
.preference-board {
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
.preference-board-head {
|
||||
display: flex;
|
||||
align-items: end;
|
||||
justify-content: space-between;
|
||||
gap: 20px;
|
||||
}
|
||||
|
||||
.preference-board-head > div > span,
|
||||
.preference-card-number {
|
||||
color: var(--accent-strong);
|
||||
font-size: 11px;
|
||||
font-weight: 900;
|
||||
letter-spacing: 0.12em;
|
||||
}
|
||||
|
||||
.preference-board-head h3,
|
||||
.preference-card h3 {
|
||||
margin: 5px 0 0;
|
||||
font-size: 19px;
|
||||
}
|
||||
|
||||
.preference-legend {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 8px;
|
||||
margin: 16px 0 10px;
|
||||
}
|
||||
|
||||
.preference-legend span {
|
||||
padding: 4px 9px;
|
||||
border: 1px solid var(--panel-border);
|
||||
border-radius: 999px;
|
||||
color: var(--muted);
|
||||
font-size: 11px;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.preference-legend .is-preferred { border-color: #10b981; color: #047857; }
|
||||
.preference-legend .is-unwanted { border-color: #f59e0b; color: #b45309; }
|
||||
.preference-legend .is-hard { border-color: #f43f5e; color: #be123c; }
|
||||
.preference-legend .is-pending { border-style: dashed; }
|
||||
|
||||
.preference-grid-wrap {
|
||||
overflow-x: auto;
|
||||
padding-bottom: 4px;
|
||||
}
|
||||
|
||||
.preference-grid {
|
||||
display: grid;
|
||||
min-width: 780px;
|
||||
grid-template-columns: 110px repeat(7, minmax(78px, 1fr));
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.preference-grid-corner,
|
||||
.preference-grid-day,
|
||||
.preference-grid-time,
|
||||
.preference-cell {
|
||||
min-height: 48px;
|
||||
border: 1px solid var(--panel-border);
|
||||
border-radius: 9px;
|
||||
}
|
||||
|
||||
.preference-grid-corner,
|
||||
.preference-grid-day {
|
||||
display: grid;
|
||||
place-items: center;
|
||||
background: color-mix(in srgb, var(--panel-border) 22%, transparent);
|
||||
color: var(--muted);
|
||||
font-size: 12px;
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
.preference-grid-time {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
padding: 7px 10px;
|
||||
}
|
||||
|
||||
.preference-grid-time strong {
|
||||
display: grid;
|
||||
width: 25px;
|
||||
height: 25px;
|
||||
place-items: center;
|
||||
border-radius: 7px;
|
||||
background: var(--text);
|
||||
color: var(--panel);
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.preference-grid-time span {
|
||||
color: var(--muted);
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
.preference-cell {
|
||||
position: relative;
|
||||
background: transparent;
|
||||
color: var(--muted);
|
||||
cursor: pointer;
|
||||
transition: transform .16s ease, border-color .16s ease, background .16s ease;
|
||||
}
|
||||
|
||||
.preference-cell:hover { transform: translateY(-2px); border-color: var(--accent); }
|
||||
.preference-cell span { font-size: 19px; font-weight: 900; }
|
||||
.preference-cell.is-preferred { border-color: #10b981; background: color-mix(in srgb, #10b981 15%, transparent); color: #047857; }
|
||||
.preference-cell.is-unwanted { border-color: #f59e0b; background: color-mix(in srgb, #f59e0b 15%, transparent); color: #b45309; }
|
||||
.preference-cell.is-hard { border-color: #f43f5e; background: color-mix(in srgb, #f43f5e 14%, transparent); color: #be123c; }
|
||||
.preference-cell.is-pending::after {
|
||||
position: absolute;
|
||||
inset: 3px;
|
||||
border: 1px dashed currentColor;
|
||||
border-radius: 6px;
|
||||
content: '';
|
||||
opacity: .7;
|
||||
}
|
||||
|
||||
.preference-message,
|
||||
.request-dialog-message {
|
||||
min-height: 20px;
|
||||
margin-top: 10px;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.preference-message.success { color: #059669; }
|
||||
.preference-message.error,
|
||||
.request-dialog-message.error { color: #dc2626; }
|
||||
|
||||
.preference-lower-grid {
|
||||
display: grid;
|
||||
grid-template-columns: 1.35fr .65fr;
|
||||
gap: 14px;
|
||||
margin-top: 14px;
|
||||
}
|
||||
|
||||
.preference-card {
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
.preference-card p {
|
||||
margin: 7px 0 16px;
|
||||
color: var(--muted);
|
||||
font-size: 13px;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.preference-date-form {
|
||||
display: grid;
|
||||
grid-template-columns: 170px 1fr auto;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.preference-date-list {
|
||||
display: grid;
|
||||
gap: 7px;
|
||||
margin-top: 12px;
|
||||
}
|
||||
|
||||
.preference-date-list article {
|
||||
display: grid;
|
||||
grid-template-columns: auto minmax(0, 1fr) auto auto;
|
||||
gap: 9px;
|
||||
align-items: center;
|
||||
padding: 9px;
|
||||
border: 1px solid var(--panel-border);
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
.preference-date-list small { display: block; margin-top: 2px; color: var(--muted); }
|
||||
.preference-date-mark { width: 7px; height: 34px; border-radius: 9px; background: #f59e0b; }
|
||||
.preference-date-mark.approved { background: #f43f5e; }
|
||||
.preference-status { color: var(--muted); font-size: 11px; font-weight: 800; }
|
||||
.preference-empty { padding: 14px; color: var(--muted); text-align: center; font-size: 13px; }
|
||||
|
||||
.preference-toggle-card {
|
||||
display: grid;
|
||||
grid-template-columns: auto 1fr;
|
||||
gap: 10px;
|
||||
align-items: start;
|
||||
margin-top: 9px;
|
||||
padding: 12px;
|
||||
border: 1px solid var(--panel-border);
|
||||
border-radius: 11px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.preference-toggle-card.approved { border-color: #10b981; background: color-mix(in srgb, #10b981 8%, transparent); }
|
||||
.preference-toggle-card input { margin-top: 3px; accent-color: var(--accent); }
|
||||
.preference-toggle-card strong,
|
||||
.preference-toggle-card small { display: block; }
|
||||
.preference-toggle-card small { margin-top: 3px; color: var(--muted); line-height: 1.4; }
|
||||
|
||||
.lesson-request-button {
|
||||
width: 100%;
|
||||
margin-top: 9px;
|
||||
padding: 6px 8px;
|
||||
border: 1px solid color-mix(in srgb, var(--green) 35%, var(--panel-border));
|
||||
border-radius: 7px;
|
||||
background: var(--panel);
|
||||
color: var(--green);
|
||||
font: inherit;
|
||||
font-size: 11px;
|
||||
font-weight: 800;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.lesson-change-note { display: block; margin-top: 8px; color: var(--muted); font-size: 10px; }
|
||||
|
||||
.request-ledger-head h2 { font-size: clamp(24px, 3vw, 34px); }
|
||||
.request-ledger { display: grid; gap: 10px; }
|
||||
.request-empty { padding: 28px; border: 1px dashed var(--panel-border); border-radius: 14px; color: var(--muted); text-align: center; }
|
||||
|
||||
.request-ledger-item {
|
||||
display: grid;
|
||||
grid-template-columns: 7px minmax(0, 1fr) auto;
|
||||
gap: 17px;
|
||||
padding: 17px;
|
||||
border: 1px solid var(--panel-border);
|
||||
border-radius: 15px;
|
||||
background: var(--panel);
|
||||
box-shadow: var(--shadow);
|
||||
}
|
||||
|
||||
.request-ledger-stripe { border-radius: 99px; background: #94a3b8; }
|
||||
.request-ledger-stripe.pending { background: #f59e0b; }
|
||||
.request-ledger-stripe.approved { background: #10b981; }
|
||||
.request-ledger-stripe.rejected { background: #f43f5e; }
|
||||
.request-ledger-main > span { color: var(--muted); font-size: 12px; }
|
||||
.request-ledger-main h3 { margin: 4px 0; }
|
||||
.request-ledger-main p { margin: 3px 0; color: var(--muted); font-size: 13px; }
|
||||
.request-change-line { display: flex; align-items: center; gap: 9px; margin: 12px 0; font-size: 13px; }
|
||||
.request-change-line b { color: var(--accent-strong); }
|
||||
.request-change-line i { color: var(--muted); font-style: normal; }
|
||||
.request-ledger-main .request-reason { color: var(--text); }
|
||||
.request-ledger-main .request-review-comment { color: #047857; }
|
||||
.request-ledger-main details { margin-top: 10px; }
|
||||
.request-ledger-main summary { color: var(--muted); font-size: 12px; cursor: pointer; }
|
||||
.request-ledger-main ol { display: grid; gap: 5px; padding-left: 20px; }
|
||||
.request-ledger-main li { padding-left: 5px; font-size: 12px; }
|
||||
.request-ledger-main li time,
|
||||
.request-ledger-main li strong,
|
||||
.request-ledger-main li span { margin-right: 8px; }
|
||||
.request-ledger-main li time { color: var(--muted); }
|
||||
.request-ledger-side { display: flex; flex-direction: column; align-items: end; gap: 9px; }
|
||||
.request-status { padding: 5px 9px; border: 1px solid currentColor; border-radius: 999px; color: var(--muted); font-size: 11px; font-weight: 800; }
|
||||
.request-status.pending { color: #b45309; }
|
||||
.request-status.approved { color: #047857; }
|
||||
.request-status.rejected { color: #be123c; }
|
||||
|
||||
.request-dialog-overlay {
|
||||
position: fixed;
|
||||
z-index: 1000;
|
||||
inset: 0;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
padding: 20px;
|
||||
background: rgba(7, 12, 22, .68);
|
||||
backdrop-filter: blur(7px);
|
||||
}
|
||||
|
||||
.dialog-open { overflow: hidden; }
|
||||
.request-dialog {
|
||||
width: min(760px, 100%);
|
||||
max-height: calc(100vh - 40px);
|
||||
overflow: auto;
|
||||
border: 1px solid var(--panel-border);
|
||||
border-radius: 18px;
|
||||
background: var(--panel);
|
||||
box-shadow: 0 35px 90px rgba(0, 0, 0, .35);
|
||||
}
|
||||
|
||||
.request-dialog header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
gap: 20px;
|
||||
padding: 20px;
|
||||
border-bottom: 1px solid var(--panel-border);
|
||||
background: linear-gradient(115deg, color-mix(in srgb, var(--accent) 12%, transparent), transparent);
|
||||
}
|
||||
|
||||
.request-dialog header span { color: var(--accent-strong); font-size: 11px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
|
||||
.request-dialog header h2 { margin: 5px 0; }
|
||||
.request-dialog header p { margin: 0; color: var(--muted); font-size: 13px; }
|
||||
.request-dialog form { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; padding: 20px; }
|
||||
.request-dialog [hidden] { display: none; }
|
||||
.request-dialog textarea { min-height: 100px; padding-top: 10px; resize: vertical; }
|
||||
.request-reason-field,
|
||||
.request-dialog-message,
|
||||
.request-dialog footer { grid-column: 1 / -1; }
|
||||
.request-dialog footer { display: flex; justify-content: flex-end; gap: 8px; padding-top: 5px; }
|
||||
|
||||
.empty {
|
||||
color: var(--muted);
|
||||
font-size: 13px;
|
||||
@@ -471,5 +923,26 @@ body {
|
||||
.week-nav .btn {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.workspace-nav,
|
||||
.preference-hero,
|
||||
.preference-board-head,
|
||||
.request-ledger-head {
|
||||
display: grid;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.workspace-tab { text-align: left; }
|
||||
.preference-semester-field { min-width: 0; }
|
||||
.preference-lower-grid,
|
||||
.preference-date-form,
|
||||
.request-dialog form { grid-template-columns: 1fr; }
|
||||
.preference-date-form .btn,
|
||||
.request-reason-field,
|
||||
.request-dialog-message,
|
||||
.request-dialog footer { grid-column: auto; }
|
||||
.request-ledger-item { grid-template-columns: 6px minmax(0, 1fr); }
|
||||
.request-ledger-side { grid-column: 2; align-items: start; }
|
||||
.request-dialog footer { flex-direction: column-reverse; }
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user