mirror of
https://github.com/DMOJ/online-judge.git
synced 2024-11-25 16:32:37 +08:00
Introduce navbar arrow
This commit is contained in:
parent
7d80dbcabe
commit
93faf4f41f
@ -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 () {
|
||||
|
@ -254,9 +254,11 @@ nav {
|
||||
|
||||
ul {
|
||||
left: 8em;
|
||||
top: auto;
|
||||
bottom: auto;
|
||||
margin-top: -36px;
|
||||
top: 0px;
|
||||
|
||||
&.show-list {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
|
||||
&.home-nav-element {
|
||||
|
@ -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">></div>
|
||||
{% endif %}
|
||||
</a>
|
||||
{% with children=node.get_children() %}
|
||||
|
Loading…
Reference in New Issue
Block a user