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”All classes follow the structure:
.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 variants
Section titled “Responsive variants”This utility supports responsive variants, using breakpoint prefixes like:
desktop, laptop, tabletl, tabletm, tablets, mobile.
How to use
Section titled “How to use”In HTML
<div class="u--height-100 u--height-tabletl-auto"> <!-- Content --></div>In CSS
.c--card-a { @extend .u--height-100; @extend .u--height-tabletl-auto;}Knowledge Check
Test your understanding of this section
Loading questions...