hugo

Unnamed repository; edit this file 'description' to name the repository.

git clone git://git.shimmy1996.com/hugo.git
commit ac82fe32af2d3f9a5ff56a9b7153da958a23c959
parent ef87dffb2f0e9c39523b31000e73d3fdfab43a19
Author: spf13 <steve.francia@gmail.com>
Date:   Thu, 24 Apr 2014 10:34:50 -0600

Making active parent in nav reflect when child is active page in docs

Diffstat:
Mdocs/layouts/chrome/menu.html | 2+-
Mdocs/static/static/css/styles.css | 4++++
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/docs/layouts/chrome/menu.html b/docs/layouts/chrome/menu.html
@@ -16,7 +16,7 @@
       {{ $currentNode := . }}
       {{ range .Site.Menus.main }}
           {{ if .HasChildren }}
-          <li class="dropdown{{if $currentNode.HasMenuCurrent "main" . }} active-child{{end}}">
+          <li class="dropdown{{if $currentNode.HasMenuCurrent "main" . }} active{{end}}">
           <a href="#" class="dropdown-toggle" data-toggle="dropdown">{{.Name}} <b class="caret"></b></a>
             <ul class="dropdown-menu">
             {{ range .Children }}
diff --git a/docs/static/static/css/styles.css b/docs/static/static/css/styles.css
@@ -90,6 +90,10 @@ nav.navbar {
     background-color: rgb(15, 166, 188);
 }
 
+.navbar-inverse .navbar-nav>.active>a, .navbar-inverse .navbar-nav>.active>a:hover, .navbar-inverse .navbar-nav>.active>a:focus { 
+    background-color: rgb(15, 166, 188);
+}
+
 .dropdown-menu > .active > a, .dropdown-menu > .active > a:hover, .dropdown-menu > .active > a:focus {
     color: rgb(255, 255, 255);
     text-decoration: none;