This commit is contained in:
Roman Pyrih
2024-08-27 16:21:03 +02:00
parent a4c4b7f3c3
commit acd2dbf32c
4 changed files with 41 additions and 4 deletions

View File

@@ -231,4 +231,23 @@ jQuery(function($) {
});
scrollerRows.css('height', scrollerRowsHeight);
}
})
jQuery(function($) {
$(document).on('click', '.elementor-menu-toggle', function(e) {
if($(this).hasClass('elementor-active')) {
$('header').addClass('active');
$dropdown_right = $('.elementor-menu-toggle').offset().left - $(window).width() + $(this).outerWidth()
$('.elementor-nav-menu--dropdown').css({
'right': $dropdown_right
})
} else {
$('header').removeClass('active');
('.elementor-nav-menu--dropdown').css({
'right': 0
})
}
});
})

View File

@@ -818,6 +818,15 @@ body.elementor-page > div[data-elementor-type=single-page] {
z-index: 999;
}
header {
background: #fff;
}
header.active {
position: sticky;
top: 0;
z-index: 999999;
}
.addon-btn-title {
margin: 0;
display: flex;
@@ -912,8 +921,7 @@ body.elementor-page > div[data-elementor-type=single-page] {
right: 0px;
left: auto;
top: 64px;
width: -moz-max-content;
width: max-content;
width: 100vw;
z-index: 1;
}
}

File diff suppressed because one or more lines are too long

View File

@@ -989,6 +989,16 @@ body.elementor-page {
}
}
header {
background: #fff;
&.active {
position: sticky;
top: 0;
z-index: 999999;
}
}
.addon-btn-title {
margin: 0;
display: flex;
@@ -1126,7 +1136,7 @@ body.elementor-page {
right: 0px;
left: auto;
top: 64px;
width: max-content;
width: 100vw;
z-index: 1;
@media (max-width: 768px) {