From c551c010181fe819be6ca58d088d2cc55c7d54d1 Mon Sep 17 00:00:00 2001 From: Vital Vuillaume Date: Wed, 7 Feb 2024 17:28:18 +0100 Subject: [PATCH] Add files via upload --- My-Website.css | 18 +++++++++++++++--- My-Website.js | 5 ++++- 2 files changed, 19 insertions(+), 4 deletions(-) diff --git a/My-Website.css b/My-Website.css index 5cb47d3..4c993e0 100644 --- a/My-Website.css +++ b/My-Website.css @@ -111,7 +111,7 @@ img, .custom-menu { .section2 { - margin: 0px 10px 60px 90px; + margin: 0px 10px 65px 90px; position: relative; top: 15px; @@ -149,7 +149,6 @@ img, .custom-menu { } - .nav.active { width: 240px; @@ -248,6 +247,12 @@ img, .custom-menu { } +.list:last-child { + + margin-bottom: 150px; + +} + .nav.active .list { width: 220px; @@ -832,6 +837,12 @@ img, .custom-menu { } + .list:last-child { + + margin-bottom: 0px; + + } + .list:hover { background-color: transparent; @@ -864,6 +875,7 @@ img, .custom-menu { .containerRecherche { display: block; + overflow: auto; } @@ -885,7 +897,7 @@ img, .custom-menu { .category:last-child { - margin-bottom: 80px; + margin-bottom: 65px; } diff --git a/My-Website.js b/My-Website.js index 168ed46..195b93f 100644 --- a/My-Website.js +++ b/My-Website.js @@ -3,6 +3,7 @@ if (window.location.protocol != "https:") { window.location.protocol="https:"; } + //------Element html------\\ const btn1 = document.getElementById('btn1'); @@ -107,7 +108,9 @@ btnActualiser.onclick = function() { //------Menu contextuel Dark mode------\\ btnLienTheme.onclick = function ajouterClassBody() { - toggleModeSombre(); + isDarkMode = !isDarkMode; + localStorage.setItem('isDarkMode', isDarkMode); + updateDarkMode(); }; //------Menu contextuel Ecran------\\