Created
August 21, 2018 22:34
-
-
Save BruceMcKinnon/373ffed0806e082de3ff09c24f54d687 to your computer and use it in GitHub Desktop.
Flexbox mixins
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-container { | |
display: flex; | |
align-items: center; | |
justify-content: center; | |
} | |
@mixin flex-item-top { | |
align-items: flex-start; | |
align-self: flex-start; | |
} | |
@mixin flex-item-middle { | |
align-items: center; | |
align-self: center; | |
} | |
@mixin flex-item-bottom { | |
align-items: flex-end; | |
align-self: flex-end; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment