Files
it-connect/frontend/style.css
T
dbildhauerandClaude Opus 5.5 64b3dfbb08 Meilenstein 4: Rate-Limit, Audit-Log und Backup
- Login-Rate-Limit (5 pro Benutzername, 20 pro IP in 15 Minuten), in SQLite gespeichert
- Audit-Log für Login, Fehlversuche, Logout und alle Änderungen an Verbindungen;
  fremde private Einträge bleiben verborgen; API /api/audit und Ansicht im Frontend
- scripts/backup.sh: konsistente Kopie per SQLite-Backup-API, Integritätsprüfung,
  gzip, Rechte 600, Aufräumen nach N Tagen
- Tests für Rate-Limit und Audit-Log, SETUP.md ergänzt

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 20:56:04 +01:00

161 lines
4.8 KiB
CSS

:root {
--bg: #f4f5f7;
--fg: #1d2330;
--karte: #ffffff;
--rand: #d6d9e0;
--akzent: #2f6fde;
--fehler: #c62828;
}
@media (prefers-color-scheme: dark) {
:root {
--bg: #15181e;
--fg: #e4e7ec;
--karte: #1f232b;
--rand: #343a46;
--akzent: #5b8ff0;
--fehler: #ef6b6b;
}
}
* { box-sizing: border-box; }
body {
margin: 0;
font-family: system-ui, "Segoe UI", sans-serif;
background: var(--bg);
color: var(--fg);
}
header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 0.75rem 1.25rem;
background: var(--karte);
border-bottom: 1px solid var(--rand);
}
header h1 { font-size: 1.25rem; margin: 0; }
#benutzer-bereich { display: flex; gap: 0.75rem; align-items: center; }
main { padding: 1.5rem 1.25rem; max-width: 1200px; margin: 0 auto; }
.karte {
background: var(--karte);
border: 1px solid var(--rand);
border-radius: 8px;
padding: 1.5rem;
}
#login-form { max-width: 360px; margin: 3rem auto; display: grid; gap: 1rem; }
#login-form h2 { margin: 0; }
label { display: grid; gap: 0.3rem; font-size: 0.9rem; }
input {
padding: 0.5rem 0.6rem;
border: 1px solid var(--rand);
border-radius: 6px;
background: var(--bg);
color: var(--fg);
font: inherit;
}
button {
padding: 0.5rem 1rem;
border: 0;
border-radius: 6px;
background: var(--akzent);
color: #fff;
font: inherit;
cursor: pointer;
}
.fehler { color: var(--fehler); margin: 0; min-height: 1.2em; }
[hidden] { display: none !important; }
/* --- Dashboard --- */
.werkzeugleiste {
display: flex;
flex-wrap: wrap;
gap: 0.75rem;
align-items: center;
margin-bottom: 1rem;
}
.werkzeugleiste #suche { flex: 1; min-width: 180px; }
.filter { display: flex; border: 1px solid var(--rand); border-radius: 6px; overflow: hidden; }
.filter button { border-radius: 0; background: var(--karte); color: var(--fg); }
.filter button.aktiv { background: var(--akzent); color: #fff; }
.gruppe h2 { font-size: 1.05rem; margin: 1.5rem 0 0.75rem; }
.raster {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
gap: 0.75rem;
}
.kachel {
background: var(--karte);
border: 1px solid var(--rand);
border-left: 4px solid var(--akzent);
border-radius: 8px;
padding: 0.9rem 1rem;
display: flex;
flex-direction: column;
gap: 0.35rem;
min-width: 0;
}
.kachel.typ-rdp { border-left-color: #2f6fde; }
.kachel.typ-ssh { border-left-color: #2e9d5b; }
.kachel.typ-web { border-left-color: #c77d1a; }
.kachel-kopf { display: flex; justify-content: space-between; gap: 0.5rem; align-items: start; }
.kachel h3 { font-size: 1rem; margin: 0; overflow-wrap: anywhere; }
.kachel p { margin: 0; overflow-wrap: anywhere; }
.kachel .ziel { font-family: ui-monospace, Consolas, monospace; font-size: 0.85rem; }
.kachel .notiz { font-size: 0.85rem; opacity: 0.8; white-space: pre-line; }
.kachel .besitzer { font-size: 0.8rem; opacity: 0.65; }
.kachel-knoepfe { display: flex; gap: 0.4rem; margin-top: auto; padding-top: 0.5rem; flex-wrap: wrap; }
.kachel-knoepfe > * { padding: 0.35rem 0.7rem; font-size: 0.85rem; }
.badge {
font-size: 0.7rem;
padding: 0.1rem 0.45rem;
border-radius: 999px;
border: 1px solid var(--rand);
white-space: nowrap;
}
.badge.team { background: var(--akzent); color: #fff; border-color: transparent; }
.knopf {
display: inline-block;
border-radius: 6px;
background: var(--akzent);
color: #fff;
text-decoration: none;
}
button.sekundaer { background: transparent; color: var(--fg); border: 1px solid var(--rand); }
button.gefahr { background: transparent; color: var(--fehler); border: 1px solid var(--rand); }
.leer { opacity: 0.7; }
/* --- Dialog --- */
dialog {
border: 1px solid var(--rand);
border-radius: 10px;
background: var(--karte);
color: var(--fg);
padding: 1.5rem;
width: min(480px, calc(100vw - 2rem));
}
dialog::backdrop { background: rgb(0 0 0 / 0.45); }
#eintrag-form { display: grid; gap: 0.8rem; }
#eintrag-form h2 { margin: 0; font-size: 1.15rem; }
.zeile { display: grid; grid-template-columns: 1fr 2fr; gap: 0.75rem; }
select, textarea {
padding: 0.5rem 0.6rem;
border: 1px solid var(--rand);
border-radius: 6px;
background: var(--bg);
color: var(--fg);
font: inherit;
}
.dialog-knoepfe { display: flex; justify-content: flex-end; gap: 0.5rem; }
/* --- Protokoll --- */
#protokoll h2 { margin-top: 0; }
.hinweis { opacity: 0.7; font-size: 0.9rem; }
.tabelle-rahmen { overflow-x: auto; background: var(--karte); border: 1px solid var(--rand); border-radius: 8px; }
table { border-collapse: collapse; width: 100%; font-size: 0.875rem; }
th, td { text-align: left; padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--rand); vertical-align: top; }
th { font-weight: 600; white-space: nowrap; }
td:first-child, td:last-child { white-space: nowrap; }
td { overflow-wrap: anywhere; }
tr.warnung td { color: var(--fehler); }