Spacing
Padding
Utilities for controls padding in 0.25rem increments.
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
class | css |
---|---|
padding-px | padding: 1px |
padding-0 | padding: 0 |
padding-1 | padding: 0.25rem |
padding-2 | padding: 0.5rem |
padding-3 | padding: 0.75rem |
padding-4 | padding: 1rem |
padding-5 | padding: 1.25rem |
padding-6 | padding: 1.5rem |
padding-8 | padding: 2rem |
padding-10 | padding: 2.5rem |
padding-12 | padding: 3rem |
padding-16 | padding: 4rem |
padding-20 | padding: 5rem |
padding-24 | padding: 6rem |
padding-32 | padding: 8rem |
padding-40 | padding: 10rem |
padding-48 | padding: 12rem |
padding-56 | padding: 14rem |
padding-64 | padding: 16rem |
padding-72 | padding: 18rem |
padding-80 | padding: 20rem |
padding-88 | padding: 22rem |
padding-96 | padding: 24rem |
padding-104 | padding: 26rem |
padding-112 | padding: 28rem |
class | css |
---|---|
padding-x-px | padding-right: 1px; padding-left: 1px |
padding-x-0 | padding-right: 0; padding-left: 0 |
padding-x-1 | padding-right: 0.25rem; padding-left: 0.25rem |
padding-x-2 | padding-right: 0.5rem; padding-left: 0.5rem |
padding-x-3 | padding-right: 0.75rem; padding-left: 0.75rem |
padding-x-4 | padding-right: 1rem; padding-left: 1rem |
padding-x-5 | padding-right: 1.25rem; padding-left: 1.25rem |
padding-x-6 | padding-right: 1.5rem; padding-left: 1.5rem |
padding-x-8 | padding-right: 2rem; padding-left: 2rem |
padding-x-10 | padding-right: 2.5rem; padding-left: 2.5rem |
padding-x-12 | padding-right: 3rem; padding-left: 3rem |
padding-x-16 | padding-right: 4rem; padding-left: 4rem |
padding-x-20 | padding-right: 5rem; padding-left: 5rem |
padding-x-24 | padding-right: 6rem; padding-left: 6rem |
padding-x-32 | padding-right: 8rem; padding-left: 8rem |
padding-x-40 | padding-right: 10rem; padding-left: 10rem |
padding-x-48 | padding-right: 12rem; padding-left: 12rem |
padding-x-56 | padding-right: 14rem; padding-left: 14rem |
padding-x-64 | padding-right: 16rem; padding-left: 16rem |
padding-x-72 | padding-right: 18rem; padding-left: 18rem |
padding-x-80 | padding-right: 20rem; padding-left: 20rem |
padding-x-88 | padding-right: 22rem; padding-left: 22rem |
padding-x-96 | padding-right: 24rem; padding-left: 24rem |
padding-x-104 | padding-right: 26rem; padding-left: 26rem |
padding-x-112 | padding-right: 28rem; padding-left: 28rem |
class | css |
---|---|
padding-y-px | padding-top: 1px; padding-bottom: 1px |
padding-y-0 | padding-top: 0; padding-bottom: 0 |
padding-y-1 | padding-top: 0.25rem; padding-bottom: 0.25rem |
padding-y-2 | padding-top: 0.5rem; padding-bottom: 0.5rem |
padding-y-3 | padding-top: 0.75rem; padding-bottom: 0.75rem |
padding-y-4 | padding-top: 1rem; padding-bottom: 1rem |
padding-y-5 | padding-top: 1.25rem; padding-bottom: 1.25rem |
padding-y-6 | padding-top: 1.5rem; padding-bottom: 1.5rem |
padding-y-8 | padding-top: 2rem; padding-bottom: 2rem |
padding-y-10 | padding-top: 2.5rem; padding-bottom: 2.5rem |
padding-y-12 | padding-top: 3rem; padding-bottom: 3rem |
padding-y-16 | padding-top: 4rem; padding-bottom: 4rem |
padding-y-20 | padding-top: 5rem; padding-bottom: 5rem |
padding-y-24 | padding-top: 6rem; padding-bottom: 6rem |
padding-y-32 | padding-top: 8rem; padding-bottom: 8rem |
padding-y-40 | padding-top: 10rem; padding-bottom: 10rem |
padding-y-48 | padding-top: 12rem; padding-bottom: 12rem |
padding-y-56 | padding-top: 14rem; padding-bottom: 14rem |
padding-y-64 | padding-top: 16rem; padding-bottom: 16rem |
padding-y-72 | padding-top: 18rem; padding-bottom: 18rem |
padding-y-80 | padding-top: 20rem; padding-bottom: 20rem |
padding-y-88 | padding-top: 22rem; padding-bottom: 22rem |
padding-y-96 | padding-top: 24rem; padding-bottom: 24rem |
padding-y-104 | padding-top: 26rem; padding-bottom: 26rem |
padding-y-112 | padding-top: 28rem; padding-bottom: 28rem |
class | css |
---|---|
padding-t-px | padding-top: 1px |
padding-t-0 | padding-top: 0 |
padding-t-1 | padding-top: 0.25rem |
padding-t-2 | padding-top: 0.5rem |
padding-t-3 | padding-top: 0.75rem |
padding-t-4 | padding-top: 1rem |
padding-t-5 | padding-top: 1.25rem |
padding-t-6 | padding-top: 1.5rem |
padding-t-8 | padding-top: 2rem |
padding-t-10 | padding-top: 2.5rem |
padding-t-12 | padding-top: 3rem |
padding-t-16 | padding-top: 4rem |
padding-t-20 | padding-top: 5rem |
padding-t-24 | padding-top: 6rem |
padding-t-32 | padding-top: 8rem |
padding-t-40 | padding-top: 10rem |
padding-t-48 | padding-top: 12rem |
padding-t-56 | padding-top: 14rem |
padding-t-64 | padding-top: 16rem |
padding-t-72 | padding-top: 18rem |
padding-t-80 | padding-top: 20rem |
padding-t-88 | padding-top: 22rem |
padding-t-96 | padding-top: 24rem |
padding-t-104 | padding-top: 26rem |
padding-t-112 | padding-top: 28rem |
class | css |
---|---|
padding-r-px | padding-right: 1px |
padding-r-0 | padding-right: 0 |
padding-r-1 | padding-right: 0.25rem |
padding-r-2 | padding-right: 0.5rem |
padding-r-3 | padding-right: 0.75rem |
padding-r-4 | padding-right: 1rem |
padding-r-5 | padding-right: 1.25rem |
padding-r-6 | padding-right: 1.5rem |
padding-r-8 | padding-right: 2rem |
padding-r-10 | padding-right: 2.5rem |
padding-r-12 | padding-right: 3rem |
padding-r-16 | padding-right: 4rem |
padding-r-20 | padding-right: 5rem |
padding-r-24 | padding-right: 6rem |
padding-r-32 | padding-right: 8rem |
padding-r-40 | padding-right: 10rem |
padding-r-48 | padding-right: 12rem |
padding-r-56 | padding-right: 14rem |
padding-r-64 | padding-right: 16rem |
padding-r-72 | padding-right: 18rem |
padding-r-80 | padding-right: 20rem |
padding-r-88 | padding-right: 22rem |
padding-r-96 | padding-right: 24rem |
padding-r-104 | padding-right: 26rem |
padding-r-112 | padding-right: 28rem |
class | css |
---|---|
padding-b-px | padding-bottom: 1px |
padding-b-0 | padding-bottom: 0 |
padding-b-1 | padding-bottom: 0.25rem |
padding-b-2 | padding-bottom: 0.5rem |
padding-b-3 | padding-bottom: 0.75rem |
padding-b-4 | padding-bottom: 1rem |
padding-b-5 | padding-bottom: 1.25rem |
padding-b-6 | padding-bottom: 1.5rem |
padding-b-8 | padding-bottom: 2rem |
padding-b-10 | padding-bottom: 2.5rem |
padding-b-12 | padding-bottom: 3rem |
padding-b-16 | padding-bottom: 4rem |
padding-b-20 | padding-bottom: 5rem |
padding-b-24 | padding-bottom: 6rem |
padding-b-32 | padding-bottom: 8rem |
padding-b-40 | padding-bottom: 10rem |
padding-b-48 | padding-bottom: 12rem |
padding-b-56 | padding-bottom: 14rem |
padding-b-64 | padding-bottom: 16rem |
padding-b-72 | padding-bottom: 18rem |
padding-b-80 | padding-bottom: 20rem |
padding-b-88 | padding-bottom: 22rem |
padding-b-96 | padding-bottom: 24rem |
padding-b-104 | padding-bottom: 26rem |
padding-b-112 | padding-bottom: 28rem |
class | css |
---|---|
padding-l-px | padding-left: 1px |
padding-l-0 | padding-left: 0 |
padding-l-1 | padding-left: 0.25rem |
padding-l-2 | padding-left: 0.5rem |
padding-l-3 | padding-left: 0.75rem |
padding-l-4 | padding-left: 1rem |
padding-l-5 | padding-left: 1.25rem |
padding-l-6 | padding-left: 1.5rem |
padding-l-8 | padding-left: 2rem |
padding-l-10 | padding-left: 2.5rem |
padding-l-12 | padding-left: 3rem |
padding-l-16 | padding-left: 4rem |
padding-l-20 | padding-left: 5rem |
padding-l-24 | padding-left: 6rem |
padding-l-32 | padding-left: 8rem |
padding-l-40 | padding-left: 10rem |
padding-l-48 | padding-left: 12rem |
padding-l-56 | padding-left: 14rem |
padding-l-64 | padding-left: 16rem |
padding-l-72 | padding-left: 18rem |
padding-l-80 | padding-left: 20rem |
padding-l-88 | padding-left: 22rem |
padding-l-96 | padding-left: 24rem |
padding-l-104 | padding-left: 26rem |
padding-l-112 | padding-left: 28rem |
Usage
Set padding to top
, bottom
, left
and right
.
<div class="padding-6">
...
</div>
HTML
.dummy {
@extend
.padding-6;
}
SCSS
Set padding to left
and right
.
<div class="padding-x-6">
...
</div>
HTML
.dummy {
@extend
.padding-x-6;
}
SCSS
Set padding to top
and bottom
.
<div class="padding-y-6">
...
</div>
HTML
.dummy {
@extend
.padding-y-6;
}
SCSS
Set padding to top
.
<div class="padding-t-6">
...
</div>
HTML
.dummy {
@extend
.padding-t-6;
}
SCSS
Set padding to bottom
.
<div class="padding-b-6">
...
</div>
HTML
.dummy {
@extend
.padding-b-6;
}
SCSS
Set padding to left
.
<div class="padding-l-6">
...
</div>
HTML
.dummy {
@extend
.padding-l-6;
...
</div>
SCSS
Set padding to right
.
<div class="padding-r-6">
...
</div>
HTML
.dummy {
@extend
.padding-r-6;
}
SCSS
Use (expand)
variant to apply padding to all child elements.
<div class="(expand)padding-4">
<div>...</div>
<div>...</div>
<div>...</div>
</div>
HTML
.dummy {
@extend
.(expand)padding-4;
}
SCSS