Skip to content
Get ready for the next version of Yumma CSS, which is going to be amazing!

Flex Shrink

Controls the shrinkage of the flex items.

Class Property

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;

Controls how much the flex item should shrink relative to the rest of the items in the flex container when there isn’t enough space.

A
B
C
<div class="ovf-auto p-8 p-r rad-3">
<div class="stripes d-f g-4 rad-1 tc-white">
<div class="ai-c bg-l-indigo-3 d-f dim-14 f-none jc-c p-4 rad-1">A</div>
<div class="ai-c bg-indigo bs-lg d-f fs-1 h-14 jc-c p-4 rad-1 w-64">B</div>
<div class="ai-c bg-l-indigo-3 d-f dim-14 f-none jc-c p-4 rad-1">C</div>
</div>
</div>

Using responsive modifiers

Using responsive breakpoints like sm:fs-*, md:fs-*, lg:fs-*, and xxl:fs-* allows targeting specific utilities in different viewports.

<div class="fs-1 md:fs-2 ..."></div>

Using hover modifiers

Using :hover modifiers such as h:fs-* allows you to override elements and change their values when hovering over them.

<div class="fs-1 h:fs-2 ..."></div>