Einstellungen: Vollbild-Seite, Kontrast, Stundenhöhe, KW-Anzeige
- Einstellungen von Modal-Popup auf Vollbild-Seite mit Seitennavigation umgestellt - Schriftkontrast (4 Stufen) und Linienkontrast (4 Stufen) pro Benutzer gespeichert - Stundenhöhe (40/60/80/100px) in Wochen-/Tagesansicht per Einstellung steuerbar - Kalenderwoche in Monats- und Wochenansicht grösser dargestellt - CSS-Variable --hour-h für dynamische Zeitraster-Höhe in week.js und app.css - Backend: neue Felder text_contrast, line_contrast, hour_height in UserSettings
This commit is contained in:
@@ -440,12 +440,12 @@ a { color: var(--primary); text-decoration: none; }
|
||||
/* ── Month View ─────────────────────────────────────────── */
|
||||
.month-view { display: flex; flex-direction: column; height: 100%; }
|
||||
.month-header {
|
||||
display: grid; grid-template-columns: 32px repeat(7, 1fr);
|
||||
display: grid; grid-template-columns: 38px repeat(7, 1fr);
|
||||
border-bottom: 1px solid var(--border); flex-shrink: 0;
|
||||
}
|
||||
.month-kw-header {
|
||||
padding: 8px 0; text-align: center;
|
||||
font-size: 10px; font-weight: 600; text-transform: uppercase;
|
||||
font-size: 13px; font-weight: 700; text-transform: uppercase;
|
||||
letter-spacing: .3px; color: var(--text-3);
|
||||
border-right: 1px solid var(--border-light);
|
||||
}
|
||||
@@ -455,7 +455,7 @@ a { color: var(--primary); text-decoration: none; }
|
||||
letter-spacing: .5px; color: var(--text-2);
|
||||
}
|
||||
.month-grid {
|
||||
display: grid; grid-template-columns: 32px repeat(7, 1fr);
|
||||
display: grid; grid-template-columns: 38px repeat(7, 1fr);
|
||||
grid-template-rows: repeat(6, 1fr);
|
||||
flex: 1; overflow: hidden;
|
||||
}
|
||||
@@ -464,7 +464,7 @@ a { color: var(--primary); text-decoration: none; }
|
||||
border-bottom: 1px solid var(--border);
|
||||
display: flex; align-items: flex-start; justify-content: center;
|
||||
padding-top: 6px;
|
||||
font-size: 10px; color: var(--text-3); font-weight: 500;
|
||||
font-size: 13px; color: var(--text-3); font-weight: 700;
|
||||
cursor: default; user-select: none;
|
||||
min-height: 0;
|
||||
}
|
||||
@@ -516,7 +516,7 @@ a { color: var(--primary); text-decoration: none; }
|
||||
}
|
||||
/* KW badge in week view header gutter */
|
||||
.week-kw-badge {
|
||||
font-size: 10px; font-weight: 600; color: var(--text-3);
|
||||
font-size: 14px; font-weight: 700; color: var(--text-3);
|
||||
display: flex; align-items: flex-end; justify-content: center;
|
||||
padding-bottom: 6px;
|
||||
text-transform: uppercase; letter-spacing: .3px;
|
||||
@@ -563,7 +563,7 @@ a { color: var(--primary); text-decoration: none; }
|
||||
.week-body { display: flex; flex: 1; overflow-y: auto; position: relative; }
|
||||
.week-time-col { width: 56px; flex-shrink: 0; position: relative; }
|
||||
.time-label {
|
||||
height: 60px; display: flex; align-items: flex-start; justify-content: flex-end;
|
||||
height: var(--hour-h, 60px); display: flex; align-items: flex-start; justify-content: flex-end;
|
||||
padding-right: 8px; padding-top: 6px;
|
||||
font-size: 10px; color: var(--text-3);
|
||||
}
|
||||
@@ -571,18 +571,18 @@ a { color: var(--primary); text-decoration: none; }
|
||||
.week-day-col {
|
||||
flex: 1; border-left: 1px solid var(--border);
|
||||
position: relative;
|
||||
min-height: calc(60px * 24);
|
||||
min-height: calc(var(--hour-h, 60px) * 24);
|
||||
}
|
||||
.hour-line {
|
||||
position: absolute; left: 0; right: 0;
|
||||
border-top: 1px solid var(--border-light);
|
||||
height: 60px;
|
||||
height: var(--hour-h, 60px);
|
||||
}
|
||||
.hour-line:first-child { border-top: none; }
|
||||
.half-line {
|
||||
position: absolute; left: 0; right: 0;
|
||||
border-top: 1px dashed var(--border-light);
|
||||
top: 30px;
|
||||
top: calc(var(--hour-h, 60px) / 2);
|
||||
}
|
||||
|
||||
/* Current time indicator */
|
||||
@@ -699,7 +699,78 @@ a { color: var(--primary); text-decoration: none; }
|
||||
.popup-time, .popup-location, .popup-calendar { font-size: 13px; color: var(--text-2); margin-bottom: 6px; }
|
||||
.popup-description { font-size: 13px; color: var(--text-1); margin-bottom: 6px; white-space: pre-wrap; }
|
||||
|
||||
/* ── Settings ───────────────────────────────────────────── */
|
||||
/* ── Settings Page ──────────────────────────────────────── */
|
||||
#modal-settings.modal-overlay {
|
||||
align-items: stretch; justify-content: stretch; padding: 0; background: var(--bg-app);
|
||||
}
|
||||
.settings-page-card {
|
||||
width: 100%; height: 100%;
|
||||
display: flex; flex-direction: column;
|
||||
background: var(--bg-app); overflow: hidden;
|
||||
}
|
||||
.settings-page-header {
|
||||
display: flex; align-items: center; gap: 8px;
|
||||
padding: 14px 20px; border-bottom: 1px solid var(--border);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.settings-page-header h3 { font-size: 16px; font-weight: 600; color: var(--text-1); margin: 0; }
|
||||
.settings-page-body {
|
||||
display: flex; flex: 1; overflow: hidden;
|
||||
}
|
||||
.settings-nav {
|
||||
width: 200px; flex-shrink: 0;
|
||||
border-right: 1px solid var(--border);
|
||||
padding: 12px 8px;
|
||||
display: flex; flex-direction: column; gap: 2px;
|
||||
}
|
||||
.settings-nav-btn {
|
||||
display: block; width: 100%; text-align: left;
|
||||
padding: 9px 14px; border-radius: var(--radius-sm);
|
||||
font-size: 14px; color: var(--text-2);
|
||||
background: none; border: none; cursor: pointer;
|
||||
transition: background .15s, color .15s;
|
||||
}
|
||||
.settings-nav-btn:hover { background: var(--bg-hover); color: var(--text-1); }
|
||||
.settings-nav-btn.active { background: var(--primary-dim); color: var(--primary); font-weight: 600; }
|
||||
.settings-panels {
|
||||
flex: 1; overflow-y: auto; padding: 24px 28px;
|
||||
}
|
||||
.settings-panel { display: none; }
|
||||
.settings-panel.active { display: block; }
|
||||
|
||||
/* Panel typography */
|
||||
.panel-title {
|
||||
font-size: 14px; font-weight: 600; color: var(--text-1); margin: 0 0 4px;
|
||||
}
|
||||
.panel-desc {
|
||||
font-size: 12px; color: var(--text-3); margin: 0 0 12px;
|
||||
}
|
||||
|
||||
/* Contrast / option selectors */
|
||||
.contrast-selector {
|
||||
display: flex; gap: 8px; flex-wrap: wrap;
|
||||
}
|
||||
.contrast-btn {
|
||||
display: flex; flex-direction: column; align-items: center; gap: 6px;
|
||||
padding: 10px 16px; border-radius: var(--radius);
|
||||
border: 1px solid var(--border); background: var(--bg-surface);
|
||||
cursor: pointer; transition: border-color .15s, background .15s;
|
||||
min-width: 70px;
|
||||
}
|
||||
.contrast-btn:hover { border-color: var(--primary); }
|
||||
.contrast-btn.active { border-color: var(--primary); background: var(--primary-dim); }
|
||||
.contrast-btn span { font-size: 18px; font-weight: 700; line-height: 1; }
|
||||
.contrast-lbl { font-size: 11px; color: var(--text-2); white-space: nowrap; }
|
||||
.line-preview {
|
||||
display: block; width: 36px; height: 0;
|
||||
border-top: 2px solid; border-radius: 1px;
|
||||
margin: 6px 0;
|
||||
}
|
||||
.hour-preview {
|
||||
font-size: 14px; line-height: 1; color: var(--text-2);
|
||||
}
|
||||
|
||||
/* ── Settings (legacy) ──────────────────────────────────── */
|
||||
.settings-section { margin-bottom: 28px; }
|
||||
.settings-section h4 { font-size: 14px; font-weight: 600; color: var(--text-1); margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
|
||||
.badge-admin {
|
||||
|
||||
Reference in New Issue
Block a user