redisign and bug fix
This commit is contained in:
parent
a18b5ad1ce
commit
8542ce8e01
10 changed files with 1622 additions and 1169 deletions
|
|
@ -1,264 +1,513 @@
|
|||
:root {
|
||||
--bg: #f6efe5;
|
||||
--paper: rgba(255, 252, 248, 0.88);
|
||||
--paper-strong: #fffaf2;
|
||||
--text: #1f2937;
|
||||
--muted: #6b7280;
|
||||
--line: rgba(123, 92, 62, 0.18);
|
||||
--brand: #d97706;
|
||||
--brand-deep: #9a3412;
|
||||
--task: #15803d;
|
||||
--event: #0f766e;
|
||||
--accent: #f59e0b;
|
||||
--shadow: 0 20px 55px rgba(101, 67, 33, 0.12);
|
||||
}
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
|
||||
background: #f5f5f5;
|
||||
padding: 20px;
|
||||
min-height: 100vh;
|
||||
font-family: Georgia, "Times New Roman", serif;
|
||||
color: var(--text);
|
||||
background:
|
||||
radial-gradient(circle at top left, rgba(217, 119, 6, 0.18), transparent 28%),
|
||||
radial-gradient(circle at bottom right, rgba(15, 118, 110, 0.14), transparent 22%),
|
||||
linear-gradient(180deg, #f9f4ec 0%, #efe5d5 100%);
|
||||
padding: 18px;
|
||||
}
|
||||
|
||||
.container {
|
||||
max-width: 1400px;
|
||||
.app-shell {
|
||||
max-width: 100%;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
header {
|
||||
background: white;
|
||||
padding: 20px;
|
||||
border-radius: 8px;
|
||||
margin-bottom: 20px;
|
||||
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
|
||||
.hero,
|
||||
.toolbar,
|
||||
.hint-panel,
|
||||
.day-card,
|
||||
.modal-content {
|
||||
backdrop-filter: blur(14px);
|
||||
background: var(--paper);
|
||||
border: 1px solid rgba(255, 255, 255, 0.55);
|
||||
box-shadow: var(--shadow);
|
||||
}
|
||||
|
||||
header h1 {
|
||||
margin-bottom: 15px;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.week-navigation {
|
||||
.hero {
|
||||
border-radius: 30px;
|
||||
padding: 32px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 20px;
|
||||
}
|
||||
|
||||
.week-navigation button {
|
||||
padding: 8px 16px;
|
||||
background: #4CAF50;
|
||||
color: white;
|
||||
border: none;
|
||||
border-radius: 4px;
|
||||
cursor: pointer;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.week-navigation button:hover {
|
||||
background: #45a049;
|
||||
}
|
||||
|
||||
#week-range {
|
||||
font-weight: 600;
|
||||
color: #555;
|
||||
}
|
||||
|
||||
.actions {
|
||||
justify-content: space-between;
|
||||
gap: 24px;
|
||||
align-items: flex-start;
|
||||
margin-bottom: 20px;
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.btn {
|
||||
padding: 10px 20px;
|
||||
.eyebrow {
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.2em;
|
||||
font-size: 12px;
|
||||
color: var(--brand-deep);
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.hero h1 {
|
||||
font-size: clamp(34px, 4vw, 56px);
|
||||
line-height: 0.95;
|
||||
margin-bottom: 14px;
|
||||
}
|
||||
|
||||
.hero-copy {
|
||||
max-width: 760px;
|
||||
font-size: 18px;
|
||||
line-height: 1.5;
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
.hero-actions,
|
||||
.week-navigation,
|
||||
.legend,
|
||||
.hint-panel,
|
||||
.task-list,
|
||||
.item-actions,
|
||||
.scope-row,
|
||||
.form-row {
|
||||
display: flex;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.hero-actions {
|
||||
flex-wrap: wrap;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
|
||||
.btn,
|
||||
.nav-btn {
|
||||
border: none;
|
||||
border-radius: 4px;
|
||||
cursor: pointer;
|
||||
border-radius: 999px;
|
||||
padding: 12px 18px;
|
||||
font-size: 14px;
|
||||
cursor: pointer;
|
||||
transition: transform 0.18s ease, opacity 0.18s ease, background 0.18s ease;
|
||||
}
|
||||
|
||||
.btn:hover,
|
||||
.nav-btn:hover {
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
.btn-primary {
|
||||
background: #2196F3;
|
||||
background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
|
||||
color: white;
|
||||
}
|
||||
|
||||
.btn-primary:hover {
|
||||
background: #0b7dda;
|
||||
.btn-secondary,
|
||||
.nav-btn {
|
||||
background: rgba(255, 248, 236, 0.95);
|
||||
color: var(--text);
|
||||
border: 1px solid rgba(123, 92, 62, 0.16);
|
||||
}
|
||||
|
||||
.toolbar {
|
||||
border-radius: 24px;
|
||||
padding: 18px 22px;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
gap: 16px;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
.toolbar-label {
|
||||
color: var(--muted);
|
||||
font-size: 12px;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.15em;
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
|
||||
.range-title {
|
||||
font-size: 20px;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.legend {
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.legend-chip {
|
||||
padding: 8px 12px;
|
||||
border-radius: 999px;
|
||||
font-size: 13px;
|
||||
border: 1px solid transparent;
|
||||
}
|
||||
|
||||
.task-chip {
|
||||
background: rgba(21, 128, 61, 0.12);
|
||||
color: var(--task);
|
||||
}
|
||||
|
||||
.event-chip {
|
||||
background: rgba(15, 118, 110, 0.12);
|
||||
color: var(--event);
|
||||
}
|
||||
|
||||
.recurring-chip {
|
||||
background: rgba(245, 158, 11, 0.16);
|
||||
color: var(--brand-deep);
|
||||
}
|
||||
|
||||
.hint-panel {
|
||||
border-radius: 20px;
|
||||
padding: 14px 18px;
|
||||
margin-bottom: 22px;
|
||||
flex-wrap: wrap;
|
||||
color: var(--muted);
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.schedule-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(7, 1fr);
|
||||
gap: 15px;
|
||||
grid-template-columns: repeat(7, minmax(220px, 1fr));
|
||||
gap: 14px;
|
||||
padding-bottom: 8px;
|
||||
min-width: 1624px;
|
||||
}
|
||||
|
||||
.day-column {
|
||||
background: white;
|
||||
border-radius: 8px;
|
||||
padding: 15px;
|
||||
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
|
||||
.schedule-scroll {
|
||||
overflow-x: auto;
|
||||
overflow-y: visible;
|
||||
padding-bottom: 10px;
|
||||
scrollbar-width: thin;
|
||||
}
|
||||
|
||||
.day-card {
|
||||
border-radius: 26px;
|
||||
padding: 16px;
|
||||
min-height: 820px;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.day-card.is-today {
|
||||
outline: 2px solid rgba(217, 119, 6, 0.28);
|
||||
}
|
||||
|
||||
.day-header {
|
||||
font-weight: 600;
|
||||
font-size: 16px;
|
||||
margin-bottom: 15px;
|
||||
padding-bottom: 10px;
|
||||
border-bottom: 2px solid #4CAF50;
|
||||
color: #333;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: flex-start;
|
||||
margin-bottom: 16px;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.day-items {
|
||||
min-height: 200px;
|
||||
.day-title {
|
||||
font-size: 22px;
|
||||
line-height: 1.1;
|
||||
}
|
||||
|
||||
.item {
|
||||
background: #f9f9f9;
|
||||
padding: 10px;
|
||||
margin-bottom: 8px;
|
||||
border-radius: 4px;
|
||||
border-left: 3px solid #4CAF50;
|
||||
cursor: pointer;
|
||||
transition: background 0.2s;
|
||||
.day-subtitle {
|
||||
color: var(--muted);
|
||||
margin-top: 6px;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.item:hover {
|
||||
background: #f0f0f0;
|
||||
}
|
||||
|
||||
.item.task {
|
||||
border-left-color: #FF9800;
|
||||
}
|
||||
|
||||
.item.event {
|
||||
border-left-color: #2196F3;
|
||||
}
|
||||
|
||||
.item-title {
|
||||
font-weight: 500;
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
|
||||
.item-time {
|
||||
.day-badge {
|
||||
border-radius: 999px;
|
||||
background: rgba(217, 119, 6, 0.12);
|
||||
color: var(--brand-deep);
|
||||
padding: 8px 10px;
|
||||
font-size: 12px;
|
||||
color: #666;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.task-section {
|
||||
margin-bottom: 18px;
|
||||
}
|
||||
|
||||
.section-label {
|
||||
font-size: 12px;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.15em;
|
||||
color: var(--muted);
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.task-list {
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.task-item,
|
||||
.empty-state {
|
||||
border-radius: 18px;
|
||||
padding: 12px 14px;
|
||||
}
|
||||
|
||||
.task-item {
|
||||
background: rgba(21, 128, 61, 0.08);
|
||||
border: 1px solid rgba(21, 128, 61, 0.16);
|
||||
}
|
||||
|
||||
.task-title,
|
||||
.event-title {
|
||||
font-size: 15px;
|
||||
font-weight: 700;
|
||||
line-height: 1.3;
|
||||
}
|
||||
|
||||
.meta-text {
|
||||
color: var(--muted);
|
||||
font-size: 12px;
|
||||
margin-top: 6px;
|
||||
}
|
||||
|
||||
.item-actions {
|
||||
margin-top: 8px;
|
||||
display: flex;
|
||||
gap: 5px;
|
||||
margin-top: 10px;
|
||||
flex-wrap: wrap;
|
||||
display: none;
|
||||
}
|
||||
|
||||
.item-actions button {
|
||||
padding: 4px 8px;
|
||||
font-size: 11px;
|
||||
.task-item.is-active .item-actions,
|
||||
.event-block.is-active .item-actions {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.item-action {
|
||||
border: none;
|
||||
border-radius: 3px;
|
||||
border-radius: 999px;
|
||||
padding: 6px 10px;
|
||||
font-size: 12px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.btn-edit {
|
||||
background: #FFC107;
|
||||
color: #333;
|
||||
.item-action.edit {
|
||||
background: rgba(15, 118, 110, 0.12);
|
||||
color: var(--event);
|
||||
}
|
||||
|
||||
.btn-delete {
|
||||
background: #f44336;
|
||||
.item-action.delete {
|
||||
background: rgba(154, 52, 18, 0.12);
|
||||
color: var(--brand-deep);
|
||||
}
|
||||
|
||||
.timeline {
|
||||
position: relative;
|
||||
height: 576px;
|
||||
border-radius: 22px;
|
||||
background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(252, 246, 238, 0.95) 100%);
|
||||
border: 1px solid var(--line);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.timeline-dropzone {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
}
|
||||
|
||||
.timeline-hour {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
right: 0;
|
||||
height: 48px;
|
||||
border-top: 1px solid rgba(123, 92, 62, 0.12);
|
||||
}
|
||||
|
||||
.timeline-hour-label {
|
||||
position: absolute;
|
||||
top: -8px;
|
||||
left: 10px;
|
||||
font-size: 11px;
|
||||
color: var(--muted);
|
||||
background: rgba(255, 250, 242, 0.9);
|
||||
padding: 0 4px;
|
||||
}
|
||||
|
||||
.event-block {
|
||||
position: absolute;
|
||||
left: 14px;
|
||||
right: 14px;
|
||||
border-radius: 18px;
|
||||
padding: 12px 14px;
|
||||
background: linear-gradient(160deg, rgba(15, 118, 110, 0.92), rgba(17, 94, 89, 0.84));
|
||||
color: white;
|
||||
box-shadow: 0 12px 24px rgba(15, 118, 110, 0.22);
|
||||
cursor: grab;
|
||||
user-select: none;
|
||||
transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
|
||||
}
|
||||
|
||||
.event-block.recurring {
|
||||
outline: 2px solid rgba(245, 158, 11, 0.55);
|
||||
}
|
||||
|
||||
.event-block.is-active {
|
||||
transform: scale(1.01);
|
||||
box-shadow: 0 18px 32px rgba(15, 118, 110, 0.28);
|
||||
}
|
||||
|
||||
.event-block.dragging {
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
||||
.event-time {
|
||||
font-size: 12px;
|
||||
opacity: 0.82;
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
|
||||
.empty-state {
|
||||
color: var(--muted);
|
||||
border: 1px dashed rgba(123, 92, 62, 0.2);
|
||||
background: rgba(255, 255, 255, 0.35);
|
||||
}
|
||||
|
||||
/* Модальное окно */
|
||||
.modal {
|
||||
display: none;
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
background: rgba(41, 28, 16, 0.38);
|
||||
z-index: 1000;
|
||||
left: 0;
|
||||
top: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background-color: rgba(0,0,0,0.5);
|
||||
padding: 24px;
|
||||
}
|
||||
|
||||
.modal-content {
|
||||
background-color: white;
|
||||
margin: 5% auto;
|
||||
padding: 30px;
|
||||
border-radius: 8px;
|
||||
width: 90%;
|
||||
max-width: 500px;
|
||||
width: min(720px, 100%);
|
||||
max-height: calc(100vh - 48px);
|
||||
overflow-y: auto;
|
||||
margin: 0 auto;
|
||||
border-radius: 28px;
|
||||
padding: 28px;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.close {
|
||||
position: absolute;
|
||||
right: 20px;
|
||||
top: 15px;
|
||||
font-size: 28px;
|
||||
font-weight: bold;
|
||||
color: #aaa;
|
||||
top: 18px;
|
||||
right: 18px;
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
border-radius: 999px;
|
||||
border: none;
|
||||
background: rgba(123, 92, 62, 0.08);
|
||||
cursor: pointer;
|
||||
font-size: 24px;
|
||||
}
|
||||
|
||||
.close:hover {
|
||||
color: #000;
|
||||
.modal-title {
|
||||
font-size: 30px;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
.modal-subtitle {
|
||||
color: var(--muted);
|
||||
margin-bottom: 22px;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.form-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
gap: 14px;
|
||||
}
|
||||
|
||||
.form-group {
|
||||
margin-bottom: 15px;
|
||||
margin-bottom: 14px;
|
||||
}
|
||||
|
||||
.form-group.full {
|
||||
grid-column: 1 / -1;
|
||||
}
|
||||
|
||||
.form-group label {
|
||||
display: block;
|
||||
margin-bottom: 5px;
|
||||
font-weight: 500;
|
||||
color: #333;
|
||||
margin-bottom: 6px;
|
||||
font-size: 13px;
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
.form-group input,
|
||||
.form-group select,
|
||||
.form-group textarea {
|
||||
.form-group textarea,
|
||||
.form-group select {
|
||||
width: 100%;
|
||||
padding: 8px;
|
||||
border: 1px solid #ddd;
|
||||
border-radius: 4px;
|
||||
font-size: 14px;
|
||||
padding: 12px 14px;
|
||||
border-radius: 16px;
|
||||
border: 1px solid rgba(123, 92, 62, 0.18);
|
||||
background: rgba(255, 255, 255, 0.85);
|
||||
font-size: 15px;
|
||||
font-family: inherit;
|
||||
}
|
||||
|
||||
.form-group textarea {
|
||||
min-height: 80px;
|
||||
min-height: 108px;
|
||||
resize: vertical;
|
||||
}
|
||||
|
||||
.checkbox-group {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
.checkbox-card,
|
||||
.scope-card {
|
||||
border-radius: 18px;
|
||||
border: 1px solid rgba(123, 92, 62, 0.14);
|
||||
background: rgba(255, 250, 242, 0.8);
|
||||
padding: 14px;
|
||||
}
|
||||
|
||||
.checkbox-group input[type="checkbox"] {
|
||||
.checkbox-card input,
|
||||
.scope-card input {
|
||||
width: auto;
|
||||
}
|
||||
|
||||
.weekdays-select {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 8px;
|
||||
margin-top: 10px;
|
||||
.scope-row {
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.weekdays-select label {
|
||||
.scope-card {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 5px;
|
||||
font-weight: normal;
|
||||
gap: 10px;
|
||||
align-items: flex-start;
|
||||
}
|
||||
|
||||
.actions-row {
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
margin-top: 18px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
@media (max-width: 1200px) {
|
||||
.schedule-grid {
|
||||
grid-template-columns: repeat(4, 1fr);
|
||||
min-width: 1624px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.schedule-grid {
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
@media (max-width: 860px) {
|
||||
body {
|
||||
padding: 16px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 480px) {
|
||||
.schedule-grid {
|
||||
.hero,
|
||||
.toolbar {
|
||||
flex-direction: column;
|
||||
align-items: stretch;
|
||||
}
|
||||
|
||||
.form-grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 560px) {
|
||||
.timeline {
|
||||
height: 520px;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue