Flexbox

Flex Basis

Utilities for resizing width and height in the proportion of an element.


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
proportion-scale-2scale: 2
proportion-scale-3scale: 3
proportion-scale-4scale: 4
proportion-scale-5scale: 5
proportion-scale-6scale: 6
proportion-scale-7scale: 7
proportion-scale-8scale: 8
proportion-scale-9scale: 9
proportion-scale-10scale: 10

Usage

Proportion scale set to 2, 3 and 4 for width-4 and height-4 utilities.

Scale 2x
Scale 3x
Scale 4x
<div class="proportion-scale-3 ... width-4 height-4">
...
</div>
HTML
.dummy {
@extend
.proportion-scale-3,
.width-4,
.height-4;
}
SCSS