CSS nach Bereichen aufgeteilt, doppelte Regeln zusammengeführt
- styles.css (1757 Zeilen) und themes.css → frontend/src/styles/: base, layout, components, start, projekte (inkl. Artikel), monitoring, haushalt, reisen, kanban, konto, grundschicht, responsive und designs/ (gemeinsam, blackwall, fabrik); index.css legt die Reihenfolge fest - Die spätere "Moderne Grundschicht" ist in die Regeln der Bereiche eingearbeitet (z. B. .segmented, .household-item, .tile, .board-column stehen jeweils nur noch an einer Stelle); übrig bleiben nur bereichsübergreifende Regeln (einheitliche Eingabefelder, Hover, Bewegung) - .link-picker (Auswahllisten in Dialogen) zu den allgemeinen Bausteinen - Optisch unverändert: 54 Seiten-Screenshots (9 Seiten × 3 Designs × Desktop/Handy) und 18 Dialog-/Zustandsbilder pixelgleich zum Stand davor Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
fa58708e2d
commit
419d200bf9
20 files changed
+2096
-2137
No files matched your search
@@ -0,0 +1,198 @@
|
||||
/* ---------- Reisen: Weltkarte ---------- */
|
||||
.city-search { position: relative; max-width: 720px; margin-bottom: 16px; }
|
||||
.city-search input {
|
||||
font: inherit;
|
||||
font-size: 1.05rem;
|
||||
color: var(--bright);
|
||||
background: var(--input-bg);
|
||||
border: 1px solid var(--accent);
|
||||
padding: 12px 16px 12px 38px;
|
||||
width: 100%;
|
||||
}
|
||||
.city-search input:focus { outline: none; box-shadow: var(--glow); }
|
||||
.city-search .combo-list li small { margin-left: 6px; }
|
||||
.city-search .combo-list li.added { opacity: 0.55; cursor: default; }
|
||||
.combo-info { color: var(--muted); cursor: default !important; }
|
||||
.combo-info::before { content: '' !important; }
|
||||
.travel-error { margin-bottom: 12px; }
|
||||
|
||||
.travel-map { position: relative; padding: 0; overflow: hidden; height: clamp(340px, 68vh, 760px); border-radius: var(--radius-l); }
|
||||
.travel-loading { padding: 20px; }
|
||||
.worldmap, .worldmap svg { width: 100%; height: 100%; display: block; }
|
||||
.worldmap svg { cursor: grab; touch-action: none; --inv: 1; }
|
||||
.worldmap svg:active { cursor: grabbing; }
|
||||
.map-sphere { fill: var(--map-ocean); }
|
||||
.map-graticule { fill: none; stroke: rgb(var(--accent-rgb) / 0.09); vector-effect: non-scaling-stroke; }
|
||||
.map-country {
|
||||
fill: var(--map-land);
|
||||
stroke: rgb(var(--accent-rgb) / 0.45);
|
||||
stroke-width: 0.6;
|
||||
vector-effect: non-scaling-stroke;
|
||||
cursor: pointer;
|
||||
transition: fill 0.15s;
|
||||
}
|
||||
.map-country:hover { fill: var(--map-land-hover); }
|
||||
.map-country.visited { fill: rgb(var(--accent-rgb) / 0.55); stroke: rgb(var(--accent-rgb) / 0.9); }
|
||||
.map-country.visited:hover { fill: rgb(var(--accent-rgb) / 0.7); }
|
||||
.map-country.selected { stroke: var(--bright); stroke-width: 1.6; fill: rgb(var(--accent-rgb) / 0.35); }
|
||||
.map-country.visited.selected { fill: rgb(var(--accent-rgb) / 0.8); }
|
||||
|
||||
/* Stadt-Punkte: Größe bleibt beim Zoomen gleich (--inv = 1 / Zoomfaktor) */
|
||||
.map-city { transform: scale(var(--inv)); cursor: pointer; }
|
||||
.map-city-hit { fill: transparent; }
|
||||
.map-city-dot { fill: var(--bright); stroke: var(--accent); stroke-width: 2; filter: drop-shadow(0 0 3px rgb(var(--accent-rgb) / 0.9)); }
|
||||
.map-city:hover .map-city-dot { fill: #fff; }
|
||||
.map-city-ring { fill: none; stroke: var(--bright); stroke-width: 1.5; animation: city-pulse 1.6s ease-out infinite; transform-origin: 0 0; }
|
||||
@keyframes city-pulse { from { opacity: 1; transform: scale(0.6); } to { opacity: 0; transform: scale(1.8); } }
|
||||
.calm .map-city-ring { animation: none; }
|
||||
@media (prefers-reduced-motion: reduce) { .map-city-ring { animation: none; } }
|
||||
|
||||
.map-controls { position: absolute; top: 12px; right: 12px; display: flex; flex-direction: column; border: 1px solid var(--accent); background: var(--overlay); border-color: var(--line-strong); border-radius: var(--radius-m); overflow: hidden; backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }
|
||||
.map-controls button {
|
||||
font: inherit;
|
||||
font-size: 1.15rem;
|
||||
width: 38px;
|
||||
height: 38px;
|
||||
border: 0;
|
||||
background: transparent;
|
||||
color: var(--accent);
|
||||
cursor: pointer;
|
||||
}
|
||||
.map-controls button + button { border-top: 1px solid var(--border); }
|
||||
.map-controls button:hover { background: var(--accent); color: var(--accent-ink); }
|
||||
|
||||
/* Info-Kasten: Desktop unten links über der Karte, Handy unter der Karte */
|
||||
.info-card {
|
||||
position: absolute;
|
||||
left: 14px;
|
||||
bottom: 14px;
|
||||
width: min(380px, calc(100% - 28px));
|
||||
max-height: calc(100% - 28px);
|
||||
overflow-y: auto;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
padding: 16px 18px;
|
||||
background: var(--panel);
|
||||
border: 1px solid var(--accent);
|
||||
border-color: var(--line-strong);
|
||||
border-radius: var(--radius-m);
|
||||
box-shadow: var(--shadow-2);
|
||||
backdrop-filter: var(--blur);
|
||||
-webkit-backdrop-filter: var(--blur);
|
||||
}
|
||||
.info-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
|
||||
.info-head h2 { margin: 0; font-size: calc(var(--h2-size) * 1.15); }
|
||||
.info-sub { margin: -6px 0 0; color: var(--muted); font-size: 0.82rem; }
|
||||
.info-facts { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; }
|
||||
.info-facts dt { color: var(--muted); text-transform: uppercase; font-size: var(--label-size); letter-spacing: var(--label-tracking); }
|
||||
.info-facts dd { margin: 1px 0 0; color: var(--bright); font-size: 0.88rem; overflow-wrap: anywhere; }
|
||||
.info-extract {
|
||||
margin: 0;
|
||||
color: var(--read);
|
||||
font-size: 0.85rem;
|
||||
line-height: 1.55;
|
||||
text-shadow: none;
|
||||
display: -webkit-box;
|
||||
-webkit-line-clamp: 5;
|
||||
-webkit-box-orient: vertical;
|
||||
overflow: hidden;
|
||||
}
|
||||
.info-more { font-size: 0.8rem; align-self: flex-start; }
|
||||
.info-visit { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding-top: 10px; border-top: 1px dashed var(--border); border-top-style: solid; }
|
||||
.info-cities { display: flex; flex-wrap: wrap; gap: 6px; }
|
||||
.info-card .chip { font-size: 0.78rem; }
|
||||
.info-others { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
|
||||
.info-others .hint { margin: 0; font-size: 0.78rem; }
|
||||
|
||||
/* Städte anderer Konten */
|
||||
.map-city.other .map-city-dot { fill: var(--dot); stroke: var(--bg); stroke-width: 1.5; filter: drop-shadow(0 0 3px var(--dot)); }
|
||||
.map-city.other:hover .map-city-dot { fill: var(--dot); stroke: var(--bright); }
|
||||
.map-city.other .map-city-ring { stroke: var(--dot); }
|
||||
.travel-others { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: -4px 0 14px; }
|
||||
.travel-legend { display: inline-flex; align-items: center; gap: 6px; font-size: 0.82rem; color: var(--muted); margin-left: 6px; }
|
||||
.legend-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--dot); box-shadow: 0 0 4px var(--dot); flex: none; }
|
||||
.legend-dot.own { background: var(--bright); box-shadow: 0 0 0 2px var(--accent); }
|
||||
.travel-person { display: inline-flex; align-items: center; gap: 6px; }
|
||||
.travel-person:not(.active) { opacity: 0.55; }
|
||||
.travel-person:not(.active) .legend-dot { background: transparent; box-shadow: inset 0 0 0 2px var(--dot); }
|
||||
.travel-person small { color: var(--muted); }
|
||||
.badge.travel-owner { color: var(--dot); }
|
||||
|
||||
/* Besuchte Orte: Kontinente nebeneinander, Länder ausklappbar */
|
||||
.visited-list { display: grid; gap: 28px 32px; margin-top: 28px; align-items: start; }
|
||||
@media (min-width: 900px) { .visited-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
|
||||
@media (min-width: 1400px) { .visited-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
|
||||
.travel-empty { margin-top: 24px; }
|
||||
.visited-continent .section-title { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; white-space: normal; }
|
||||
.continent-toggle {
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
gap: 10px;
|
||||
flex-wrap: wrap;
|
||||
padding: 2px 0;
|
||||
border: 0;
|
||||
background: none;
|
||||
color: inherit;
|
||||
font: inherit;
|
||||
letter-spacing: inherit;
|
||||
text-transform: inherit;
|
||||
text-align: left;
|
||||
cursor: pointer;
|
||||
}
|
||||
.continent-toggle:hover { color: var(--accent); }
|
||||
.continent-arrow { display: inline-block; color: var(--accent); transform: rotate(90deg); transition: transform var(--dur) var(--ease-out); }
|
||||
.continent-toggle[aria-expanded='false'] .continent-arrow { transform: none; }
|
||||
.visited-continent.closed .section-title { margin-bottom: 0; }
|
||||
.visited-count { font-family: var(--font); font-size: 0.75rem; font-weight: 400; letter-spacing: 0.02em; text-transform: none; color: var(--muted); text-shadow: none; }
|
||||
.visited-countries { list-style: none; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: var(--radius-m); background: var(--surface); overflow: hidden; }
|
||||
.visited-country + .visited-country { border-top: 1px solid var(--border); }
|
||||
.visited-row { display: flex; align-items: center; gap: 4px; padding: 2px 12px 2px 4px; }
|
||||
.visited-country.active .visited-row { background: var(--accent-soft); box-shadow: inset 2px 0 0 var(--accent); }
|
||||
.visited-toggle {
|
||||
flex: none;
|
||||
width: 34px;
|
||||
height: 34px;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
border: 0;
|
||||
border-radius: var(--radius-s);
|
||||
background: transparent;
|
||||
color: var(--accent);
|
||||
font: inherit;
|
||||
cursor: pointer;
|
||||
}
|
||||
.visited-toggle span { transition: transform var(--dur) var(--ease-out); }
|
||||
.visited-toggle[aria-expanded='true'] span { transform: rotate(90deg); }
|
||||
.visited-toggle:hover:not(:disabled) { background: var(--accent-soft); }
|
||||
.visited-toggle:disabled { color: var(--muted); cursor: default; }
|
||||
.visited-name {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
padding: 8px 6px;
|
||||
border: 0;
|
||||
background: transparent;
|
||||
color: var(--bright);
|
||||
font: inherit;
|
||||
font-weight: 600;
|
||||
text-align: left;
|
||||
cursor: pointer;
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
.visited-name:hover { color: var(--accent); }
|
||||
.visited-flag { font-size: 1.1em; }
|
||||
.visited-meta { flex: none; font-size: 0.75rem; color: var(--muted); }
|
||||
.visited-country .visited-cities { padding: 2px 14px 14px 46px; }
|
||||
.chip-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
|
||||
.chip.active { border-style: solid; border-color: var(--accent); color: var(--bright); background: var(--accent-soft); }
|
||||
.travel-credits { margin-top: 28px; font-size: 0.72rem; }
|
||||
|
||||
@media (max-width: 759px) {
|
||||
.travel-map { height: auto; overflow: visible; }
|
||||
.worldmap { height: clamp(260px, 52vh, 420px); }
|
||||
.info-card { position: relative; left: auto; bottom: auto; width: auto; max-height: none; border-width: 1px 0 0; box-shadow: none; }
|
||||
.info-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
||||
}
|
||||
Reference in new issue
Block a user