Skip to content

Commit

Permalink
Add support for current menu item in navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
erikjoling committed Apr 18, 2024
1 parent a6d9a3b commit e2010a7
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,16 @@ h6.has-background {
* Navigation block
*/

.wp-block-navigation .wp-block-navigation-item > a {
text-underline-offset: 3px;
text-decoration-thickness: 2px;
}

.wp-block-navigation .current-menu-item > a {
text-decoration: underline;
text-decoration-thickness: 2px;
}

/* Submenu */
.wp-block-navigation .wp-block-navigation__submenu-container {
border: 0px !important;
Expand Down

0 comments on commit e2010a7

Please sign in to comment.