Skip to content
This repository has been archived by the owner on Feb 2, 2019. It is now read-only.

Commit

Permalink
fix(examples): scroll shrink container overflow
Browse files Browse the repository at this point in the history
  - also make a bit smaller on mobile so you can scroll past it if you want.
  • Loading branch information
justindujardin committed Jan 1, 2016
1 parent 32384e1 commit 828e78c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
8 changes: 7 additions & 1 deletion examples/components/toolbar/scroll_shrink.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
@import "../../../ng2-material/core/style/variables";
div.scroll-shrink {
height:600px;
height: 600px;
overflow-y: hidden;
@media screen and (max-width: $layout-breakpoint-sm) {
height: 200px;
}
}

4 changes: 3 additions & 1 deletion ng2-material/components/toolbar/toolbar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,9 @@ md-toolbar {
}

~ md-content {
overflow: hidden;
&:not([scroll-shrink]){
overflow: hidden;
}
> md-list {
padding: 0;

Expand Down

0 comments on commit 828e78c

Please sign in to comment.