Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Commit

Permalink
fix(sidenav): always leave >=56px of room, no matter the screensize
Browse files Browse the repository at this point in the history
Closes #346
  • Loading branch information
ajoslin committed Oct 2, 2014
1 parent 6d0ca8f commit 13a2667
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/components/sidenav/_sidenav.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
material-sidenav {
position: absolute;

width: 304px;
width: $sidenav-default-width;
bottom: 0;

background-color: white;
Expand Down Expand Up @@ -56,3 +56,9 @@ material-sidenav {
}
}
}

@media (max-width: $sidenav-default-width + 2 * $sidenav-min-room) {
material-sidenav {
max-width: 75%;
}
}
2 changes: 2 additions & 0 deletions src/core/style/theme/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ $toolbar-indent-margin: 64px;
// Side nav variables

$sidenav-shadow: 0px 0px 5px rgba(0,0,0,0.4);
$sidenav-default-width: 304px;
$sidenav-min-room: 56px;

// Whiteframes

Expand Down

0 comments on commit 13a2667

Please sign in to comment.