Flex Shrink
Controls the shrinkage of the flex items.
| Class | Style |
|---|---|
fs-0 | flex-shrink: 0; |
fs-1 | flex-shrink: 1; |
fs-2 | flex-shrink: 2; |
fs-3 | flex-shrink: 3; |
fs-4 | flex-shrink: 4; |
fs-5 | flex-shrink: 5; |
fs-6 | flex-shrink: 6; |
fs-7 | flex-shrink: 7; |
fs-8 | flex-shrink: 8; |
The items will proportionally shrink to fit the container when there is not enough space.
<div class="d-f g-4 rad-1 tc-white" id="area"> <div class="ai-c bg-indigo-8 d-f d-14 f-none jc-c p-4 rad-1 tc-indigo-5">A</div> <div class="ai-c bg-indigo d-f fs-1 h-14 jc-c p-4 rad-1 w-64 tc-white">B</div> <div class="ai-c bg-indigo-8 d-f d-14 f-none jc-c p-4 rad-1 tc-indigo-5">C</div></div>Using utility variants
Learn how to override existing utilities based on the user's screen size or other factors, such as hover states.
Using media queries
You can combine responsive breakpoints like sm:fs-*, md:fs-*, lg:fs-*, and xxl:fs-* to allow targeting specific utilities in different viewports.
Using hover states
Alternatively, you can apply :hover by using h:fs-* utility to override elements and change their values when hovering over them.