Skip to content

Instantly share code, notes, and snippets.

@rubensayshi
Created August 26, 2015 15:05
Show Gist options
  • Save rubensayshi/4f1ca58ea9554beff771 to your computer and use it in GitHub Desktop.
Save rubensayshi/4f1ca58ea9554beff771 to your computer and use it in GitHub Desktop.
fill-height-or-more.scss
.fill-height-or-more {
min-height: 100%;
display: flex;
flex-direction: column;
> div {
// these are flex items
// flex: 1; same as:
// flex-grow: 1;
// flex-shrink: 1;
// flex-basis: auto;
// flex: 1 1 auto;
flex: 1;
display: flex;
flex-direction: column;
justify-content: flex-start;
> div {
// also flex items
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment