diff --git a/AGENTS.md b/AGENTS.md index a5641e9..bb3f10d 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -172,8 +172,9 @@ Support Ctrl+Plus and Ctrl+Shift+Plus for insertion. Bootstrap may be used for the general application UI, such as navigation, page layout, buttons, forms, cards, alerts and modals. Cards follow the PM app look: 1px border all around, 16px radius and the -soft shadow defined on `.card` in `globals.css` (own dark-mode value). Do -not add Bootstrap `shadow-*` classes or a colored top border to cards. +soft shadow defined on `.card` in `globals.css` (own dark-mode value). The +`.card` rule maps Bootstrap's `shadow-sm` to the same shadow; do not add other +`shadow-*` classes or a colored top border to cards. Do not use Bootstrap as the core table/grid framework for the circuit list editor. diff --git a/src/app/globals.css b/src/app/globals.css index b51d98d..721f991 100644 --- a/src/app/globals.css +++ b/src/app/globals.css @@ -434,21 +434,24 @@ a.kpi:hover { /* Flächen-Look wie in der PM-App (Vorbild grow-monitor): gleichmäßiger 1-px-Rahmen statt farbigem Balken an der Oberkante, größerer Radius und ein weicher Streuschatten mit feiner heller Innenkante oben. Der Akzent kommt - über Kopfzeile und Inhalt, nicht über die Kante. Karten tragen deshalb keine - Bootstrap-Klasse shadow-*, die den Schatten mit !important überschreiben - würde. */ + über Kopfzeile und Inhalt, nicht über die Kante. Bootstraps shadow-sm + setzt box-shadow mit !important aus --bs-box-shadow-sm; die Karte legt diese + Variable auf denselben Schatten, damit Karten mit und ohne shadow-sm gleich + aussehen. */ .card { - --bs-card-border-radius: 16px; - --bs-card-border-color: var(--color-border); - box-shadow: + --lb-card-shadow: 0 4px 24px var(--shadow-soft), 0 1px 0 rgba(255, 255, 255, 0.7) inset; + --bs-box-shadow-sm: var(--lb-card-shadow); + --bs-card-border-radius: 16px; + --bs-card-border-color: var(--color-border); + box-shadow: var(--lb-card-shadow); } /* Auf dunklem Grund ein kräftigerer Streuschatten und nur eine schwache Innenkante, sonst wirkt sie wie ein harter weißer Strich. */ :root[data-bs-theme="dark"] .card { - box-shadow: + --lb-card-shadow: 0 4px 24px rgba(0, 0, 0, 0.4), 0 1px 0 rgba(255, 255, 255, 0.05) inset; } diff --git a/src/app/projects/[projectId]/page.tsx b/src/app/projects/[projectId]/page.tsx index f352536..fa342ea 100644 --- a/src/app/projects/[projectId]/page.tsx +++ b/src/app/projects/[projectId]/page.tsx @@ -904,7 +904,7 @@ export default function ProjectDetailPage() { ) : null}
-
+
Verteilungen @@ -997,7 +997,7 @@ export default function ProjectDetailPage() {
-
+
Etagen @@ -1028,7 +1028,7 @@ export default function ProjectDetailPage() {
-
+
Räume @@ -1079,7 +1079,7 @@ export default function ProjectDetailPage() {
-
+
Projektgeräte diff --git a/src/app/projects/page.tsx b/src/app/projects/page.tsx index 4d8b7bd..21409fd 100644 --- a/src/app/projects/page.tsx +++ b/src/app/projects/page.tsx @@ -238,7 +238,7 @@ export default function ProjectsPage() { {error ?
{error}
: null}
-
+
Neues Projekt
@@ -271,7 +271,7 @@ export default function ProjectsPage() {
-
+
Projekt importieren

@@ -326,7 +326,7 @@ export default function ProjectsPage() {

-
+
Globale Geräte / Verbraucher
diff --git a/src/frontend/components/project-version-history.tsx b/src/frontend/components/project-version-history.tsx index 2ce4105..3907640 100644 --- a/src/frontend/components/project-version-history.tsx +++ b/src/frontend/components/project-version-history.tsx @@ -227,7 +227,7 @@ export function ProjectVersionHistory({ history?.currentRevision === currentRevision; return ( -
+
Versionen und Sicherungspunkte