diff --git a/docs/source/styles/flexbox.blade.md b/docs/source/styles/flexbox.blade.md index 6e342c7ea..3a1845e45 100644 --- a/docs/source/styles/flexbox.blade.md +++ b/docs/source/styles/flexbox.blade.md @@ -13,7 +13,9 @@ title: "Flexbox" Tailwind provides a comprehensive set of Flexbox utilities out of the box to make it easy for you to implement complex layouts without having to write any new CSS. -## Flex Containers +## Display + +### Flex Use `.flex` to create a block-level flex container: @@ -25,6 +27,8 @@ Use `.flex` to create a block-level flex container: @endcomponent +### Inline flex + Use `.inline-flex` to create an inline flex container: @component('_partials.code-sample') @@ -35,7 +39,11 @@ Use `.inline-flex` to create an inline flex container: @endcomponent -### Flex Direction +--- + +## Flex Direction + +### Row Use `.flex-row` to position flex items horizontally in the same direction as text *(this is also the default behavior)*: @@ -47,6 +55,7 @@ Use `.flex-row` to position flex items horizontally in the same direction as tex @endcomponent +### Row reversed Use `.flex-row-reverse` to position flex items horizontally in the opposite direction: @@ -58,6 +67,7 @@ Use `.flex-row-reverse` to position flex items horizontally in the opposite dire @endcomponent +### Column Use `.flex-col` to position flex items vertically: @@ -69,6 +79,7 @@ Use `.flex-col` to position flex items vertically: @endcomponent +### Column reversed Use `.flex-col-reverse` to position flex items vertically in the opposite direction: @@ -80,7 +91,11 @@ Use `.flex-col-reverse` to position flex items vertically in the opposite direct @endcomponent -### Flex Wrap +--- + +## Flex Wrapping + +### No wrapping Use `.flex-nowrap` to prevent flex items from wrapping *(this is also the default behavior)*: @@ -98,6 +113,8 @@ Use `.flex-nowrap` to prevent flex items from wrapping *(this is also the defaul @endcomponent +### Wrap normally + Use `.flex-wrap` to allow flex items to wrap: @component('_partials.code-sample') @@ -114,6 +131,8 @@ Use `.flex-wrap` to allow flex items to wrap: @endcomponent +### Wrap reversed + Use `.flex-wrap-reverse` to wrap flex items in the reverse direction: @component('_partials.code-sample') @@ -130,7 +149,11 @@ Use `.flex-wrap-reverse` to wrap flex items in the reverse direction: @endcomponent -### Justify Content +--- + +## Justify Content + +### Start Use `.justify-start` to justify items against the start of the flex container's main axis *(this is also the default behavior)*: @@ -142,6 +165,8 @@ Use `.justify-start` to justify items against the start of the flex container's @endcomponent +### End + Use `.justify-end` to justify items against the end of the flex container's main axis: @component('_partials.code-sample') @@ -152,6 +177,8 @@ Use `.justify-end` to justify items against the end of the flex container's main @endcomponent +### Center + Use `.justify-center` to justify items along the center of the flex container's main axis: @component('_partials.code-sample') @@ -162,6 +189,8 @@ Use `.justify-center` to justify items along the center of the flex container's @endcomponent +### Space between + Use `.justify-between` to justify items along the flex container's main axis such that there is an equal amount of space between each item: @component('_partials.code-sample') @@ -172,6 +201,8 @@ Use `.justify-between` to justify items along the flex container's main axis suc @endcomponent +### Space around + Use `.justify-around` to justify items along the flex container's main axis such that there is an equal amount of space around each item: @component('_partials.code-sample') @@ -182,7 +213,11 @@ Use `.justify-around` to justify items along the flex container's main axis such @endcomponent -### Align Items +--- + +## Align Items + +### Stretch Use `.items-stretch` to stretch items to fill the flex container's cross axis *(this is also the default behavior)*: @@ -194,6 +229,8 @@ Use `.items-stretch` to stretch items to fill the flex container's cross axis *( @endcomponent +### Start + Use `.items-start` to align items to the start of the flex container's cross axis: @component('_partials.code-sample') @@ -204,6 +241,8 @@ Use `.items-start` to align items to the start of the flex container's cross axi @endcomponent +### End + Use `.items-end` to align items to the end of the flex container's cross axis: @component('_partials.code-sample') @@ -214,6 +253,8 @@ Use `.items-end` to align items to the end of the flex container's cross axis: @endcomponent +### Center + Use `.items-center` to align items along the center of the flex container's cross axis: @component('_partials.code-sample') @@ -224,6 +265,8 @@ Use `.items-center` to align items along the center of the flex container's cros @endcomponent +### Baseline + Use `.items-baseline` to align items along the flex container's cross axis such that all of their baselines align: @component('_partials.code-sample') @@ -234,7 +277,11 @@ Use `.items-baseline` to align items along the flex container's cross axis such @endcomponent -### Align Content +--- + +## Align Content + +### Start Use `.content-start` to pack lines in a flex container against the start of the main axis *(this is also the default behavior)*: @@ -258,6 +305,8 @@ Use `.content-start` to pack lines in a flex container against the start of the @endcomponent +### Center + Use `.content-center` to pack lines in a flex container in the center of the main axis: @component('_partials.code-sample') @@ -280,6 +329,8 @@ Use `.content-center` to pack lines in a flex container in the center of the mai @endcomponent +### End + Use `.content-end` to pack lines in a flex container against the end of the main axis: @component('_partials.code-sample') @@ -302,6 +353,8 @@ Use `.content-end` to pack lines in a flex container against the end of the main @endcomponent +### Space between + Use `.content-between` to distribute lines in a flex container such that there is an equal amount of space between each line: @component('_partials.code-sample') @@ -324,6 +377,8 @@ Use `.content-between` to distribute lines in a flex container such that there i @endcomponent +### Space around + Use `.content-around` to distribute lines in a flex container such that there is an equal amount of space around each line: @component('_partials.code-sample') @@ -346,7 +401,11 @@ Use `.content-around` to distribute lines in a flex container such that there is @endcomponent -## Flex Items +--- + +## Flex + +### 1 Use `.flex-1` to allow a flex item to grow and shrink as needed, ignoring it's initial size: @@ -391,6 +450,8 @@ Use `.flex-1` to allow a flex item to grow and shrink as needed, ignoring it's i @endslot @endcomponent +### Auto + Use `.flex-auto` to allow a flex item to grow and shrink, taking into account it's initial size: @component('_partials.code-sample') @@ -434,6 +495,26 @@ Use `.flex-auto` to allow a flex item to grow and shrink, taking into account it @endslot @endcomponent +### None + +Use `.flex-none` to prevent a flex item from growing or shrinking: + +@component('_partials.code-sample') +