From 69a51abdd2791f094d8aee3c4f3c5cc1ab047704 Mon Sep 17 00:00:00 2001 From: ISA Date: Thu, 24 Oct 2024 11:59:52 +0200 Subject: [PATCH] Light und Darkmodus in global.css eingestellt, in andere components text-black in root div --- app/globals.css | 16 ++++++++++++++++ app/kabelueberwachung/page.jsx | 2 +- components/Footer.jsx | 2 +- components/Header.jsx | 2 +- components/modales/KueModal.jsx | 9 +++++---- 5 files changed, 24 insertions(+), 7 deletions(-) diff --git a/app/globals.css b/app/globals.css index 37ab8ec..dbd1cc0 100644 --- a/app/globals.css +++ b/app/globals.css @@ -26,3 +26,19 @@ body { text-wrap: balance; } } + +@media (prefers-color-scheme: light) { + input { + background-color: #333 !important; /* Dunkler Hintergrund im Darkmode */ + color: #fff !important; /* Weißer Text im Darkmode */ + border: 1px solid #555; /* Optional: etwas hellerer Rahmen */ + } +} + +@media (prefers-color-scheme: dark) { + input { + background-color: white !important; /* Heller Hintergrund im Lightmode */ + color: black !important; /* Schwarzer Text im Lightmode */ + border: 1px solid #ccc; /* Optional: heller Rahmen */ + } +} diff --git a/app/kabelueberwachung/page.jsx b/app/kabelueberwachung/page.jsx index ac99828..83e7e0e 100644 --- a/app/kabelueberwachung/page.jsx +++ b/app/kabelueberwachung/page.jsx @@ -84,7 +84,7 @@ function Kabelueberwachung() { }, []); return ( -
+

Kabelüberwachung

diff --git a/components/Footer.jsx b/components/Footer.jsx index e81629c..22756f2 100644 --- a/components/Footer.jsx +++ b/components/Footer.jsx @@ -90,7 +90,7 @@ function Footer() { }, [showSlider]); return ( -