Files
dogfather-universe/workspace/assets/css/aufgaben.css
T
DogFatherGit 232a2003dd Workspace: Aufgaben bearbeiten, Personenverwaltung im Browser
Aufgaben:
- Bearbeiten-Dialog (Titel, Beschreibung, Prioritaet, Frist, Zuordnung).
  Als natives <dialog>: Fokusfang, Esc zum Schliessen und Abdunklung
  ohne eigenen Code.
- Loeschen nur fuer Management, mit Rueckfrage und Protokolleintrag.
  Das Konzept will, dass Erledigtes stehen bleibt -- Loeschen ist der
  Ausnahmefall fuer Fehleintraege, nicht der normale Abschluss.

Personen (/workspace/personen.html, nur Management):
- Anlegen, Code erneuern, sperren/entsperren, Protokollansicht
- Der Code wird genau einmal in der Antwort zurueckgegeben, nie
  gespeichert; beim Schliessen auch aus dem Dokument entfernt
- Selbstschutz: niemand kann sich selbst sperren, und das letzte aktive
  Management laesst sich nicht sperren -- sonst kaeme niemand mehr hinein
- Code fuer sich selbst tauschen nur mit ausdruecklicher Bestaetigung,
  weil es die eigene Sitzung sofort beendet

Zwei Fehler, die beim Testen aufgefallen sind:

1. Rollenpruefung fehlte beim Ausliefern der Seiten. Ein Creator bekam
   personen.html mit HTTP 200 -- die Schnittstellen wiesen ihn zwar ab,
   das Geruest der Seite war aber sichtbar. GESCHUETZT ist jetzt eine
   Zuordnung Pfad -> erlaubte Rollen statt einer blossen Liste.

2. Das Protokoll nannte den falschen Verursacher. personAnlegen trug die
   NEU ANGELEGTE Person als person_id ein, der Eintrag las sich also so,
   als haette sie sich selbst angelegt. Akteur und Betroffener sind jetzt
   getrennt: Akteur in person_id, Betroffener im Text. Ueber die
   Kommandozeile angelegte Personen zeigen korrekt keinen Akteur.
2026-08-27 23:12:28 +02:00

163 lines
5.9 KiB
CSS

/* ===================================================================
Aufgabenbrett. Baut auf gate.css und start.css auf.
=================================================================== */
.inhalt--breit { max-width: 1240px; }
.zurueck { color: inherit; text-decoration: none; border-bottom: 1px solid transparent; }
.zurueck:hover { border-bottom-color: currentColor; }
.kopf-zeile {
display: flex; align-items: flex-end; justify-content: space-between;
gap: 20px; flex-wrap: wrap; margin-bottom: 24px;
}
.kopf-zeile .titel { margin: 0; font-size: clamp(1.4rem, 2.2vw, 1.85rem); }
.knopf--klein {
width: auto; margin: 0; padding: 10px 18px; font-size: .92rem;
}
.leise { color: var(--text-still); font-weight: 400; }
/* ---------- Formular -------------------------------------------------- */
.neu {
margin: 0 0 28px;
padding: 20px;
background: rgba(255, 255, 255, .03);
border: 1px solid var(--rand);
border-radius: var(--radius);
}
.neu__zeile { margin-bottom: 14px; }
.neu__raster {
display: grid; gap: 14px; margin-bottom: 8px;
grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}
.neu__knoepfe { display: flex; gap: 10px; align-items: center; margin-top: 12px; }
.feld-schild {
display: block; margin-bottom: 6px;
font-size: .76rem; font-weight: 600; letter-spacing: .06em;
text-transform: uppercase; color: var(--text-still);
}
.neu input, .neu textarea, .neu select {
width: 100%; padding: 10px 12px;
background: rgba(255, 255, 255, .045);
border: 1px solid var(--rand);
border-radius: var(--radius-klein);
color: var(--text); font: inherit;
transition: border-color var(--tempo), box-shadow var(--tempo);
}
.neu textarea { resize: vertical; min-height: 62px; }
.neu input:focus, .neu textarea:focus, .neu select:focus {
outline: none; border-color: rgba(63, 189, 245, .7);
box-shadow: 0 0 0 3px rgba(63, 189, 245, .16);
}
/* Der Kalender-Knopf im Datumsfeld ist sonst fast schwarz auf dunkel. */
.neu input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(.75); cursor: pointer; }
/* ---------- Brett ----------------------------------------------------- */
.brett {
display: grid; gap: 14px;
grid-template-columns: repeat(4, minmax(0, 1fr));
align-items: start;
}
.spalte {
background: rgba(255, 255, 255, .022);
border: 1px solid var(--rand);
border-radius: var(--radius);
padding: 14px 12px 16px;
min-height: 120px;
}
.spalte__kopf {
display: flex; align-items: center; gap: 8px;
margin: 0 2px 12px;
font-size: .78rem; font-weight: 700;
letter-spacing: .08em; text-transform: uppercase;
color: var(--text-leise);
}
.spalte__punkt { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }
.spalte__zahl {
margin-left: auto; padding: 1px 8px;
background: rgba(255, 255, 255, .06); border-radius: 999px;
font-size: .74rem; color: var(--text-still); letter-spacing: normal;
}
.spalte[data-status="offen"] .spalte__punkt { background: #6f89a8; }
.spalte[data-status="arbeit"] .spalte__punkt { background: var(--akzent); }
.spalte[data-status="review"] .spalte__punkt { background: #e0a33c; }
.spalte[data-status="erledigt"] .spalte__punkt { background: #4dab77; }
.karte {
padding: 12px 13px;
margin-bottom: 9px;
background: rgba(9, 13, 22, .78);
border: 1px solid var(--rand);
border-left: 3px solid transparent;
border-radius: var(--radius-klein);
}
.karte[data-prio="hoch"] { border-left-color: #d8656e; }
.karte[data-prio="mittel"] { border-left-color: #4b6c8a; }
.karte[data-prio="niedrig"] { border-left-color: #3c4a5a; }
.karte__titel { font-weight: 600; font-size: .93rem; line-height: 1.35; }
.karte__text { margin: 6px 0 0; font-size: .84rem; color: var(--text-leise); }
.karte__zeile {
display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
margin-top: 10px; font-size: .76rem; color: var(--text-still);
}
.karte__frist--faellig { color: var(--warn); font-weight: 600; }
.karte__schritte { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.schritt {
padding: 5px 10px;
background: rgba(255, 255, 255, .04);
border: 1px solid var(--rand);
border-radius: 8px;
color: var(--text-leise); font: inherit; font-size: .76rem; cursor: pointer;
transition: background var(--tempo), border-color var(--tempo), color var(--tempo);
}
.schritt:hover { background: rgba(255, 255, 255, .08); color: var(--text); border-color: var(--rand-hell); }
.schritt[disabled] { opacity: .4; cursor: default; }
.spalte__leer { margin: 4px 2px; font-size: .82rem; color: var(--text-still); }
@media (max-width: 1080px) { .brett { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .brett { grid-template-columns: 1fr; } }
/* ---------- Bearbeiten-Dialog ------------------------------------------ */
.dialog {
width: min(560px, calc(100vw - 32px));
padding: 0; border: 1px solid var(--rand-hell);
border-radius: var(--radius);
background: #0b1018;
color: var(--text);
box-shadow: var(--schatten);
}
.dialog::backdrop { background: rgba(2, 4, 8, .68); backdrop-filter: blur(3px); }
.neu--blank { margin: 0; border: 0; background: none; padding: 22px; }
.dialog__titel { margin: 0 0 18px; font-size: 1.12rem; font-weight: 700; }
.dialog__knoepfe { display: flex; gap: 10px; align-items: center; margin-top: 16px; flex-wrap: wrap; }
.dialog__knoepfe #b-loeschen { margin-left: auto; }
.abmelden--warnung { color: var(--warn); border-color: rgba(255, 154, 162, .35); }
.abmelden--warnung:hover { background: rgba(255, 154, 162, .1); border-color: rgba(255, 154, 162, .6); }
.karte__stift {
margin-left: auto; padding: 3px 8px;
background: none; border: 0; border-radius: 7px;
color: var(--text-still); font: inherit; font-size: .75rem; cursor: pointer;
}
.karte__stift:hover { background: rgba(255, 255, 255, .07); color: var(--text-leise); }
.karte__kopf { display: flex; align-items: flex-start; gap: 8px; }
.karte__kopf .karte__titel { flex: 1 1 auto; }