From 603e8feec3612f88bd2468b8246356ec89ffa64c Mon Sep 17 00:00:00 2001 From: Vital Vuillaume Date: Sat, 23 Sep 2023 21:49:20 +0200 Subject: [PATCH] Add files via upload --- My-Website.css | 6 ++++++ My-Website.js | 4 ++-- index.html | 2 +- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/My-Website.css b/My-Website.css index a222bab..5760a2a 100644 --- a/My-Website.css +++ b/My-Website.css @@ -536,6 +536,12 @@ body.active ::-moz-placeholder { } + .nav.input { + + display: none; + + } + .ligne { display: none diff --git a/My-Website.js b/My-Website.js index c94f212..29c65c7 100644 --- a/My-Website.js +++ b/My-Website.js @@ -173,11 +173,11 @@ function clearResults() { if (window.innerWidth <= 425) { Recherche.addEventListener('focus', function() { - nav.style.display = 'none'; + nav.classList.add('input'); }); Recherche.addEventListener('blur', function() { - nav.style.display = 'flex'; + nav.classList.remove('input'); }); } diff --git a/index.html b/index.html index 46d2eb2..cd210b0 100644 --- a/index.html +++ b/index.html @@ -30,7 +30,7 @@

Mes projets

- +