Created
May 2, 2018 13:55
-
-
Save matthewblewitt/ab61851323f457dec0b741e07139f65d to your computer and use it in GitHub Desktop.
Flexbox utilities
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.flex { | |
display: flex; | |
} | |
// Direction | |
.flex-row { | |
flex-direction: row; | |
} | |
.flex-row-reverse { | |
flex-direction: row-reverse; | |
} | |
// Justify content | |
// Layout on the horizontal | |
.justify-content-start { | |
justify-content: start; | |
} | |
.justify-content-end { | |
justify-content: end; | |
} | |
.justify-content-center { | |
justify-content: center; | |
} | |
.justify-content-between { | |
justify-content: between; | |
} | |
.justify-content-center { | |
justify-content: around; | |
} | |
// Alignment | |
// Layout on the vertical | |
.align-items-start { | |
align-items: start; | |
} | |
.align-items-center { | |
align-items: center; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment