Add active menu item indication
authorJo-Philipp Wich <jo@mein.io>
Sun, 3 Apr 2016 22:39:26 +0000 (00:39 +0200)
committerJo-Philipp Wich <jo@mein.io>
Sun, 3 Apr 2016 22:39:26 +0000 (00:39 +0200)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
css/lede.css
docs/menu.inc
pages/menu.inc

index 81223db7243f917b96123159de2881b0844b0251..8ff25b565d1790c6b64a4a5a6d5f746ed2a47b65 100644 (file)
@@ -61,7 +61,8 @@ h1 {
 }
 
 .menu ol li p a:hover,
-.menu ol li p a:active {
+.menu ol li p a:active,
+.menu ol li p a.active {
        background: #527bbd;
        color: #fff;
 }
index 44766ede850b850ec700764aaf710578b33855b6..2162b7034366891369d7bd37802363e8a479591d 100644 (file)
@@ -1,5 +1,6 @@
 [role="menu"]
-. link:index.html[Index]
-. link:uci.html[Configuration]
-. link:ubus.html[uBus]
-. link:procd.html[Procd]
+. link:../index.html[← Home]
+. pass:attributes[<a href="index.html" class="{docname@index:active}">Index</a>]
+. pass:attributes[<a href="uci.html" class="{docname@uci:active}">Configuration</a>]
+. pass:attributes[<a href="ubus.html" class="{docname@ubus:active}">uBus</a>]
+. pass:attributes[<a href="procd.html" class="{docname@procd:active}">Procd</a>]
index 1794e1208c33b07e3b1766bdd60052114d1ea2e6..c9562a16ff0c5a98c53c367a6f3d70350eddfae0 100644 (file)
@@ -1,8 +1,8 @@
 [role="menu"]
-. link:index.html[About]
-. link:communication.html[Communication]
-. link:rules.html[Rules]
-. link:source.html[Source]
-. link:todo.html[Todo]
-. link:meetings.html[Meetings]
-. link:docs/index.html[Documentation]
+. pass:attributes[<a href="index.html" class="{docname@index:active}">About</a>]
+. pass:attributes[<a href="communication.html" class="{docname@communication:active}">Communication</a>]
+. pass:attributes[<a href="rules.html" class="{docname@rules:active}">Rules</a>]
+. pass:attributes[<a href="source.html" class="{docname@source:active}">Source</a>]
+. pass:attributes[<a href="todo.html" class="{docname@todo:active}">Todo</a>]
+. pass:attributes[<a href="meetings.html" class="{docname@meetings:active}">Meetings</a>]
+. pass:attributes[<a href="docs/index.html">Documentation</a>]