From dfd5bb39c9d8efdcc1dd70cdf7a680939b97b74e Mon Sep 17 00:00:00 2001 From: ROTT Julien Date: Mon, 19 Jun 2023 08:38:40 +0200 Subject: [PATCH] Show fixed menu on small screens --- assets/css/responsiveness.scss | 3 --- assets/js/index.js | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/assets/css/responsiveness.scss b/assets/css/responsiveness.scss index 233776b..6c0d31d 100644 --- a/assets/css/responsiveness.scss +++ b/assets/css/responsiveness.scss @@ -89,9 +89,6 @@ ========================================================================== */ @media only screen and (max-width: 500px) { - .fixed-nav { - display: none; - } .post-holder { padding-top: 20px; } diff --git a/assets/js/index.js b/assets/js/index.js index 110abcd..a6ec32d 100644 --- a/assets/js/index.js +++ b/assets/js/index.js @@ -55,7 +55,7 @@ var $sitehead = $("#site-head"); if (w >= Math.floor(g) && w <= Math.ceil(h)) { $(".fixed-nav").fadeOut("fast"); - } else if ($(window).width() > 500) { + } else { $(".fixed-nav").css("display", "flex").fadeIn("fast"); }