mirror of
https://github.com/codeguy/php-the-right-way.git
synced 2025-08-12 16:54:00 +02:00
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:
@@ -30,6 +30,9 @@
|
||||
text-decoration: none;
|
||||
}
|
||||
}
|
||||
.site-navigation a.active{
|
||||
background-color: #ff9;
|
||||
}
|
||||
.site-navigation ul ul{
|
||||
.mls;
|
||||
.pth;
|
||||
|
Reference in New Issue
Block a user