BrutCSS Reference Documentation

Flex Classes

Flexbox utilities. These should allow most Flex layouts without having to write CSS.

See Also

Flex General

General flex-establishing classes.

.flex

.flex {
  display: flex;
}

.inline-flex

.inline-flex {
  display: inline-flex;
}

.flex-none

.flex-none {
  flex: none;
}

.flex-column

.flex-column {
  flex-direction: column;
}

.flex-row

.flex-row {
  flex-direction: row;
}

.flex-wrap

.flex-wrap {
  flex-wrap: wrap;
}

.flex-nowrap

.flex-nowrap {
  flex-wrap: nowrap;
}

Item Alignment

Item alignment, most useful with flexbox

.items-start

.items-start {
  align-items: flex-start;
}

.items-end

.items-end {
  align-items: flex-end;
}

.items-center

.items-center {
  align-items: center;
}

.items-baseline

.items-baseline {
  align-items: baseline;
}

.items-stretch

.items-stretch {
  align-items: stretch;
}

Self Aligment

Self alignment, most useful with flexbox

.self-start

.self-start {
  align-self: flex-start;
}

.self-end

.self-end {
  align-self: flex-end;
}

.self-center

.self-center {
  align-self: center;
}

.self-baseline

.self-baseline {
  align-self: baseline;
}

.self-stretch

.self-stretch {
  align-self: stretch;
}

Justify Content

Justify content, most useful with flexbox

.justify-start

.justify-start {
  justify-content: start;
}

.justify-end

.justify-end {
  justify-content: end;
}

.justify-center

.justify-center {
  justify-content: center;
}

.justify-between

.justify-between {
  justify-content: space-between;
}

.justify-around

.justify-around {
  justify-content: space-around;
}

.justify-stretch

.justify-stretch {
  justify-content: stretch;
}

Align Content

Align content, most useful with flexbox

.content-start

.content-start {
  align-content: start;
}

.content-end

.content-end {
  align-content: end;
}

.content-center

.content-center {
  align-content: center;
}

.content-between

.content-between {
  align-content: space-between;
}

.content-around

.content-around {
  align-content: space-around;
}

.content-stretch

.content-stretch {
  align-content: stretch;
}

Flex Grow

Flex grow, using a six-step scale.

.flex-grow-0

.flex-grow-0 {
  flex-grow: 0;
}

.flex-grow-1

.flex-grow-1 {
  flex-grow: 1;
}

.flex-grow-2

.flex-grow-2 {
  flex-grow: 2;
}

.flex-grow-3

.flex-grow-3 {
  flex-grow: 3;
}

.flex-grow-4

.flex-grow-4 {
  flex-grow: 4;
}

.flex-grow-5

.flex-grow-5 {
  flex-grow: 5;
}

Flex Grow

Flex shrink, using a six-step scale.

.flex-shrink-0

.flex-shrink-0 {
  flex-shrink: 0;
}

.flex-shrink-1

.flex-shrink-1 {
  flex-shrink: 1;
}

.flex-shrink-2

.flex-shrink-2 {
  flex-shrink: 2;
}

.flex-shrink-3

.flex-shrink-3 {
  flex-shrink: 3;
}

.flex-shrink-4

.flex-shrink-4 {
  flex-shrink: 4;
}

.flex-shrink-5

.flex-shrink-5 {
  flex-shrink: 5;
}

Flex Basis

Flex basis.

.flex-basis-0

.flex-basis-0 {
  flex-basis: 0;
}

.flex-basis-auto

.flex-basis-auto {
  flex-basis: auto;
}

.flex-basis-max

.flex-basis-max {
  flex-basis: max-content;
}

.flex-basis-min

.flex-basis-min {
  flex-basis: min-content;
}

.flex-basis-fit

.flex-basis-fit {
  flex-basis: fit-content;
}