Introduce navbar arrow

This commit is contained in:
int-y1 2023-01-17 04:35:33 -05:00 committed by Tudor Brindus
parent 7d80dbcabe
commit 93faf4f41f
3 changed files with 8 additions and 7 deletions

View File

@ -125,7 +125,6 @@ $(function () {
$(this).blur().removeClass('hover');
else {
$(this).addClass('hover');
$nav_list.find('li ul').css('left', $('#nav-list').width()).hide();
}
}).hover(function () {
$(this).addClass('hover');
@ -135,7 +134,7 @@ $(function () {
$nav_list.find('li a .nav-expand').click(function (event) {
event.preventDefault();
$(this).parent().siblings('ul').css('display', 'block');
$(this).parent().siblings('ul').toggleClass('show-list');
});
$nav_list.find('li a').each(function () {

View File

@ -254,9 +254,11 @@ nav {
ul {
left: 8em;
top: auto;
bottom: auto;
margin-top: -36px;
top: 0px;
&.show-list {
display: block;
}
}
&.home-nav-element {

View File

@ -185,8 +185,8 @@
<li>
<a href="{{ node.path }}" class="nav-{{ node.key }}{% if node.key in nav_tab %} active{% endif %}">
{{ user_trans(node.label) }}
{% if not node.is_leaf_node %}
<div href="javascript:void(0)" class="nav-expand">></div>
{% if not node.is_leaf_node() %}
<div class="nav-expand">&gt;</div>
{% endif %}
</a>
{% with children=node.get_children() %}