Better calendar (colors per tool, grid layout, legend) + fix listings render

This commit is contained in:
2026-05-04 11:13:00 +02:00
parent 34d89c5216
commit 0aa055684d
2 changed files with 75 additions and 28 deletions
+25 -8
View File
@@ -91,14 +91,31 @@ h3 { font-size: 1rem; font-weight: 600; color: var(--muted); }
/* Calendar */
.cal-nav { display: flex; align-items: center; gap: 12px; }
.cal-nav span { font-weight: 600; min-width: 140px; text-align: center; }
.cal-table { width: 100%; border-collapse: collapse; }
.cal-table th { padding: 8px; text-align: center; font-size: 0.8rem; color: var(--muted); border-bottom: 1px solid var(--border); }
.cal-table td { padding: 4px; vertical-align: top; min-width: 80px; min-height: 80px; border: 1px solid var(--border); border-radius: 4px; }
.cal-day-num { font-size: 0.8rem; color: var(--muted); padding: 2px 4px; }
.cal-day-num.today { background: var(--primary); color: #fff; border-radius: 50%; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; }
.cal-event { font-size: 0.7rem; padding: 2px 5px; border-radius: 4px; margin-bottom: 2px; cursor: pointer; background: rgba(99,102,241,0.25); color: var(--primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-event:hover { background: rgba(99,102,241,0.45); }
.cal-nav span { font-weight: 600; min-width: 160px; text-align: center; font-size: 1rem; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; min-height: 20px; }
.cal-legend-item { display: flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--muted); }
.cal-legend-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.cal-grid-wrap { overflow-x: auto; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; min-width: 560px; }
.cal-header-cell { text-align: center; font-size: .75rem; font-weight: 600; color: var(--muted); padding: 6px 4px; text-transform: uppercase; letter-spacing: .05em; }
.cal-header-cell.cal-weekend { color: var(--warning); }
.cal-cell { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 6px; min-height: 90px; display: flex; flex-direction: column; gap: 3px; transition: border-color .15s; }
.cal-cell:hover { border-color: var(--primary); }
.cal-cell.cal-empty { background: transparent; border-color: transparent; }
.cal-cell.cal-today { border-color: var(--primary); background: rgba(99,102,241,.07); }
.cal-cell.cal-weekend { background: rgba(255,255,255,.02); }
.cal-day-num { font-size: .78rem; color: var(--muted); font-weight: 500; margin-bottom: 2px; }
.cal-day-num.today { background: var(--primary); color: #fff; border-radius: 50%; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.cal-event-block { font-size: .7rem; padding: 2px 6px; border-radius: 4px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: opacity .15s; font-weight: 500; }
.cal-event-block:hover { opacity: .75; }
.cal-event-start { border-radius: 4px 0 0 4px; }
.cal-event-end { border-radius: 0 4px 4px 0; }
/* Platforms */
.platform-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--border); }