From 74211ebdc7bb8a1d5fcd40fee30de4f3f620b53b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Rudowicz?= Date: Mon, 24 Feb 2025 17:43:32 +0100 Subject: [PATCH] Cleanup; Remove mobile menu which required JS to be toggled --- _includes/hamburger.html | 5 -- _includes/header.html | 1 - _includes/main-menu-mobile.html | 10 ---- _layouts/default.html | 4 -- _sass/components/_main-menu-mobile.scss | 79 ------------------------- _sass/components/_main-menu.scss | 5 +- assets/css/style.scss | 1 - 7 files changed, 1 insertion(+), 104 deletions(-) delete mode 100644 _includes/hamburger.html delete mode 100644 _includes/main-menu-mobile.html delete mode 100644 _sass/components/_main-menu-mobile.scss diff --git a/_includes/hamburger.html b/_includes/hamburger.html deleted file mode 100644 index eeff587..0000000 --- a/_includes/hamburger.html +++ /dev/null @@ -1,5 +0,0 @@ - \ No newline at end of file diff --git a/_includes/header.html b/_includes/header.html index 698320e..57682f3 100644 --- a/_includes/header.html +++ b/_includes/header.html @@ -7,6 +7,5 @@ {{ site.title }} {% include main-menu.html %} - {% include hamburger.html %} diff --git a/_includes/main-menu-mobile.html b/_includes/main-menu-mobile.html deleted file mode 100644 index 70f6bbf..0000000 --- a/_includes/main-menu-mobile.html +++ /dev/null @@ -1,10 +0,0 @@ - diff --git a/_layouts/default.html b/_layouts/default.html index c658a6d..3a792c4 100755 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -5,9 +5,6 @@ {% if page.title %}{{page.title}}{% else %}{{ site.title | escape }}{% endif %} - - - {% if page.description %}{% endif %} @@ -23,7 +20,6 @@ - {% include main-menu-mobile.html %}
{% include header.html headerClass='header-extra' %} {{content}} diff --git a/_sass/components/_main-menu-mobile.scss b/_sass/components/_main-menu-mobile.scss deleted file mode 100644 index 9c654ab..0000000 --- a/_sass/components/_main-menu-mobile.scss +++ /dev/null @@ -1,79 +0,0 @@ -.main-menu-mobile { - position: fixed; - background: $primary; - top: 0; - left: 0; - width: 100%; - height: 100vh; - opacity: 0; - visibility: hidden; - transition: opacity 0.35s, visibility 0.35s, height 0.35s; - overflow: hidden; - display: flex; - justify-content: center; - align-items: center; - flex-direction: column; - &.open { - opacity: 0.9; - visibility: visible; - height: 100%; - z-index: 20; - li { - animation: fadeInRight 0.5s ease forwards; - animation-delay: 0.35s; - &:nth-of-type(2) { - animation-delay: 0.4s; - } - &:nth-of-type(3) { - animation-delay: 0.45s; - } - &:nth-of-type(4) { - animation-delay: 0.5s; - } - &:nth-of-type(5) { - animation-delay: 0.55s; - } - &:nth-of-type(6) { - animation-delay: 0.6s; - } - } - } - ul { - font-size: 30px; - font-family: $font-family-heading; - text-align: center; - list-style: none; - padding: 0; - margin: 0; - flex: 0; - li { - display: block; - position: relative; - opacity: 0; - padding: 10px; - a { - display: block; - position: relative; - color: #ffffff; - text-decoration: none; - overflow: hidden; - &:hover { - opacity: 0.8; - } - } - } - } -} -@keyframes fadeInRight { - 0% { - opacity: 0; - left: 20%; - } - 100% { - opacity: 1; - left: 0; - } -} -.lock-scroll { - overflow: hidden; -} diff --git a/_sass/components/_main-menu.scss b/_sass/components/_main-menu.scss index 7b1f33e..f1ac9ed 100644 --- a/_sass/components/_main-menu.scss +++ b/_sass/components/_main-menu.scss @@ -1,8 +1,5 @@ .main-menu { - display: none; - @include media-breakpoint-up(md) { - display: block; - } + display: block; > ul { display: flex; align-items: center; diff --git a/assets/css/style.scss b/assets/css/style.scss index a821752..0403590 100644 --- a/assets/css/style.scss +++ b/assets/css/style.scss @@ -89,7 +89,6 @@ $sub-footer-text-color: $white; @import "components/sub-footer"; @import "components/logo"; @import "components/main-menu"; -@import "components/main-menu-mobile"; @import "components/hamburger"; @import "components/buttons"; @import "components/call";