feat: unified calendar view and eisenhower matrix view
This commit is contained in:
182
static/style.css
182
static/style.css
@@ -812,6 +812,19 @@ a:hover { color: var(--accent-hover); }
|
||||
.focus-title { flex: 1; font-weight: 500; }
|
||||
.focus-meta { font-size: 0.78rem; color: var(--muted); }
|
||||
|
||||
/* ---- Alerts ---- */
|
||||
.alert {
|
||||
padding: 12px 16px;
|
||||
border-radius: var(--radius);
|
||||
font-size: 0.88rem;
|
||||
font-weight: 500;
|
||||
}
|
||||
.alert-warning {
|
||||
background: var(--amber-soft);
|
||||
color: var(--amber);
|
||||
border: 1px solid var(--amber);
|
||||
}
|
||||
|
||||
/* ---- Utility ---- */
|
||||
.text-muted { color: var(--muted); }
|
||||
.text-sm { font-size: 0.82rem; }
|
||||
@@ -1255,3 +1268,172 @@ a:hover { color: var(--accent-hover); }
|
||||
.timer-detail-stop:hover {
|
||||
background: var(--red, #ef4444)33;
|
||||
}
|
||||
|
||||
/* ---- Calendar View ---- */
|
||||
.cal-nav {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
.cal-month-label {
|
||||
font-size: 1.15rem;
|
||||
font-weight: 700;
|
||||
min-width: 180px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.cal-legend {
|
||||
display: flex;
|
||||
gap: 16px;
|
||||
margin-bottom: 12px;
|
||||
font-size: 0.78rem;
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
.cal-legend-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.cal-dot {
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
border-radius: 50%;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.cal-dot-appointment { background: var(--amber); }
|
||||
.cal-dot-meeting { background: var(--purple); }
|
||||
.cal-dot-task { background: var(--accent); }
|
||||
|
||||
.cal-grid {
|
||||
background: var(--surface);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius-lg);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.cal-header-row {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(7, 1fr);
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
|
||||
.cal-header-cell {
|
||||
padding: 8px;
|
||||
font-size: 0.75rem;
|
||||
font-weight: 600;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.06em;
|
||||
color: var(--muted);
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.cal-week-row {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(7, 1fr);
|
||||
min-height: 100px;
|
||||
}
|
||||
|
||||
.cal-week-row + .cal-week-row {
|
||||
border-top: 1px solid var(--border);
|
||||
}
|
||||
|
||||
.cal-day-cell {
|
||||
padding: 4px;
|
||||
border-right: 1px solid var(--border);
|
||||
min-height: 100px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.cal-day-cell:last-child {
|
||||
border-right: none;
|
||||
}
|
||||
|
||||
.cal-day-empty {
|
||||
background: var(--surface2);
|
||||
min-height: 100px;
|
||||
}
|
||||
|
||||
.cal-day-today {
|
||||
background: var(--accent-soft);
|
||||
}
|
||||
|
||||
.cal-day-num {
|
||||
font-size: 0.78rem;
|
||||
font-weight: 600;
|
||||
color: var(--text-secondary);
|
||||
padding: 2px 4px;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.cal-day-today .cal-day-num {
|
||||
color: var(--accent);
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.cal-events {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 2px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.cal-event {
|
||||
display: block;
|
||||
padding: 2px 4px;
|
||||
border-radius: var(--radius-sm);
|
||||
font-size: 0.72rem;
|
||||
line-height: 1.3;
|
||||
text-decoration: none;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
transition: opacity var(--transition);
|
||||
}
|
||||
|
||||
.cal-event:hover {
|
||||
opacity: 0.8;
|
||||
}
|
||||
|
||||
.cal-event-appointment {
|
||||
background: var(--amber-soft);
|
||||
color: var(--amber);
|
||||
border-left: 2px solid var(--amber);
|
||||
}
|
||||
|
||||
.cal-event-meeting {
|
||||
background: var(--purple-soft);
|
||||
color: var(--purple);
|
||||
border-left: 2px solid var(--purple);
|
||||
}
|
||||
|
||||
.cal-event-task {
|
||||
background: var(--accent-soft);
|
||||
color: var(--accent);
|
||||
border-left: 2px solid var(--accent);
|
||||
}
|
||||
|
||||
.cal-event-time {
|
||||
font-weight: 600;
|
||||
margin-right: 2px;
|
||||
}
|
||||
|
||||
.cal-event-title {
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.cal-week-row { min-height: 60px; }
|
||||
.cal-day-cell { min-height: 60px; padding: 2px; }
|
||||
.cal-day-empty { min-height: 60px; }
|
||||
.cal-day-num { font-size: 0.72rem; }
|
||||
.cal-event { font-size: 0.65rem; padding: 1px 2px; }
|
||||
.cal-event-time { display: none; }
|
||||
.cal-month-label { font-size: 1rem; min-width: 140px; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user