Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
makura-2025
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Raj Shah
makura-2025
Commits
ce00d0c0
Commit
ce00d0c0
authored
Feb 06, 2025
by
jhukal9@gmail.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated the menu issue in mobile view
parent
e480cbe5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
5 deletions
+25
-5
style.css
assets/css/style.css
+0
-0
style.js
assets/js/style.js
+13
-1
_header.scss
dev/sass/base/_header.scss
+12
-4
No files found.
assets/css/style.css
View file @
ce00d0c0
This source diff could not be displayed because it is too large. You can
view the blob
instead.
assets/js/style.js
View file @
ce00d0c0
...
...
@@ -375,13 +375,24 @@
selector
:
"[data-toggle=tooltip]"
,
placement
:
"bottom"
,
});
$
(
".menu-item-has-children a"
).
on
(
"click"
,
function
(
e
)
{
e
.
preventDefault
();
$
(
this
).
parent
().
toggleClass
(
"show"
);
});
});
$
(
document
).
on
(
"click"
,
function
(
e
)
{
if
(
!
$
(
e
.
target
).
closest
(
".menu-item-has-children"
).
length
)
{
$
(
".menu-item-has-children"
).
removeClass
(
"show"
);
}
});
$
(
".toggler-icon"
).
click
(
function
()
{
$
(
".navbar-nav"
).
addClass
(
"show"
);
});
$
(
".navbar-nav li"
).
click
(
function
()
{
$
(
".navbar-nav"
).
removeClass
(
"show"
);
if
(
!
$
(
this
).
hasClass
(
"menu-item-has-children"
))
{
$
(
".navbar-nav"
).
removeClass
(
"show"
);
}
});
$
(
".side-menu-close"
).
click
(
function
()
{
...
...
@@ -424,6 +435,7 @@
var
lastScrollTop
=
0
;
$
(
window
).
scroll
(
function
(
event
)
{
$
(
".menu-item-has-children"
).
removeClass
(
"show"
);
var
thisValue
=
$
(
this
).
scrollTop
();
if
(
thisValue
==
0
)
{
$
(
".navbar"
).
removeClass
(
"sticky-top"
);
...
...
dev/sass/base/_header.scss
View file @
ce00d0c0
...
...
@@ -190,19 +190,25 @@
position
:
absolute
;
top
:
50%
;
right
:
0
;
transform
:
translateY
(
-50%
);
transform
:
translateY
(
-50%
)
rotate
(
90deg
)
;
width
:
10px
;
height
:
7px
;
background
:
url(../img/angle-right.svg)
no-repeat
center
/
contain
;
}
}
&
:hover
{
&
:hover
,
&
.show
{
>
ul
{
opacity
:
1
;
visibility
:
visible
;
transform
:
translateY
(
0
);
}
a
{
&
:
:
before
{
transform
:
translateY
(
-50%
)
rotate
(
-90deg
);
}
}
}
ul
{
...
...
@@ -430,11 +436,12 @@
visibility
:
visible
;
transform
:
translateY
(
0
);
display
:
none
;
padding-left
:
12px
;
li
{
a
{
padding-left
:
12px
;
border-radius
:
12px
;
//
border-radius: 12px;
}
ul
{
padding-left
:
12px
;
...
...
@@ -442,7 +449,8 @@
}
}
&
:hover
{
&
:hover
,
&
.show
{
>
ul
{
display
:
block
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment