From fe582393320dddbd852cf9bdc896cc83ee53bbab Mon Sep 17 00:00:00 2001 From: Alexander Date: Tue, 2 Jan 2024 21:09:38 +0100 Subject: [PATCH] =?UTF-8?q?new=20drop=20down=20men=C3=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- html+css.html | 23 ++--------------------- 1 file changed, 2 insertions(+), 21 deletions(-) diff --git a/html+css.html b/html+css.html index 23171ba..f7b4556 100644 --- a/html+css.html +++ b/html+css.html @@ -113,6 +113,7 @@ text-align: center; text-decoration: none; display: block; + font-size: 250%; } .mobile-menu { @@ -151,7 +152,7 @@ .mobile-menu.show { display: block; /* Bei Klick auf das Symbol anzeigen */ - background-color: red; + background-color: rgb(104, 0, 0); } .menu { @@ -212,27 +213,7 @@ menuLinks.classList.toggle('show'); mobileMenu.classList.toggle('show'); - - if (mobileMenu.classList.contains('show')) { - body.style.backgroundColor = 'red'; - } else { - body.style.backgroundColor = 'transparent'; - } } - - // Überwache Änderungen der Bildschirmgröße - window.addEventListener('resize', function () { - var screenWidth = window.innerWidth; - var mobileMenu = document.querySelector('.mobile-menu'); - var body = document.body; - - // Überprüfe, ob das mobile Menü sichtbar ist - if (mobileMenu.classList.contains('show')) { - body.style.backgroundColor = 'red'; - } else { - body.style.backgroundColor = 'white'; - } - });