Files
Kontrollverlust/web/css/app.css
T
irrlicht d1a269db2f Frontend: Account-Bereich (GET /user/info, POST /user/delete)
- Account-Section nur sichtbar wenn eingeloggt; zeigt Nutzername und
  Mitglied-seit-Datum aus /user/info
- Konto loeschen in aufklappbarer Danger-Zone, Passwortbestaetigung
  plus zusaetzliche confirm()-Rueckfrage (unwiderruflich)
- nach Loeschung zurueck zur Login-Ansicht via refreshHeader

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-01 11:59:53 +02:00

104 lines
2.3 KiB
CSS

:root {
--bg: #15171a;
--card: #1e2126;
--fg: #e8e8e8;
--muted: #9aa0a6;
--accent: #4a9eff;
}
* { box-sizing: border-box; }
body {
margin: 0;
font-family: system-ui, sans-serif;
background: var(--bg);
color: var(--fg);
}
header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 1rem 1.5rem;
border-bottom: 1px solid #2a2e35;
position: sticky;
top: 0;
background: var(--bg);
}
header h1 { margin: 0; font-size: 1.4rem; }
main {
max-width: 600px;
margin: 0 auto;
padding: 1rem;
}
section { margin-bottom: 1.5rem; }
input, textarea, button {
font: inherit;
border-radius: 6px;
border: 1px solid #2a2e35;
background: var(--card);
color: var(--fg);
padding: 0.6rem 0.8rem;
}
input, textarea { width: 100%; margin-bottom: 0.6rem; }
textarea { min-height: 80px; resize: vertical; }
button {
cursor: pointer;
background: var(--accent);
border-color: var(--accent);
color: #fff;
width: auto;
}
button:hover { opacity: 0.9; }
.entry {
background: var(--card);
border: 1px solid #2a2e35;
border-radius: 8px;
padding: 1rem;
margin-bottom: 1rem;
}
.entry .meta { color: var(--muted); font-size: 0.85rem; margin-bottom: 0.5rem; }
.entry .content { white-space: pre-wrap; word-wrap: break-word; }
.entry img { max-width: 100%; border-radius: 6px; margin-top: 0.6rem; }
.entry a { color: var(--accent); }
.msg { color: #ff6b6b; font-size: 0.9rem; min-height: 1.2em; }
.switch { color: var(--muted); font-size: 0.9rem; margin: 0.6rem 0 0; }
.switch a { color: var(--accent); }
#account-info { color: var(--muted); font-size: 0.9rem; }
.danger summary { cursor: pointer; color: #ff6b6b; font-size: 0.9rem; }
.danger form { margin-top: 0.6rem; }
.danger p { color: var(--muted); font-size: 0.85rem; }
#delete-form button { background: #c0392b; border-color: #c0392b; }
.end { text-align: center; color: var(--muted); padding: 2rem 0; }
.interactions {
display: flex;
align-items: center;
gap: 0.75rem;
margin-top: 0.8rem;
}
.interactions .vote {
background: transparent;
border: 1px solid #2a2e35;
color: var(--fg);
padding: 0.3rem 0.7rem;
}
.interactions .vote:hover { border-color: var(--accent); }
.interactions .vote.selected {
background: var(--accent);
border-color: var(--accent);
color: #fff;
}
.interactions .counts { color: var(--muted); font-size: 0.9rem; }