π Height
The height
utility allows you to control the height of an element using predefined values.
It supports both static and responsive variants generated through mixins and loops.
π§± Naming convention
Section titled βπ§± Naming conventionβ.u--height-{value}.u--height-{breakpoint}-{value}
β When to use
Section titled ββ When to useβUse this utility when:
- You need to force a specific height on a block or component
- You want to apply height values responsively
π§ͺ Responsive usage
Section titled βπ§ͺ Responsive usageβThis utility supports responsive variants, using breakpoint prefixes like:
desktop
, laptop
, tabletl
, tabletm
, tablets
, mobile
.
β How to use
Section titled ββ How to useβYou can apply them directly in HTML:
<div class="u--height-100 u--height-tabletl-auto"> <!-- Content --></div>
Or extend them in SCSS if you have a custom class:
.c--card-a { @extend .u--height-100; @extend .u--height-tabletl-auto;}