app/assets/stylesheets/materialize/components/_sideNav.scss in materialize-sass-0.95.3.3 vs app/assets/stylesheets/materialize/components/_sideNav.scss in materialize-sass-0.95.3.4
- old
+ new
@@ -1,6 +1,6 @@
-ul.side-nav {
+.side-nav {
position: fixed;
width: 240px;
left: -105%;
top: 0;
margin: 0;
@@ -46,21 +46,21 @@
z-index: 998;
}
// Hidden side-nav for all sizes
-ul.side-nav.fixed {
+.side-nav.fixed {
a {
display: block;
padding: 0 15px;
color: #444;
}
}
// Fixed side-nav shown
-ul.side-nav.fixed {
+.side-nav.fixed {
left: 0;
position: fixed;
// Right Align
&.right-aligned {
@@ -69,34 +69,34 @@
}
}
// Fixed sideNav hide on smaller
@media #{$medium-and-down} {
- ul.side-nav.fixed {
+ .side-nav.fixed {
left: -105%;
&.right-aligned {
right: -105%;
left: auto;
}
}
}
-ul.side-nav .collapsible-body li.active,
-ul.side-nav.fixed .collapsible-body li.active {
+.side-nav .collapsible-body li.active,
+.side-nav.fixed .collapsible-body li.active {
background-color: $primary-color;
a {
color: #fff;
}
}
#sidenav-overlay {
position: fixed;
- top: 0px;
- left: 0px;
- right: 0px;
+ top: 0;
+ left: 0;
+ right: 0;
height: 120vh;
background-color: rgba(0,0,0,.5);
z-index: 997;