Adds navigation highlighting of current view

All h1 and h2 elements, that are in the current viewport
will trigger adding an .active class to the corresponding
entry in the navigation.
This commit is contained in:
Peter Dietrich
2012-07-19 14:12:34 +02:00
parent 468f6e1571
commit 15610a4082
3 changed files with 32 additions and 0 deletions

View File

@@ -30,6 +30,9 @@
text-decoration: none;
}
}
.site-navigation a.active{
background-color: #ff9;
}
.site-navigation ul ul{
.mls;
.pth;