Skip to content

Commit 7bf14e0

Browse files
authored
Merge pull request #32 from nekonenene/revert_breaking_sidenav_change
2 parents 733cf40 + 1fe96ba commit 7bf14e0

File tree

1 file changed

+16
-8
lines changed

1 file changed

+16
-8
lines changed

sass/components/_sidenav.scss

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,7 @@
3838
&.active { background-color: rgba(0,0,0,.05); }
3939
}
4040

41-
// Style non btn anchors
42-
li > a:not(.btn):not(.btn-large):not(.btn-flat):not(.btn-floating) {
43-
&:hover { background-color: rgba(0,0,0,.05);}
44-
41+
li > a {
4542
color: $sidenav-font-color;
4643
display: block;
4744
font-size: $sidenav-font-size;
@@ -50,6 +47,21 @@
5047
line-height: $sidenav-line-height;
5148
padding: 0 ($sidenav-padding * 2);
5249

50+
&:hover { background-color: rgba(0,0,0,.05);}
51+
52+
&.btn, &.btn-large, &.btn-flat, &.btn-floating {
53+
margin: 10px 15px;
54+
}
55+
56+
&.btn,
57+
&.btn-large,
58+
&.btn-floating { color: $button-raised-color; }
59+
&.btn-flat { color: $button-flat-color; }
60+
61+
&.btn:hover,
62+
&.btn-large:hover { background-color: lighten($button-raised-background, 5%); }
63+
&.btn-floating:hover { background-color: $button-raised-background; }
64+
5365
& > i,
5466
& > [class^="mdi-"], li > a > [class*="mdi-"],
5567
& > i.material-icons {
@@ -62,10 +74,6 @@
6274
}
6375
}
6476

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

7078
.divider {
7179
margin: ($sidenav-padding / 2) 0 0 0;

0 commit comments

Comments
 (0)