Terminplan wie MS Project: Zeilennummern, Trennleiste, Monatslinien, Balkenbeschriftung (0.5.0)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AmyPfuNc4sCRfaF3oURXZz
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
--ein: #2f6b5a; --bg: #f2f4f8; --fl: #ffffff; --text: #18202c; --leise: #5f6b7a; --linie: #e0e5ec;
|
||||
--akzent: #1d5fa8; --akzent-hover: #174d89; --akzent-text: #ffffff; --akzent-hell: #e4eefa;
|
||||
--warn: #b42318; --warnung-bg: #fdecea; --warnung-text: #7a1c14; --warnung-linie: #f5c2bd;
|
||||
--g-sammel: #2e6fb0; --g-vorgang: #9cc2e6; --g-vorgang-rand: #6f9fcf; --g-kappe: #8a8f98; --g-nr: #f1f3f6; --g-wahl: #a9d5a0; --g-wahl-text: #1f4d1a;
|
||||
font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 15px;
|
||||
}
|
||||
/* dunkel nach Systemeinstellung, außer jemand wählt ausdrücklich hell (data-theme) */
|
||||
@@ -15,14 +16,16 @@
|
||||
--leiste: #0d1a2e; --leiste-aktiv: #1d3a62;
|
||||
--ein: #7fd0b2; --bg: #111822; --fl: #1a2331; --text: #e8edf4; --leise: #9aa7b8; --linie: #2b3747;
|
||||
--akzent: #5a9be0; --akzent-hover: #78b0ea; --akzent-text: #0d1a2e; --akzent-hell: #1d3352; --warn: #f97066;
|
||||
--warnung-bg: #3a1714; --warnung-text: #f9c9c3; --warnung-linie: #6b2620; color-scheme: dark;
|
||||
--warnung-bg: #3a1714; --warnung-text: #f9c9c3; --warnung-linie: #6b2620;
|
||||
--g-sammel: #5f9bd8; --g-vorgang: #3f6f9f; --g-vorgang-rand: #79a6d6; --g-kappe: #8792a2; --g-nr: #151d29; --g-wahl: #2f5a2a; --g-wahl-text: #cdeec6; color-scheme: dark;
|
||||
}
|
||||
}
|
||||
:root[data-theme="dark"] {
|
||||
--leiste: #0d1a2e; --leiste-aktiv: #1d3a62;
|
||||
--ein: #7fd0b2; --bg: #111822; --fl: #1a2331; --text: #e8edf4; --leise: #9aa7b8; --linie: #2b3747;
|
||||
--akzent: #5a9be0; --akzent-hover: #78b0ea; --akzent-text: #0d1a2e; --akzent-hell: #1d3352; --warn: #f97066;
|
||||
--warnung-bg: #3a1714; --warnung-text: #f9c9c3; --warnung-linie: #6b2620; color-scheme: dark;
|
||||
--warnung-bg: #3a1714; --warnung-text: #f9c9c3; --warnung-linie: #6b2620;
|
||||
--g-sammel: #5f9bd8; --g-vorgang: #3f6f9f; --g-vorgang-rand: #79a6d6; --g-kappe: #8792a2; --g-nr: #151d29; --g-wahl: #2f5a2a; --g-wahl-text: #cdeec6; color-scheme: dark;
|
||||
}
|
||||
* { box-sizing: border-box; }
|
||||
body { margin: 0; background: var(--bg); color: var(--text); display: flex; min-height: 100vh; }
|
||||
@@ -107,48 +110,66 @@ td.zahl { white-space: nowrap; }
|
||||
button.neben.an { background: var(--akzent-hell); border-color: var(--akzent); color: var(--akzent); font-weight: 600; }
|
||||
.schalter { display: inline-flex; align-items: center; gap: 6px; color: var(--leise); font-size: 14px; }
|
||||
.leiste .hinweis { font-size: 13px; margin-left: auto; }
|
||||
.gantt { --links: 680px; overflow: auto; max-height: calc(100vh - 150px); background: var(--fl); border: 1px solid var(--linie); border-radius: 10px; position: relative; }
|
||||
.g-rahmen { --links: 790px; position: relative; }
|
||||
.gantt { overflow: auto; max-height: calc(100vh - 150px); background: var(--fl); border: 1px solid var(--linie); border-radius: 10px; position: relative; }
|
||||
.g-inhalt { position: relative; }
|
||||
.g-kopf { position: sticky; top: 0; z-index: 4; display: flex; background: var(--fl); border-bottom: 1px solid var(--linie); }
|
||||
.g-links { position: sticky; left: 0; z-index: 2; width: var(--links); flex: none; display: grid; grid-template-columns: 44px 22px 1fr 64px 64px 30px 80px 84px 24px 24px; align-items: center; gap: 4px; padding: 0 6px 0 8px; height: 34px; background: var(--fl); border-right: 1px solid var(--linie); font-size: 13px; }
|
||||
.g-links.kopf { height: 63px; align-items: end; padding-bottom: 6px; font-size: 12px; color: var(--leise); font-weight: 600; z-index: 5; }
|
||||
.g-zeit .reihe { display: flex; height: 21px; font-size: 11px; color: var(--leise); }
|
||||
.g-zeit .reihe > div { border-left: 1px solid var(--linie); padding: 3px 4px; white-space: nowrap; overflow: hidden; flex: none; }
|
||||
.g-zeit .reihe.tage > div { padding: 3px 0; text-align: center; }
|
||||
.g-zeit .tage .frei, .g-zeit .tage .feiertag { color: var(--warn); }
|
||||
.g-zeit .tage .reserve { color: var(--holz); }
|
||||
.g-links { position: sticky; left: 0; z-index: 2; width: var(--links); flex: none; display: grid; grid-template-columns: 40px minmax(230px, 1fr) 70px 70px 96px 96px 150px; align-items: stretch; height: 42px; background: var(--fl); font-size: 13px; overflow: hidden; }
|
||||
.g-links > * { display: flex; align-items: center; min-width: 0; padding: 0 6px; border-right: 1px solid var(--linie); border-bottom: 1px solid var(--linie); white-space: nowrap; overflow: hidden; }
|
||||
.g-links .zahl { justify-content: flex-end; font-variant-numeric: tabular-nums; }
|
||||
.g-links > .nr { justify-content: center; background: var(--g-nr); color: var(--leise); font-variant-numeric: tabular-nums; cursor: grab; user-select: none; touch-action: none; }
|
||||
.g-links > .nr:hover { color: var(--akzent); }
|
||||
.g-zeile.gewaehlt .g-links > .nr { background: var(--g-wahl); color: var(--g-wahl-text); font-weight: 700; }
|
||||
.g-zeile.gewaehlt .g-links > .name { outline: 2px solid var(--g-wahl); outline-offset: -2px; }
|
||||
.g-zeile.gewaehlt + .g-balken, .g-zeile.gewaehlt { border-block: 1px solid var(--leise); }
|
||||
.g-links.kopf { margin: 0; gap: 0; height: 44px; font-size: 12.5px; color: var(--leise); font-weight: 600; z-index: 5; }
|
||||
.g-links.kopf > * { align-items: flex-end; padding-bottom: 6px; }
|
||||
.g-links.kopf > .name { background: var(--akzent-hell); color: var(--akzent); }
|
||||
.g-zeit .reihe { display: flex; height: 22px; font-size: 11.5px; color: var(--leise); }
|
||||
.g-zeit .reihe > div { border-left: 1px solid var(--linie); padding: 3px 4px; white-space: nowrap; overflow: clip; flex: none; }
|
||||
/* Monats- und Wochenbeschriftung bleibt sichtbar, auch wenn der Anfang hinter der Tabelle liegt */
|
||||
.g-zeit .reihe > div > span { position: sticky; left: calc(var(--links) + 4px); }
|
||||
.g-zeit .reihe.unten > div { padding: 3px 3px; }
|
||||
.g-zeit .reihe.s-tag > div { padding: 3px 0; text-align: center; }
|
||||
.g-zeit .s-tag .frei, .g-zeit .s-tag .feiertag { color: var(--warn); }
|
||||
.g-zeit .s-tag .reserve { color: var(--holz); }
|
||||
.g-koerper { position: relative; }
|
||||
.g-zeile { position: absolute; left: 0; right: 0; height: 34px; border-bottom: 1px solid var(--linie); }
|
||||
.g-zeile.p .g-links { font-weight: 600; background: var(--bg); }
|
||||
.g-zeile.p { background: var(--bg); }
|
||||
.g-zeile .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.g-zeile { position: absolute; left: 0; right: 0; height: 42px; }
|
||||
.g-zeile.p .g-links, .g-zeile.a .g-links { font-weight: 700; }
|
||||
.g-zeile .name { gap: 2px; }
|
||||
.g-zeile .name .text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1; }
|
||||
.g-zeile .name.ebene0 { padding-left: 8px; }
|
||||
.g-zeile .name.ebene1 { padding-left: 22px; }
|
||||
.g-zeile .name.ebene2 { padding-left: 50px; font-weight: 400; }
|
||||
.g-zeile .aktionen { display: flex; gap: 2px; opacity: 0; flex: none; }
|
||||
.g-zeile:hover .aktionen, .g-zeile .aktionen:focus-within { opacity: 1; }
|
||||
.g-zeile .name small { font-weight: 400; color: var(--leise); }
|
||||
.g-zeile.a .name { font-weight: 600; padding-left: 4px; cursor: pointer; }
|
||||
.g-zeile.v .name { padding-left: 18px; cursor: pointer; }
|
||||
.g-zeile .nr { color: var(--leise); font-variant-numeric: tabular-nums; }
|
||||
.g-zeile .dat, .g-zeile .at { font-variant-numeric: tabular-nums; color: var(--leise); }
|
||||
.g-zeile .vg { color: var(--leise); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
|
||||
.g-links .klapp, .g-links .plus { background: none; border: 0; color: var(--leise); cursor: pointer; font: inherit; padding: 0; width: 22px; height: 22px; border-radius: 5px; }
|
||||
.g-links .plus { font-size: 17px; color: var(--akzent); }
|
||||
.g-zeile .vg { font-size: 12.5px; }
|
||||
.g-links .klapp, .g-links .plus { background: none; border: 0; color: var(--text); cursor: pointer; font: inherit; font-size: 10px; padding: 0; width: 18px; height: 22px; border-radius: 5px; flex: none; }
|
||||
.g-links .plus { font-size: 17px; color: var(--akzent); width: 22px; }
|
||||
.g-links .klapp:hover, .g-links .plus:hover { background: var(--akzent-hell); }
|
||||
.g-links .griff { cursor: grab; color: var(--leise); user-select: none; text-align: center; touch-action: none; border-radius: 4px; line-height: 22px; }
|
||||
.g-links .griff:hover { background: var(--akzent-hell); color: var(--akzent); }
|
||||
.g-zeile.gezogen { opacity: 0.55; }
|
||||
.g-zeile.gezogen .g-links > * { background: var(--akzent-hell); color: var(--leise); }
|
||||
.g-einfuege { position: absolute; left: 0; right: 0; height: 3px; background: var(--akzent); z-index: 6; pointer-events: none; box-shadow: 0 0 0 1px var(--fl); }
|
||||
.g-balken { position: absolute; height: 34px; left: var(--links); right: 0; pointer-events: none; z-index: 1; }
|
||||
.balken { position: absolute; top: 9px; height: 16px; border-radius: 4px; color: #fff; font-size: 11px; line-height: 16px; padding-left: 5px; white-space: nowrap; overflow: hidden; pointer-events: auto; }
|
||||
.balken.projekt { top: 14px; height: 6px; padding: 0; pointer-events: none; }
|
||||
.balken.abschnitt { top: 12px; height: 10px; opacity: 0.55; padding: 0; pointer-events: none; }
|
||||
.balken.vorgang { cursor: grab; touch-action: none; box-shadow: 0 1px 2px rgb(0 0 0 / 0.2); }
|
||||
.g-balken { position: absolute; height: 42px; left: var(--links); right: 0; pointer-events: none; z-index: 1; }
|
||||
.balken { position: absolute; top: 21px; height: 14px; pointer-events: auto; }
|
||||
.balken.sammel { top: 22px; height: 11px; background: var(--g-sammel); border-inline: 3px solid var(--g-kappe); pointer-events: none; }
|
||||
.b-name, .b-von, .b-bis { position: absolute; font-size: 11.5px; font-weight: 600; white-space: nowrap; pointer-events: none; color: var(--text); line-height: 15px; }
|
||||
.b-name { top: 3px; transform: translateX(-50%); }
|
||||
.b-von { top: 20px; transform: translateX(-100%); }
|
||||
.b-bis { top: 20px; display: flex; gap: 6px; align-items: center; }
|
||||
.b-leute { display: inline-flex; gap: 3px; font-weight: 400; }
|
||||
.balken.vorgang { background: var(--g-vorgang); border: 1px solid var(--g-vorgang-rand); cursor: grab; touch-action: none; }
|
||||
.balken.zieht { cursor: grabbing; opacity: 0.8; outline: 2px solid var(--akzent); }
|
||||
.balken .griff-rechts { position: absolute; right: 0; top: 0; bottom: 0; width: 7px; cursor: ew-resize; background: rgb(255 255 255 / 0.35); }
|
||||
.balken.meilenstein { width: 14px; height: 14px; top: 10px; transform: rotate(45deg); border-radius: 2px; padding: 0; cursor: grab; touch-action: none; }
|
||||
.balken .griff-rechts { position: absolute; right: 0; top: 0; bottom: 0; width: 7px; cursor: ew-resize; }
|
||||
.balken .griff-rechts:hover { background: var(--g-vorgang-rand); }
|
||||
.balken.meilenstein { width: 12px; height: 12px; top: 22px; transform: rotate(45deg); background: var(--text); cursor: grab; touch-action: none; }
|
||||
.g-schatten { position: absolute; top: 0; bottom: 0; left: var(--links); }
|
||||
.g-schatten i { position: absolute; top: 0; bottom: 0; }
|
||||
.g-schatten .frei { background: rgb(120 130 150 / 0.10); }
|
||||
.g-schatten .feiertag { background: rgb(180 35 24 / 0.10); }
|
||||
.g-schatten .reserve { background: repeating-linear-gradient(135deg, rgb(162 110 58 / 0.10) 0 4px, transparent 4px 8px); }
|
||||
.g-schatten .heute { width: 2px; background: var(--warn); }
|
||||
.g-schatten .monat { width: 0; border-left: 1px dotted var(--leise); opacity: 0.8; }
|
||||
.g-pfeile { position: absolute; top: 0; left: var(--links); pointer-events: none; z-index: 1; overflow: visible; }
|
||||
.g-pfeile path { fill: none; stroke: var(--leise); stroke-width: 1.2; }
|
||||
.g-pfeile polygon { fill: var(--leise); }
|
||||
@@ -157,7 +178,6 @@ button.neben.an { background: var(--akzent-hell); border-color: var(--akzent); c
|
||||
.g-zeile:hover .leute .leer { opacity: 1; }
|
||||
.person { display: inline-block; font-size: 11px; line-height: 16px; padding: 0 5px; border-radius: 4px; background: var(--akzent-hell); color: var(--akzent); border: 1px solid transparent; }
|
||||
.person.vorgemerkt { background: transparent; border: 1px dashed var(--leise); color: var(--leise); font-style: italic; }
|
||||
.balken-leute { position: absolute; top: 9px; display: flex; gap: 3px; pointer-events: none; white-space: nowrap; }
|
||||
.balken.konflikt { outline: 2px solid var(--warn); outline-offset: 1px; }
|
||||
.warnung { background: var(--warnung-bg); color: var(--warnung-text); border: 1px solid var(--warnung-linie); border-radius: 10px; padding: 10px 14px; margin-bottom: 12px; font-size: 14px; }
|
||||
.warnung ul { margin: 4px 0 0; padding-left: 18px; }
|
||||
@@ -268,10 +288,7 @@ dl.werte dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums;
|
||||
}
|
||||
|
||||
/* Bearbeiten in der Tabelle (wie MS Project) */
|
||||
.gantt.schmal { --links: 360px; }
|
||||
.gantt.schmal .g-links { grid-template-columns: 44px 22px 1fr 24px 24px; }
|
||||
.gantt.schmal .g-links > :nth-child(4), .gantt.schmal .g-links > :nth-child(5), .gantt.schmal .g-links > :nth-child(6), .gantt.schmal .g-links > :nth-child(7), .gantt.schmal .g-links > :nth-child(8) { display: none; }
|
||||
.g-zeile .zelle { cursor: text; border-radius: 4px; padding: 2px 3px; margin: 0 -3px; min-height: 20px; line-height: 20px; }
|
||||
.g-zeile .zelle { cursor: text; min-height: 20px; line-height: 20px; }
|
||||
.g-zeile .zelle:hover { background: var(--akzent-hell); color: var(--text); text-decoration: none; }
|
||||
.g-zeile .zelle.bearbeitet { padding: 0; background: none; overflow: visible; }
|
||||
.g-eingabe { width: 100%; min-width: 0; height: 26px; padding: 2px 5px; font: inherit; font-size: 13px; border: 1px solid var(--akzent); border-radius: 4px; background: var(--fl); color: var(--text); box-sizing: border-box; }
|
||||
@@ -282,18 +299,17 @@ dl.werte dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums;
|
||||
.g-links .weg:hover { background: var(--warnung-bg, var(--akzent-hell)); color: var(--warn); }
|
||||
.g-links .weg.sicher { opacity: 1; width: auto; padding: 0 4px; background: var(--warn); color: #fff; font-weight: 600; font-size: 11px; }
|
||||
.g-meldung:empty { display: none; }
|
||||
@media (hover: none) { .g-links .weg { opacity: 1; } }
|
||||
@media (max-width: 800px) {
|
||||
.gantt, .gantt.schmal { --links: 240px; }
|
||||
.g-links, .gantt.schmal .g-links { grid-template-columns: 22px 1fr 24px 24px; }
|
||||
.g-links > :nth-child(1), .g-links > :nth-child(4), .g-links > :nth-child(5), .g-links > :nth-child(6), .g-links > :nth-child(7), .g-links > :nth-child(8) { display: none; }
|
||||
}
|
||||
@media (hover: none) { .g-links .weg, .g-zeile .aktionen { opacity: 1; } }
|
||||
/* Trennleiste zwischen Tabelle und Zeitplan (Henning, 20.10.2026) */
|
||||
.g-trenner { position: absolute; top: 1px; bottom: 1px; left: calc(var(--links) - 2px); width: 7px; cursor: col-resize; z-index: 8; touch-action: none; border-inline: 1px solid var(--linie); background: var(--g-nr); }
|
||||
.g-trenner:hover, .g-trenner.zieht { background: var(--akzent-hell); border-color: var(--akzent); }
|
||||
@media (max-width: 800px) { .g-links { grid-template-columns: 34px minmax(180px, 1fr) 70px 70px 96px 96px 130px; } }
|
||||
|
||||
/* Zoom an der Zeitskala und Abschläge als Meilensteine (Henning, 20.10.2026) */
|
||||
.g-zoom { display: inline-flex; align-items: center; gap: 4px; }
|
||||
.g-zoom button { min-width: 32px; padding-inline: 8px; }
|
||||
.g-zeit { cursor: ew-resize; touch-action: none; user-select: none; }
|
||||
.zahlung-ms { position: absolute; top: 7px; width: 20px; height: 20px; pointer-events: auto; cursor: pointer; z-index: 2;
|
||||
.zahlung-ms { position: absolute; top: 19px; width: 18px; height: 18px; pointer-events: auto; cursor: pointer; z-index: 2;
|
||||
clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); display: grid; place-items: center; font-size: 11px; font-weight: 700;
|
||||
background: color-mix(in srgb, var(--farbe) 30%, var(--fl)); color: var(--farbe); }
|
||||
.zahlung-ms.gestellt { background: color-mix(in srgb, var(--farbe) 55%, var(--fl)); color: #fff; }
|
||||
|
||||
Reference in New Issue
Block a user