Skip to content

Commit

Permalink
Merge pull request Dogfalo#32 from nekonenene/revert_breaking_sidenav…
Browse files Browse the repository at this point in the history
…_change
  • Loading branch information
DanielRuf authored Sep 24, 2020
2 parents 733cf40 + 1fe96ba commit 7bf14e0
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions sass/components/_sidenav.scss
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,7 @@
&.active { background-color: rgba(0,0,0,.05); }
}

// Style non btn anchors
li > a:not(.btn):not(.btn-large):not(.btn-flat):not(.btn-floating) {
&:hover { background-color: rgba(0,0,0,.05);}

li > a {
color: $sidenav-font-color;
display: block;
font-size: $sidenav-font-size;
Expand All @@ -50,6 +47,21 @@
line-height: $sidenav-line-height;
padding: 0 ($sidenav-padding * 2);

&:hover { background-color: rgba(0,0,0,.05);}

&.btn, &.btn-large, &.btn-flat, &.btn-floating {
margin: 10px 15px;
}

&.btn,
&.btn-large,
&.btn-floating { color: $button-raised-color; }
&.btn-flat { color: $button-flat-color; }

&.btn:hover,
&.btn-large:hover { background-color: lighten($button-raised-background, 5%); }
&.btn-floating:hover { background-color: $button-raised-background; }

& > i,
& > [class^="mdi-"], li > a > [class*="mdi-"],
& > i.material-icons {
Expand All @@ -62,10 +74,6 @@
}
}

// Style btn anchors
li > .btn, li > .btn-large, li > .btn-flat, li > .btn-floating {
margin: 10px ($sidenav-padding * 2);
}

.divider {
margin: ($sidenav-padding / 2) 0 0 0;
Expand Down

0 comments on commit 7bf14e0

Please sign in to comment.