Flexbox

Flex

Utilities for controls how flex items grow, shrink and basis.


Variant

Active Checked Child-Selection Dark Mode Disabled Expand First-Last-Selection First-Letter Focus Focus-Visible Focus-Within Fullscreen Group-Focus Group-Hover Hover Landscape Light Mode Portrait Reduce-Motion Responsive Selection-Hover Visited

API

classcss
flex-initialflex: 0 1 auto
flex-zeroflex: 1 1 0%
flex-fullflex: 1 100%
flex-autoflex: 1 1 auto
flex-noneflex: none
classcss
flex-1flex: 1
flex-2flex: 2
flex-3flex: 3
flex-4flex: 4
flex-5flex: 5
flex-6flex: 6
flex-7flex: 7
flex-8flex: 8
flex-9flex: 9
flex-10flex: 10
flex-11flex: 11
flex-12flex: 12

Usage

1
2
3
flex: OFF
1
2
3
flex: OFF
<div class="flex">
<div> ... </div>
<div> ... </div>
<div> ... </div>
</div>
HTML
.dummy-parent {
@extend
.flex;
}
SCSS