Skip to content

Instantly share code, notes, and snippets.

@matthewblewitt
Created May 2, 2018 13:55
Show Gist options
  • Save matthewblewitt/ab61851323f457dec0b741e07139f65d to your computer and use it in GitHub Desktop.
Save matthewblewitt/ab61851323f457dec0b741e07139f65d to your computer and use it in GitHub Desktop.
Flexbox utilities
.flex {
display: flex;
}
// Direction
.flex-row {
flex-direction: row;
}
.flex-row-reverse {
flex-direction: row-reverse;
}
// Justify content
// Layout on the horizontal
.justify-content-start {
justify-content: start;
}
.justify-content-end {
justify-content: end;
}
.justify-content-center {
justify-content: center;
}
.justify-content-between {
justify-content: between;
}
.justify-content-center {
justify-content: around;
}
// Alignment
// Layout on the vertical
.align-items-start {
align-items: start;
}
.align-items-center {
align-items: center;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment