c85cf9a47b
- Tailwind-Preflight setzt list-style: none in @layer base, markdown.css stellt es nicht wieder her - Ungeschichteter CSS-Block in globals.css schlaegt die Layer-Regel fuer .wmde-markdown ul/ol - Aufgabenlisten mit Kaestchen bleiben ohne Punkt - CHANGELOG.md: zwei Stichpunkte unter Unveroeffentlicht ergaenzt Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
139 lines
5.1 KiB
CSS
139 lines
5.1 KiB
CSS
@import "tailwindcss";
|
|
|
|
/*
|
|
* Bindet die `dark:`-Utility-Variante an die `.dark`-Klasse.
|
|
*
|
|
* Tailwind 4 haengt `dark:` per Vorgabe an `prefers-color-scheme`, also an die
|
|
* Einstellung des Betriebssystems. Diese Anwendung schaltet den Modus aber ueber
|
|
* next-themes mit `attribute="class"` (siehe app/layout.tsx) — der Nutzer waehlt
|
|
* hell/dunkel im Portal, unabhaengig von seinem System.
|
|
*
|
|
* Ohne diese Zeile klaffte beides auseinander: die Farbtokens unter `.dark` weiter
|
|
* unten schalteten korrekt um, jede einzelne `dark:`-Utility im Quellcode blieb
|
|
* dagegen wirkungslos, sobald System und Portal-Einstellung nicht zufaellig
|
|
* uebereinstimmten. Betroffen waren ueber 100 Stellen — Status-, Warn- und
|
|
* Fehlerfarben, Hinweisboxen und Badges in der Administration. Der Fehler fiel
|
|
* lange nicht auf, weil Hintergrund und Textfarbe eben NICHT ueber `dark:` laufen,
|
|
* die Oberflaeche also grundsaetzlich dunkel wurde und nur die Feinheiten fehlten.
|
|
*
|
|
* Aufgedeckt beim Logo-Einbau (Quick 260907-fgv, WINDOWS.md #13), dessen
|
|
* Plattenkontur `dark:stroke-white/25` aus genau diesem Grund nicht griff.
|
|
*/
|
|
@custom-variant dark (&:where(.dark, .dark *));
|
|
|
|
@theme inline {
|
|
--color-primary: var(--primary);
|
|
--color-primary-foreground: var(--primary-foreground);
|
|
--color-secondary: var(--secondary);
|
|
--color-secondary-foreground: var(--secondary-foreground);
|
|
--color-accent: var(--accent);
|
|
--color-accent-foreground: var(--accent-foreground);
|
|
--color-background: var(--background);
|
|
--color-foreground: var(--foreground);
|
|
--color-card: var(--card);
|
|
--color-card-foreground: var(--card-foreground);
|
|
--color-muted: var(--muted);
|
|
--color-muted-foreground: var(--muted-foreground);
|
|
--color-destructive: var(--destructive);
|
|
--color-destructive-foreground: var(--destructive-foreground);
|
|
--color-border: var(--border);
|
|
--color-input: var(--input);
|
|
--color-ring: var(--ring);
|
|
--color-sidebar: var(--sidebar);
|
|
--color-sidebar-foreground: var(--sidebar-foreground);
|
|
--color-sidebar-accent: var(--sidebar-accent);
|
|
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
|
|
--color-sidebar-border: var(--sidebar-border);
|
|
--radius-sm: calc(var(--radius) - 2px);
|
|
--radius-md: var(--radius);
|
|
--radius-lg: calc(var(--radius) + 2px);
|
|
}
|
|
|
|
:root {
|
|
--radius: 0.5rem;
|
|
--font-sans: "Inter", system-ui, -apple-system, sans-serif;
|
|
|
|
/* Layout dimensions */
|
|
--sidebar-width: 240px;
|
|
--sidebar-width-collapsed: 64px;
|
|
--header-height: 60px;
|
|
|
|
/* Light mode colors (OKLCH) */
|
|
--background: oklch(0.99 0 0);
|
|
--foreground: oklch(0.15 0 0);
|
|
--card: oklch(1 0 0);
|
|
--card-foreground: oklch(0.15 0 0);
|
|
--primary: oklch(0.91 0.19 102);
|
|
--primary-foreground: oklch(0.20 0.02 90);
|
|
--secondary: oklch(0.96 0 0);
|
|
--secondary-foreground: oklch(0.15 0 0);
|
|
--muted: oklch(0.96 0 0);
|
|
--muted-foreground: oklch(0.55 0 0);
|
|
--accent: oklch(0.96 0 0);
|
|
--accent-foreground: oklch(0.15 0 0);
|
|
--destructive: oklch(0.55 0.2 27);
|
|
--destructive-foreground: oklch(0.98 0 0);
|
|
--border: oklch(0.90 0 0);
|
|
--input: oklch(0.90 0 0);
|
|
--ring: oklch(0.91 0.19 102);
|
|
|
|
/* Sidebar tokens */
|
|
--sidebar: oklch(0.97 0 0);
|
|
--sidebar-foreground: oklch(0.15 0 0);
|
|
--sidebar-accent: oklch(0.93 0 0);
|
|
--sidebar-accent-foreground: oklch(0.25 0 0);
|
|
--sidebar-border: oklch(0.90 0 0);
|
|
}
|
|
|
|
.dark {
|
|
--background: oklch(0.23 0.01 260);
|
|
--foreground: oklch(0.95 0 0);
|
|
--card: oklch(0.27 0.01 260);
|
|
--card-foreground: oklch(0.95 0 0);
|
|
--primary: oklch(0.91 0.19 102);
|
|
--primary-foreground: oklch(0.20 0.02 90);
|
|
--secondary: oklch(0.30 0.01 260);
|
|
--secondary-foreground: oklch(0.95 0 0);
|
|
--muted: oklch(0.30 0.01 260);
|
|
--muted-foreground: oklch(0.65 0 0);
|
|
--accent: oklch(0.30 0.01 260);
|
|
--accent-foreground: oklch(0.95 0 0);
|
|
--destructive: oklch(0.55 0.2 27);
|
|
--destructive-foreground: oklch(0.98 0 0);
|
|
--border: oklch(0.30 0.01 260);
|
|
--input: oklch(0.30 0.01 260);
|
|
--ring: oklch(0.91 0.19 102);
|
|
|
|
/* Sidebar tokens (dark) */
|
|
--sidebar: oklch(0.20 0.01 260);
|
|
--sidebar-foreground: oklch(0.95 0 0);
|
|
--sidebar-accent: oklch(0.91 0.19 102 / 0.15);
|
|
--sidebar-accent-foreground: oklch(0.91 0.19 102);
|
|
--sidebar-border: oklch(0.30 0.01 260);
|
|
}
|
|
|
|
body {
|
|
font-family: var(--font-sans);
|
|
-webkit-font-smoothing: antialiased;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
}
|
|
|
|
/* App shell main content responsive margin */
|
|
@media (min-width: 768px) {
|
|
.app-shell-main {
|
|
margin-left: var(--current-sidebar-width, var(--sidebar-width));
|
|
}
|
|
}
|
|
|
|
/* Tailwind-Preflight setzt in @layer base `ul, ol { list-style: none }`; das
|
|
Markdown-Stylesheet von @uiw/react-markdown-preview stellt es nicht wieder
|
|
her — deshalb fehlten auf „Was ist neu“ und in der Notiz-Vorschau die
|
|
Aufzaehlungspunkte. Diese Regel liegt bewusst NICHT in einem @layer, damit
|
|
sie die Layer-Regel unabhaengig von Spezifitaet schlaegt. Aufgabenlisten
|
|
mit Kaestchen (`- [ ]`) bleiben ohne Punkt (quick-260916-jvj).
|
|
*/
|
|
.wmde-markdown ul { list-style: disc; }
|
|
.wmde-markdown ul ul { list-style: circle; }
|
|
.wmde-markdown ol { list-style: decimal; }
|
|
.wmde-markdown ul.contains-task-list, .wmde-markdown li.task-list-item { list-style: none; }
|