Skip to content

Commit

Permalink
Make dropdown nav menus display on hover.
Browse files Browse the repository at this point in the history
  • Loading branch information
jerivas committed Oct 19, 2013
1 parent 323660d commit da1ded9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
9 changes: 9 additions & 0 deletions mezzanine/core/static/css/mezzanine.css
Original file line number Diff line number Diff line change
Expand Up @@ -288,3 +288,12 @@ img.pull-left {
.profile-image {
margin-bottom: 20px;
}
/*========================================
RESPONSIVE TWEAKS
==========================================*/
/* Display dropdowns on hover only in desktops (md and lg classes) */
@media (min-width: 768px) {
.navbar-nav > li.dropdown:hover > ul.dropdown-menu {
display: block;
}
}
3 changes: 1 addition & 2 deletions mezzanine/pages/templates/pages/menus/dropdown.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
id="dropdown-menu-{{ page.html_id }}">
<a href="{{ page.get_absolute_url }}"
{% if page.has_children_in_menu %}
class="dropdown-toggle" data-toggle="dropdown"
class="dropdown-toggle disabled" data-toggle="dropdown"
{% endif %}>
{{ page.title }}
{% if page.has_children_in_menu %}<b class="caret"></b>{% endif %}
Expand All @@ -25,7 +25,6 @@
</li>
{% endif %}
{% endfor %}
<li class="divider-vertical"></li>
</ul>
{% endif %}

Expand Down

0 comments on commit da1ded9

Please sign in to comment.