From a06dc38b4383cf0b404419a748e99f11ae28a543 Mon Sep 17 00:00:00 2001 From: ehab-hassan Date: Mon, 3 Feb 2025 12:05:22 +0200 Subject: [PATCH] update head --- static/js/custom.js | 2 -- templates/partials/header.html | 5 +++++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/static/js/custom.js b/static/js/custom.js index 8461b1623..9bc222791 100644 --- a/static/js/custom.js +++ b/static/js/custom.js @@ -214,9 +214,7 @@ document.addEventListener('DOMContentLoaded', () => { // Toggle light mode toggleSwitch.addEventListener('change', () => { - console.log('Hellon'); if (toggleSwitch.checked) { - document.body.classList.add('light-mode'); localStorage.setItem('theme', 'light'); siteLogo.src = siteLogo.getAttribute('data-dark'); // Switch to light mode logo diff --git a/templates/partials/header.html b/templates/partials/header.html index 2024d0c27..cee7833dd 100644 --- a/templates/partials/header.html +++ b/templates/partials/header.html @@ -241,6 +241,11 @@ color: #c7c7c7 !important; } +.theme-toggle { + border: none !important; + box-shadow: none !important; +} + .active{ color: #c7c7c7 !important; }