Files
it-connect/frontend/style.css
T
dbildhauerandClaude Opus 5.5 2e89c4ad59 Meilenstein 2: Verbindungs-API und Dashboard
- CRUD-API /api/connections mit Filter nach Sichtbarkeit und Typ
- Sichtbarkeit: privat nur für Besitzer (sonst 404), team für alle bearbeitbar;
  nur der Besitzer darf team auf privat setzen
- Strenge serverseitige Prüfung von Ziel, Port, Benutzer und URL
- Dashboard mit Kacheln nach Typ, Filter Alle/Privat/Team, Suche,
  Dialog zum Anlegen/Bearbeiten, Links itrdp:// und itssh://
- Tests für Validierung und Sichtbarkeitslogik, SETUP.md ergänzt

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

150 lines
4.2 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; }