FIx nav menu scroll

This commit is contained in:
Roman Pyrih
2026-02-10 11:51:52 +01:00
parent 4f95821342
commit a605e0f4ad
4 changed files with 3632 additions and 3599 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -11,10 +11,8 @@ $cGrayLight: #eceff1;
$cComment: #c3c3c3; $cComment: #c3c3c3;
$cWhite: #fff; $cWhite: #fff;
$fJosefin: 'Josefin Sans', $fJosefin: 'Josefin Sans', sans-serif;
sans-serif; $font_nunito: 'Nunito Sans', sans-serif;
$font_nunito: 'Nunito Sans',
sans-serif;
@import '_mixins'; @import '_mixins';
@keyframes fade_in_show { @keyframes fade_in_show {
@@ -120,7 +118,7 @@ input:-webkit-autofill:active {
.btn-success:not(:disabled):not(.disabled):active, .btn-success:not(:disabled):not(.disabled):active,
.btn-success:not(:disabled):not(.disabled).active, .btn-success:not(:disabled):not(.disabled).active,
.show>.btn-success.dropdown-toggle { .show > .btn-success.dropdown-toggle {
background: $cBlue; background: $cBlue;
border: none; border: none;
} }
@@ -133,7 +131,7 @@ input:-webkit-autofill:active {
.btn-success:not(:disabled):not(.disabled):active:focus, .btn-success:not(:disabled):not(.disabled):active:focus,
.btn-success:not(:disabled):not(.disabled).active:focus, .btn-success:not(:disabled):not(.disabled).active:focus,
.show>.btn-success.dropdown-toggle:focus { .show > .btn-success.dropdown-toggle:focus {
box-shadow: none; box-shadow: none;
} }
@@ -584,9 +582,41 @@ input:-webkit-autofill:active {
#main-menu { #main-menu {
position: relative; position: relative;
z-index: 20; z-index: 21;
@media (max-width: 992px) {
&.active {
&::after {
visibility: visible;
opacity: 1;
}
}
&::after {
content: '';
position: fixed;
inset: 0;
visibility: hidden;
opacity: 0;
background: rgba(0, 0, 0, 0.1);
backdrop-filter: blur(3px);
transition: all 250ms ease-in-out;
}
}
#menu-container-1 { #menu-container-1 {
@media (max-width: 992px) {
height: 100% !important;
min-height: unset;
.levelHolderClass {
height: 100%;
}
ul {
height: calc(100vh - 100px);
overflow: auto;
}
}
ul { ul {
margin: 0; margin: 0;
padding: 0; padding: 0;
@@ -598,7 +628,7 @@ input:-webkit-autofill:active {
margin-left: -15px; margin-left: -15px;
justify-content: center; justify-content: center;
>li { > li {
@include respond-between(sm, md) { @include respond-between(sm, md) {
&#link-5 { &#link-5 {
display: none; display: none;
@@ -611,11 +641,11 @@ input:-webkit-autofill:active {
} }
} }
>i { > i {
display: none; display: none;
} }
>a { > a {
font-family: 'Nunito Sans', sans-serif; font-family: 'Nunito Sans', sans-serif;
color: $cText; color: $cText;
font-size: 18px; font-size: 18px;
@@ -640,14 +670,14 @@ input:-webkit-autofill:active {
} }
&:hover { &:hover {
>ul { > ul {
display: flex; display: flex;
animation: fade_in_show 0.5s; animation: fade_in_show 0.5s;
flex-wrap: wrap; flex-wrap: wrap;
} }
} }
>ul { > ul {
left: 0; left: 0;
width: 100%; width: 100%;
display: none; display: none;
@@ -656,7 +686,7 @@ input:-webkit-autofill:active {
background: #fff; background: #fff;
@include transition; @include transition;
>li { > li {
width: calc(100% / 4); width: calc(100% / 4);
margin-bottom: 25px; margin-bottom: 25px;
@@ -679,7 +709,7 @@ input:-webkit-autofill:active {
} }
} }
>a { > a {
font-weight: 600; font-weight: 600;
font-size: 16px; font-size: 16px;
} }
@@ -719,7 +749,6 @@ input:-webkit-autofill:active {
@include respond-above(xxl) { @include respond-above(xxl) {
.product-mini { .product-mini {
&:nth-child(11), &:nth-child(11),
&:nth-child(12) { &:nth-child(12) {
display: none; display: none;
@@ -1390,10 +1419,10 @@ input:-webkit-autofill:active {
&.level-0 { &.level-0 {
padding: 0 0 15px 0; padding: 0 0 15px 0;
>li { > li {
padding-bottom: 10px; padding-bottom: 10px;
>a { > a {
font-family: 'Nunito Sans', sans-serif; font-family: 'Nunito Sans', sans-serif;
font-weight: 600; font-weight: 600;
font-size: 20px; font-size: 20px;
@@ -2082,12 +2111,12 @@ ul.pager {
visibility: hidden; visibility: hidden;
} }
.grow-wrap>textarea { .grow-wrap > textarea {
resize: none; resize: none;
overflow: hidden; overflow: hidden;
} }
.grow-wrap>textarea, .grow-wrap > textarea,
.grow-wrap::after { .grow-wrap::after {
border: 1px solid #d5d5d5; border: 1px solid #d5d5d5;
padding: 0.5rem; padding: 0.5rem;
@@ -2190,10 +2219,12 @@ ul.pager {
opacity: 1; opacity: 1;
-webkit-background-clip: text; -webkit-background-clip: text;
-webkit-text-fill-color: transparent; -webkit-text-fill-color: transparent;
background-image: linear-gradient(to right, background-image: linear-gradient(
to right,
#000, #000,
#000 50%, #000 50%,
rgba(0, 0, 0, 0.3) 50%); rgba(0, 0, 0, 0.3) 50%
);
background-size: 200% 100%; background-size: 200% 100%;
background-position: 100%; background-position: 100%;
transition: all 1.2s cubic-bezier(0.19, 1, 0.22, 1); transition: all 1.2s cubic-bezier(0.19, 1, 0.22, 1);
@@ -2269,7 +2300,6 @@ ul.pager {
.swiper { .swiper {
&:hover { &:hover {
.swiper-button-next, .swiper-button-next,
.swiper-button-prev { .swiper-button-prev {
opacity: 1; opacity: 1;
@@ -2495,7 +2525,7 @@ ul.pager {
.reviews_data { .reviews_data {
#widget-container { #widget-container {
.rating-details { .rating-details {
&>div { & > div {
background: $cWhite; background: $cWhite;
} }
} }
@@ -2583,7 +2613,7 @@ ul.pager {
.basket-options { .basket-options {
padding-top: 25px; padding-top: 25px;
>.content { > .content {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
flex-wrap: wrap; flex-wrap: wrap;
@@ -2621,7 +2651,7 @@ ul.pager {
.fvat-data { .fvat-data {
display: none; display: none;
padding: 15px 15px 5px 15px; padding: 15px 15px 5px 15px;
background: #FFF; background: #fff;
margin-bottom: 15px; margin-bottom: 15px;
} }
@@ -2865,7 +2895,7 @@ ul.pager {
.column { .column {
padding: 20px; padding: 20px;
background: #FFF; background: #fff;
} }
h5 { h5 {
@@ -3013,7 +3043,7 @@ ul.pager {
align-items: center; align-items: center;
flex-wrap: wrap; flex-wrap: wrap;
>* { > * {
width: 100%; width: 100%;
} }
@@ -3401,8 +3431,8 @@ ul.pager {
max-width: 600px; max-width: 600px;
} }
>.container { > .container {
>.row { > .row {
.col-xl-4 { .col-xl-4 {
order: 1; order: 1;
} }
@@ -3427,8 +3457,8 @@ ul.pager {
#main-menu { #main-menu {
#menu-container-1 { #menu-container-1 {
ul.level-0 { ul.level-0 {
>li { > li {
>ul { > ul {
padding: 25px; padding: 25px;
} }
} }
@@ -3462,7 +3492,7 @@ ul.pager {
} }
.basket-summary-address { .basket-summary-address {
>.basket-address-form { > .basket-address-form {
.left { .left {
.addresses { .addresses {
.address { .address {
@@ -3739,7 +3769,6 @@ ul.pager {
} }
.pager { .pager {
.first, .first,
.last { .last {
display: none; display: none;

View File

@@ -32,6 +32,8 @@
$( '#menu-container-<?= $this -> menu['id'];?>' ).multilevelpushmenu( 'collapse' ); $( '#menu-container-<?= $this -> menu['id'];?>' ).multilevelpushmenu( 'collapse' );
$( this ).addClass( 'hidden' ); $( this ).addClass( 'hidden' );
$( '#mobile-menu-open' ).removeClass( 'hidden' ); $( '#mobile-menu-open' ).removeClass( 'hidden' );
$('body').removeClass('no-scroll');
$('#main-menu').removeClass('active');
}); });
$( 'body' ).on( click_event, '#mobile-menu-open', function() $( 'body' ).on( click_event, '#mobile-menu-open', function()
@@ -39,6 +41,8 @@
$( '#menu-container-<?= $this -> menu['id'];?>' ).css( 'visibility', 'visible' ).multilevelpushmenu( 'expand' ); $( '#menu-container-<?= $this -> menu['id'];?>' ).css( 'visibility', 'visible' ).multilevelpushmenu( 'expand' );
$( this ).addClass( 'hidden' ); $( this ).addClass( 'hidden' );
$( '#mobile-menu-close' ).removeClass( 'hidden' ); $( '#mobile-menu-close' ).removeClass( 'hidden' );
$('body').addClass('no-scroll');
$('#main-menu').addClass('active');
}); });
} }
}); });