Skip to content

Commit 6e8061e

Browse files
Mobile Menu Fixed
1 parent 16e3f29 commit 6e8061e

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

astroid/astroid-template-zero/js/vendor/jquery.astroidmobilemenu.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,11 @@
2424
_indicatorBackItem.append(_indicatorBack);
2525

2626
// Add Button For Toggle Sub Menu
27-
$(this).children('a').after(_indicator);
27+
if ($(this).children('a').length) {
28+
$(this).children('a').after(_indicator);
29+
}else{
30+
$(this).children('span').after(_indicator);
31+
}
2832
// For Sub menu Open
2933
_indicator.bind('click', function () {
3034
$(this).next('.dropdown-menus').toggleClass('menu_open');

astroid/astroid-template-zero/scss/astroid/_mobilemenu.scss

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,16 @@ $burger-layer-width: 30px !default;
4343
color: $black;
4444
padding: 15px 15px;
4545
}
46+
.menu-item span.separator,.menu-item span.nav-header {
47+
cursor: pointer;
48+
outline: 0;
49+
width: 80%;
50+
text-decoration: none;
51+
vertical-align: middle;
52+
display: table-cell;
53+
color: $black;
54+
padding: 15px 15px;
55+
}
4656
.menu-item .menu-indicator {
4757
width: 20%;
4858
text-align: center;
@@ -54,7 +64,7 @@ $burger-layer-width: 30px !default;
5464
.dropdown-menus {
5565
position: fixed;
5666
left: -100%;
57-
top: 60px;
67+
top: 30px;
5868
width: 100%;
5969
height: 100vh;
6070
transition: all 0.5s;

0 commit comments

Comments
 (0)