Skip to content

Commit

Permalink
Remove overwritten padding for active nav links
Browse files Browse the repository at this point in the history
Currently clicking a nav item causes its height to change, this is especially noticeable in the mobile-style layout with the app drawer, used when the browser width is very small, but also affects other layouts. It causes useability issues, making links hard to click, occasionally causing the wrong link to be clicked. This fixes that.
  • Loading branch information
Knils authored Mar 23, 2021
1 parent 7c8b95e commit 1a0b7d6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions docs/css/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@
/*background behind current selection in left bar*/
[data-md-color-primary=indigo] .md-nav__link--active, [data-md-color-primary=indigo] .md-nav__link:active {
color: black;
background-color: #d3d3d3;
padding: 2px;
background-color: #d3d3d3;
}

/*Coloring of top bar*/
Expand Down

0 comments on commit 1a0b7d6

Please sign in to comment.