/* Designsprache aus der alten Python-Version (verwaiste Linie bb6b966): EB Garamond als Fließtext, Cheltenham Classic für die Überschrift, Concrete-Textur als Hintergrund, weiße zentrierte Inhaltsspalte. */ /* font-display: swap -> Text wird sofort mit System-Serife gezeichnet und wechselt zur Webschrift, sobald geladen (kein FOIT). Der Browser lädt nur das erste passende src-Format, daher .ttf als truetype korrekt deklarieren. */ @font-face { font-family: "EB Garamond"; src: url("/static/assets/EBGaramond-0.016/ttf/EBGaramond12-Regular.ttf") format("truetype"), url("/static/assets/EBGaramond-0.016/otf/EBGaramond12-Regular.otf") format("opentype"); font-weight: normal; font-style: normal; font-display: swap; } @font-face { font-family: "EB Garamond"; src: url("/static/assets/EBGaramond-0.016/ttf/EBGaramond12-Italic.ttf") format("truetype"), url("/static/assets/EBGaramond-0.016/otf/EBGaramond12-Italic.otf") format("opentype"); font-weight: normal; font-style: italic; font-display: swap; } @font-face { font-family: "Cheltenham Classic"; src: url("/static/assets/cheltenham/CheltenhamClassic.ttf") format("truetype"), url("/static/assets/cheltenham/CheltenhamClassic.otf") format("opentype"); font-weight: normal; font-style: normal; font-display: swap; } html { --avatar-sm: 50px; /* Größe des Byline-Avatars; halbiert = Position des Thread-Strichs */ --line-w: 3px; /* Dicke des Thread-Strichs */ background-image: url("/static/assets/concrete/Concrete012_1024p_Color.jpg"); font-family: "EB Garamond", serif; font-optical-sizing: auto; } body { margin: 0; } /* --- Kopf --- */ header { background-color: white; margin: 0; text-align: center; padding: 0.5rem 0; } /* Klick auf die Überschrift führt zurück zum Feed. */ #topbar > a { text-decoration: none; } h1 { font-family: "Cheltenham Classic", serif; background-color: white; display: inline-block; margin: 0.2rem auto; } h2 { font-family: "Cheltenham Classic", serif; background-color: white; display: inline-block; padding: 0 0.3rem; } /* Kleine Statuszeile direkt unter dem Titel (Tage ohne Datenverlust + Kennzahlen). */ .tagline { margin: 0; font-size: 1rem; color: black; } /* Reihe anarchistischer Sigillen im Kopf der Beitragsordnung (Easter Egg). aria-hidden im Markup: reine Dekoration, kein Vorlesen. */ #sigils { display: flex; justify-content: center; align-items: center; gap: 1.2rem; margin: 0.3rem 0; } #sigils img { height: 50px; width: auto; } /* --- Navigation --- Desktop (ab 900 px): Seitenleiste fest links, Inhalt rechts daneben. Mobil: Kopfleiste oben (Menü, Titel, Einstellungen), TabBar unten, die Seitenleiste ist eine Schublade hinter dem Menü. */ .icon { flex: 0 0 auto; width: 24px; height: 24px; vertical-align: middle; } /* Sigillen sind schwarze Bilder: im aktiven (invertierten) Eintrag weiß. */ #sidebar a.active .sigil { filter: invert(1); } #topbar { display: flex; align-items: center; justify-content: center; } .icon-btn { display: inline-flex; padding: 0.4rem; margin: 0; border: none; background-color: white; color: black; } #sidebar { position: fixed; top: 0; left: 0; bottom: 0; z-index: 30; width: 15rem; overflow-y: auto; background-color: white; border-right: 1px solid black; } #sidebar ul { list-style: none; margin: 0; padding: 0.5rem 0; } #sidebar ul + ul { border-top: 1px solid black; } #sidebar a, #sidebar button { display: flex; align-items: center; gap: 0.6rem; width: 100%; box-sizing: border-box; margin: 0; padding: 0.4rem 1rem; border: none; text-align: left; text-decoration: none; color: black; background-color: white; } #sidebar button span { font-size: 1.2rem; } #sidebar a:hover, #sidebar button:hover { text-decoration: underline; } /* Aktuelles Ziel invertiert (NavLink setzt .active). */ #sidebar a.active, #tabbar a.active { background-color: black; color: white; } #tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; background-color: white; border-top: 1px solid black; } #tabbar a { flex: 1; display: flex; justify-content: center; padding: 0.6rem 0; } .backdrop { position: fixed; inset: 0; z-index: 25; background-color: rgba(0, 0, 0, 0.4); } @media (max-width: 899px) { header { position: sticky; top: 0; z-index: 10; padding: 0; border-bottom: 1px solid black; } #topbar { justify-content: space-between; } #topbar h1 { font-size: 1.6rem; } /* Geschlossen: aus dem Bild und aus der Tab-Reihenfolge. */ #sidebar { visibility: hidden; transform: translateX(-100%); } #sidebar.open { visibility: visible; transform: none; } /* Platz für die TabBar, damit das Seitenende nicht darunter liegt. */ .page { padding-bottom: 3.5rem; } } @media (min-width: 900px) { .page { margin-left: 15rem; } .mobile-only, #tabbar, .backdrop { display: none; } } /* --- Inhaltsspalte --- */ main { max-width: 600px; margin: auto; } main.wide { max-width: 1200px; } main > section, main > div, main > h2, main > p { background-color: white; } main > section { padding: 0rem 0.3rem; } main > h2 { padding: 0.3rem 0.5rem; } /* Rechtstexte (Impressum/Datenschutz/Beitragsordnung): weiße Spalte mit etwas Innenabstand, damit der Fließtext nicht am Rand klebt. */ .doc { padding: 5px; } span, a { font-size: 1.2rem; } a { color: black; } a:hover { text-decoration: none; } /* --- Buttons --- */ a.button, button { padding: 4px 8px; border: 1px solid black; margin: 2px 0; display: inline-block; color: black; text-decoration: none; background-color: white; font-family: "EB Garamond", serif; font-size: 1rem; cursor: pointer; } a.button:hover, button:hover { text-decoration: underline; } /* --- Einträge --- */ .card { position: relative; cursor: pointer; background-color: white; margin-bottom: 0; font-size: 1.2rem; border: none; } .card:hover { background-color: #f7f7f5; } .card .content { padding: 0.5rem 0; line-height: 1.5; overflow-wrap: break-word; } #focus .card { margin: 0rem 0.3rem ; } /* Beitragsbild (nicht der Byline-Avatar). */ .card img:not(.avatar) { display: block; max-width: 300px; margin: 0.5rem auto; } /* Fokussierter Beitrag zeigt das Bild in voller Breite. */ #focus .card img:not(.avatar) { max-width: 100%; } /* Linkvorschau: abgesetzte Karte unter dem Text, kleines Vorschaubild links, Titel und Seiten- bzw. Kanalname daneben. Rahmen wie bei den Buttons, weiß auch beim Card-Hover. */ .link-preview { display: flex; align-items: center; border: 1px solid black; background-color: white; margin: 0 0 0.5rem; text-decoration: none; color: black; } .link-preview:hover .link-preview-title { text-decoration: underline; } .card .link-preview img { flex: 0 0 auto; align-self: stretch; width: 160px; max-width: 40%; aspect-ratio: 16 / 9; object-fit: cover; margin: 0; border-right: 1px solid black; } .link-preview-text { min-width: 0; padding: 0.3rem 0.5rem; } .link-preview-title, .link-preview-site { display: block; overflow-wrap: break-word; } .link-preview-title { font-size: 1.1rem; line-height: 1.3; } .link-preview-site { font-size: 0.9rem; color: gray; } /* --- Avatare --- */ img.avatar { display: inline-block; vertical-align: middle; border-radius: 50%; object-fit: cover; background-color: #eee; margin: 0; max-width: none; } img.avatar-sm { width: var(--avatar-sm); height: var(--avatar-sm); } img.avatar-lg { width: 72px; height: 72px; } /* Byline mit kleinem Avatar neben Name + Zeitstempel. Einheitliche 1rem für die ganze Meta-Zeile (Name, Datum, Repost-Cooldown), damit nichts größer rausfällt als die Links -- der Klartext würde sonst die 1.2rem der Card erben. */ .byline { display: flex; align-items: center; gap: 0.5rem; font-size: 1rem; /* Versuchsweise die Titel-Display-Schrift (wie h1/h2) in der Meta-Zeile. */ font-family: "Cheltenham Classic", serif; } /* Die globale Regel `span, a { font-size: 1.2rem }` trifft das Datum/Cooldown- span direkt und macht es größer als den Username-Link (der über `.muted a` auf 1rem liegt). Hier explizit angleichen -> ganze Meta-Zeile gleich groß. */ .byline span { font-size: 1rem; } /* Melden steht rechts in der Byline. */ .byline .report { margin-left: auto; } /* Profilkopf: großer Avatar links neben Name und "Mitglied seit". */ .profile-head { display: flex; align-items: center; gap: 0.75rem; } /* --- Thread-Strich --- Der Strich ist ein eigenes Flex-Geschwister links neben dem Inhalt, nicht eine Border am Inhalt selbst. align-self: stretch macht ihn exakt so hoch wie der Inhalt (kein Über-/Unterstehen). Die Meta-Zeile (.byline) liegt außerhalb des Wrappers, also volle Breite über dem Strich. Standard (Feed/Fokus): Strich aus, Inhalt volle Breite. */ .threadline-wrapper { display: flex; } .threadline { display: none; align-self: stretch; } .body { flex: 1; min-width: 0; margin-bottom: 1rem; } /* Vorfahren UND direkte Antworten: gleiche Einrückung, Meta-Zeile bleibt links. Die Strich-Spalte ist halb so breit wie der Avatar, ihr rechter Rand (= der Strich) liegt damit unter der Mitte des Byline-Avatars. Der Abstand zum Inhalt ist ebenfalls die halbe Avatarbreite -> Inhalt beginnt unter dem rechten Avatarrand. Der .body füllt per flex:1 den Rest. Dasselbe gilt für die Diskussionskette in Feed und Antworten (Discussion: Beitrag, ggf. "k weitere Beiträge", jüngste Antwort) an allen Gliedern außer dem letzten. */ #ancestors .threadline, #replies .threadline, .chain > :not(:last-child) .threadline { display: block; /* Box um die Linienbreite schmaler -> die rechts gezeichnete border-right landet genau auf der Avatarmitte statt rechts daneben. */ flex: 0 0 calc(var(--avatar-sm) / 2 - var(--line-w)); margin-right: calc(var(--avatar-sm) / 2); } /* Strich nur, wo eine Kette ist: Vorfahren und Diskussionsketten. Direkte Antworten ohne Kette sind nur eingerückt. */ #ancestors .threadline, .chain > :not(:last-child) .threadline { border-right: var(--line-w) solid gray; } /* "k weitere Beiträge" unterbricht den Strich: der Button steht bündig mit dem Avatar, der Strich läuft oben auf ihn zu und setzt darunter (::after) wieder an bis zum nächsten Avatar. .chain-gap a hebt den Button-Margin auf, damit Strich und Rahmen sich berühren. */ .chain-gap a { margin: 0; } .chain-gap::after { content: ""; display: block; width: 0; height: 0.6rem; margin-left: calc(var(--avatar-sm) / 2 - var(--line-w)); border-left: var(--line-w) solid gray; } /* Interaktionsleiste: Antworten-Button links, Vote-Buttons mittig, Repost rechts. Antwort- und Repost-Zahl stehen in den Buttons; der Repost-Cooldown wandert in die Byline (siehe useBump). */ .interactions { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 0.25rem; } /* Repost-Button: im Cooldown gesperrt (gilt pro Beitrag für alle). */ .bump:disabled { color: gray; border-color: #ccc; cursor: default; text-decoration: none; } .row { display: flex; align-items: center; gap: 0.5rem; } .muted { color: gray; } .muted a { color: gray; font-size: 1rem; } .ghost.selected { font-weight: bold; } .msg { color: red; } /* --- Formulare --- */ form { background-color: white; margin: auto; padding: 0.5rem 0; } form input, form textarea { font-family: "EB Garamond", serif; width: 100%; box-sizing: border-box; margin: 4px 0; } form textarea { padding: 5px; border: 0; outline: 1px solid black; resize: vertical; } form input[type="file"] { outline: none; } /* --- Statistik-Seite --- */ .statgrid { display: flex; flex-wrap: wrap; gap: 0.6rem 1.8rem; padding: 0.3rem 0.5rem 0.6rem; } .statgrid > div { display: flex; flex-direction: column; } .statgrid .num { font-size: 1.8rem; line-height: 1.1; } /* Server-SVGs (internal/charts): schmal 600, breit 1200 im viewBox-Raum. Ab 900 px Fensterbreite die breite Fassung, damit die Schrift nicht zu groß wird. */ .chart { padding: 0.3rem 0 0.6rem; } .chart svg { display: block; width: 100%; height: auto; } .chart-wide { display: none; } /* Senkrechte Markierung des Tages unter dem Zeiger (Liniendiagramme). */ .chart g:hover .mark { visibility: visible; } /* Infozeile unter dem Diagramm: Höhe immer reserviert. */ .chart-tip { margin: 0.2rem 0 0; padding-left: 0.5rem; min-height: 1.3em; } @media (min-width: 900px) { .chart-narrow { display: none; } .chart-wide { display: block; } }