Last active
July 15, 2020 15:56
-
-
Save yoSteve/3f701ead4da6f4a2f69cb01bc189a453 to your computer and use it in GitHub Desktop.
A Sassy Mixin for applying CSS Flexbox. Centres the content by default.
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
@mixin flex($direction: row, $justify: center, $align: center) { | |
display: flex; | |
flex-direction: $direction; | |
justify-content: $justify; | |
align-items: $align; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment