1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Merge pull request #6459 from ostezer/issue-5036-main-nav-top-level-click

Issue #5036 -> Click on nav bar goes to top level doc
This commit is contained in:
Sven Dowideit 2014-06-17 09:08:37 +10:00
commit 95ca361df6
2 changed files with 9 additions and 1 deletions

View file

@ -49,6 +49,12 @@ ol li {
margin: 0px;
padding: 0em;
}
#nav_menu > #docsnav > #main-nav > li > a {
color: #253237;
}
#nav_menu > #docsnav > #main-nav > li.dd_on_hover > a {
color: #5992a3;
}
#nav_menu > #docsnav > #main-nav > li.dd_on_hover {
background: #b1d5df;
color: #5992a3;

View file

@ -4,7 +4,9 @@
{% for menu in nav %}
{% if menu.title != '**HIDDEN**' %}
<li class="dd_menu pull-left{% if menu.active %} active{% endif %}">
<span>{{ menu.title }}</span>
{% for first_item in menu.children[:1] %}
<a href="{{ first_item.url }}">{{ menu.title }}</a>
{% endfor %}
<ul class="dd_submenu" style="max-height: 75px;">
{% for menu in menu.children %}
<li {% if menu.active %}class="active"{% endif %}>