Skip to content

Instantly share code, notes, and snippets.

@jaseflow
Created July 31, 2015 04:34
Show Gist options
  • Save jaseflow/d95fb0a4e2b5f5d2efae to your computer and use it in GitHub Desktop.
Save jaseflow/d95fb0a4e2b5f5d2efae to your computer and use it in GitHub Desktop.
Flex BEM classes
.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