Skip to content

Instantly share code, notes, and snippets.

@jupegarnica
Last active December 22, 2020 08:08
Show Gist options
  • Save jupegarnica/f0c2f5ba502d4490f86ff78e0c5012b4 to your computer and use it in GitHub Desktop.
Save jupegarnica/f0c2f5ba502d4490f86ff78e0c5012b4 to your computer and use it in GitHub Desktop.
layout-wrap.scss
.parent {
display: flex;
flex-wrap: wrap;
}
.child {
// flex: none | [ <'flex-grow'> <'flex-shrink'>? || <'flex-basis'> ]
// If we don't want the items to stretch:
flex: 0 1 300px;
// If we do want the items to stretch:
flex: 1 1 300px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment