Created
July 31, 2015 04:34
-
-
Save jaseflow/d95fb0a4e2b5f5d2efae to your computer and use it in GitHub Desktop.
Flex BEM classes
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
.flex { | |
display: flex | |
} | |
.flex--centered { | |
justify-content: center; | |
} | |
.flex--aligned { | |
align-items: center; | |
} | |
.flex--stacked { | |
flex-direction: column; | |
} | |
.flex--spaced { | |
justify-content: space-between; | |
} | |
.flex--guts { | |
justify-content: center; | |
align-items: center; | |
} | |
.flex--top { | |
align-items: flex-start; | |
} | |
.flex--bottom { | |
align-items: flex-end; | |
} | |
.flex--end { | |
justify-content: flex-end; | |
} | |
.flex--wrap { | |
flex-wrap: wrap; | |
} | |
// Child element styles | |
.flex__full { | |
flex: 1; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment