Layouts

Overflow

Utilities for sets how to handle content that's too big for it's container.


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
overflow-autooverflow: auto
overflow-hiddenoverflow: hidden
overflow-visibleoverflow: visible
overflow-scrolloverflow: scroll
classcss
overflow-x-autooverflow-x: auto
overflow-y-autooverflow-y: auto
overflow-x-hiddenoverflow-x: hidden
overflow-y-hiddenoverflow-y: hidden
overflow-x-visibleoverflow-x: visible
overflow-y-visibleoverflow-y: visible
overflow-x-scrolloverflow-x: scroll
overflow-y-scrolloverflow-y: scroll
classcss
scrolling-touch-webkit-overflow-scrolling: touch
scrolling-auto-webkit-overflow-scrolling: auto

Usage

<div class="width-64 height-64">
<img class="width-32 height-32 ... bg-tint-granite-5 overflow-hidden" src="...">
</div>
HTML
.dummy-parent {
@extend
.width-64,
.height-64;
}
.dummy-image {
@extend
.width-32,
.height-32,
.bg-tint-granite-5,
.overflow-hidden;
}
SCSS

Use (expand) variant to apply overflow to all child elements.

<div class="(expand)overflow-hidden">
<div>...</div>
<div>...</div>
<div>...</div>
</div>
HTML
.dummy-parent {
@extend
.(expand)overflow-hidden;
}
SCSS