From f33a8637e7e7a35e097caa66c73797474412e27c Mon Sep 17 00:00:00 2001 From: ehab-hassan Date: Sun, 24 Nov 2024 12:46:59 +0200 Subject: [PATCH] made header at mobile fixed --- static/js/custom.js | 2 +- templates/partials/header.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/static/js/custom.js b/static/js/custom.js index 793737311..078bccdb3 100644 --- a/static/js/custom.js +++ b/static/js/custom.js @@ -104,7 +104,7 @@ function hideMenu(menuName) { function showHamburger() { document.getElementById("header-container").className = "overflow-hidden"; document.getElementById("hamburger").className = - "fixed mt-16 z-20 top-0 inset-x-0 transition transform origin-top-right"; + "fixed mt-14 z-20 top-0 inset-x-0 transition transform origin-top-right"; document.getElementById("hamburger-btn").className = "hidden lg:hidden inline-flex items-center justify-center p-2 rounded-md text-gray-400 hover:text-gray-500 hover:bg-gray-100 focus:outline-none focus:bg-gray-100 focus:text-gray-500 transition duration-150 ease-in-out"; document.getElementById("close-hamburger-btn").className = diff --git a/templates/partials/header.html b/templates/partials/header.html index 2520709dc..4b7b47fdf 100644 --- a/templates/partials/header.html +++ b/templates/partials/header.html @@ -2,7 +2,7 @@ {% set header_items = section.content | safe | split(pat="
  • ") %}
    -
    +
    @@ -145,7 +145,7 @@ From: "opacity-100 scale-100" To: "opacity-0 scale-95" --> -