Created
January 12, 2016 18:35
-
-
Save brianpattison/b0e63b9fe14b69a14fb4 to your computer and use it in GitHub Desktop.
Center children mixin
This file contains 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
// Centers child elements horizontally and vertically without needing | |
// to set the height and width of the child elements using flexbox. | |
@mixin center-children { | |
@include align-content(center); | |
@include align-items(center); | |
@include display(flex); | |
@include flex-direction(column); | |
@include justify-content(center); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment