handy-flexbox
Version:
Handy flexbox CSS classes, for easier HTML layouts.
83 lines (59 loc) • 909 B
CSS
/* Direction */
.flex-row,
.flex-column {
display: flex;
}
.inline-flex-row,
.inline-flex-column {
display: inline-flex;
}
.flex-row,
.inline-flex-row {
flex-direction: row;
}
.flex-column,
.inline-flex-column {
flex-direction: column;
}
/* Size */
.flex-auto {
flex: auto;
}
.flex-none {
flex: none;
}
.flex-grow {
flex: 1 0 auto;
}
/* Align */
.flex-align-center {
align-items: center;
}
.flex-align-start {
align-items: flex-start;
}
.flex-align-end {
align-items: flex-end;
}
.flex-align-baseline {
align-items: baseline;
}
/* Justify */
.flex-justify-start {
justify-content: flex-start;
}
.flex-justify-end {
justify-content: flex-end;
}
.flex-justify-center {
justify-content: center;
}
.flex-justify-space-between {
justify-content: space-between;
}
.flex-justify-space-around {
justify-content: space-around;
}
.flex-wrap {
flex-wrap: wrap;
}