Fix nav scroll

This commit is contained in:
Roman Pyrih
2026-02-10 12:30:06 +01:00
parent 33c997ce0d
commit 23ed184577
4 changed files with 5152 additions and 5124 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

@@ -9,8 +9,7 @@ $cGray: #f6f6f6;
$cGrayLight: #eceff1; $cGrayLight: #eceff1;
$cComment: #c3c3c3; $cComment: #c3c3c3;
$form_gray: #e7e7e7; $form_gray: #e7e7e7;
$font_nunito: 'Nunito', $font_nunito: 'Nunito', sans-serif;
sans-serif;
@import '_mixins'; @import '_mixins';
@@ -124,7 +123,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: $cRed; background: $cRed;
border: none; border: none;
} }
@@ -137,7 +136,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;
} }
@@ -597,7 +596,37 @@ input:-webkit-autofill:active {
position: relative; position: relative;
z-index: 20; z-index: 20;
@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: 100%;
overflow: auto;
}
}
ul { ul {
margin: 0; margin: 0;
padding: 0; padding: 0;
@@ -609,18 +638,18 @@ input:-webkit-autofill:active {
margin-left: -15px; margin-left: -15px;
gap: 20px; gap: 20px;
>li { > li {
@include respond-between(sm, md) { @include respond-between(sm, md) {
&#link-5 { &#link-5 {
display: none; display: none;
} }
} }
>i { > i {
display: none; display: none;
} }
>a { > a {
font-family: $font_nunito; font-family: $font_nunito;
color: $cText; color: $cText;
font-size: 18px; font-size: 18px;
@@ -645,14 +674,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;
@@ -661,7 +690,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;
@@ -685,7 +714,7 @@ input:-webkit-autofill:active {
} }
} }
>a { > a {
font-weight: 600; font-weight: 600;
font-size: 16px; font-size: 16px;
white-space: nowrap; white-space: nowrap;
@@ -726,7 +755,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;
@@ -1399,10 +1427,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: $font_nunito; font-family: $font_nunito;
font-weight: 600; font-weight: 600;
color: $cText; color: $cText;
@@ -2131,12 +2159,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;
@@ -2428,7 +2456,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;
@@ -2858,7 +2886,7 @@ ul.pager {
align-items: center; align-items: center;
flex-wrap: wrap; flex-wrap: wrap;
>* { > * {
width: 100%; width: 100%;
} }
@@ -3255,8 +3283,8 @@ ul.pager {
max-width: 600px; max-width: 600px;
} }
>.container { > .container {
>.row { > .row {
.col-xl-4 { .col-xl-4 {
order: 1; order: 1;
} }
@@ -3281,8 +3309,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;
} }
} }
@@ -3324,7 +3352,7 @@ ul.pager {
} }
.basket-summary-address { .basket-summary-address {
>.basket-address-form { > .basket-address-form {
.left { .left {
.addresses { .addresses {
.address { .address {
@@ -3598,7 +3626,6 @@ ul.pager {
} }
.pager { .pager {
.first, .first,
.last { .last {
display: none; display: none;
@@ -4171,7 +4198,8 @@ ul.pager {
margin-bottom: 30px; margin-bottom: 30px;
} }
.content {} .content {
}
} }
} }
@@ -5157,7 +5185,6 @@ ul.pager {
ul { ul {
li { li {
a, a,
.menu-trigger { .menu-trigger {
text-transform: none; text-transform: none;
@@ -5359,7 +5386,8 @@ ul.pager {
li { li {
@include respond-above(md) { @include respond-above(md) {
width: calc(100% / 4); // width: calc(100% / 4);
width: 100%;
} }
a { a {
@@ -5522,7 +5550,6 @@ ul.pager {
.products-related { .products-related {
.owl-carousel { .owl-carousel {
.owl-nav { .owl-nav {
.owl-prev, .owl-prev,
.owl-next { .owl-next {
span { span {
@@ -5657,7 +5684,6 @@ ul.pager {
border-radius: 10px; border-radius: 10px;
.jconfirm-buttons { .jconfirm-buttons {
.btn.btn-blue, .btn.btn-blue,
.btn.btn-orange { .btn.btn-orange {
background-color: $cRed !important; background-color: $cRed !important;
@@ -5684,7 +5710,6 @@ ul.pager {
#basket { #basket {
.basket-product { .basket-product {
.buttons { .buttons {
.int-format.form-control:focus, .int-format.form-control:focus,
.int-format.form-control:active { .int-format.form-control:active {
border: 2px solid #000; border: 2px solid #000;
@@ -5695,7 +5720,8 @@ ul.pager {
} }
.row { .row {
.col-12 {} .col-12 {
}
} }
} }
@@ -5706,7 +5732,6 @@ ul.pager {
#basket { #basket {
.basket-bottom { .basket-bottom {
.basket-message { .basket-message {
.form-control:focus, .form-control:focus,
.form-control:active { .form-control:active {
border: 2px solid #000; border: 2px solid #000;
@@ -6129,7 +6154,7 @@ ul.pager {
} }
.row { .row {
>div { > div {
&:hover { &:hover {
img { img {
animation-name: buzz-out-on-hover; animation-name: buzz-out-on-hover;
@@ -6270,7 +6295,6 @@ ul.pager {
} }
.swiper { .swiper {
.swiper-button-prev, .swiper-button-prev,
.swiper-button-next { .swiper-button-next {
width: 40px; width: 40px;

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');
}); });
} }
}); });