Padding
Adjust whitespace with horizontal and vertical spacing with`block` level `padding` adjustment helpers.
Usage
When to Use
Padding classes can be applied to block level items to provide a padding on that item. (For margin adjustments, see Spacing.)
Base Unit
The base space size is 1.25rem or 20px.
Padding classes
ALPS uses padding classes to apply varying padding to the current element. The classes, detailed below and starting with u-padding, add a varying padding size to all or individual sides.
| Class Name | Description |
|---|---|
u-padding
|
Use this class to apply a default |
u-padding--top
|
Use this class to apply a default |
u-padding--bottom
|
Use this class to apply a default |
u-padding--right
|
Use this class to apply a default |
u-padding--left
|
Use this class to apply a default |
u-padding--quarter
|
Use this class to apply a quarter size |
u-padding--quarter--top
|
Use this class to apply a quarter size |
u-padding--quarter--bottom
|
Use this class to apply a quarter size |
u-padding--quarter--right
|
Use this class to apply a quarter size |
u-padding--quarter--left
|
Use this class to apply a quarter size |
u-padding--half
|
Use this class to apply a half size |
u-padding--half--top
|
Use this class to apply a half size |
u-padding--half--bottom
|
Use this class to apply a half size |
u-padding--half--right
|
Use this class to apply a half size |
u-padding--half--left
|
Use this class to apply a half size |
u-padding--double
|
Use this class to apply a double size |
u-padding--double--top
|
Use this class to apply a double size |
u-padding--double--bottom
|
Use this class to apply a double size |
u-padding--double--right
|
Use this class to apply a double size |
u-padding--double--left
|
Use this class to apply a double size |
u-padding--triple
|
Use this class to apply a triple size |
u-padding--triple--top
|
Use this class to apply a triple size |
u-padding--triple--bottom
|
Use this class to apply a triple size |
u-padding--triple--right
|
Use this class to apply a triple size |
u-padding--triple--left
|
Use this class to apply a triple size |
u-padding--quad
|
Use this class to apply a quad size |
u-padding--quad--top
|
Use this class to apply a quad size |
u-padding--quad--bottom
|
Use this class to apply a quad size |
u-padding--quad--right
|
Use this class to apply a quad size |
u-padding--quad--left
|
Use this class to apply a quad size |
u-padding--zero
|
Use this class to apply a |
u-padding--zero--top
|
Use this class to apply a |
u-padding--zero--bottom
|
Use this class to apply a |
u-padding--zero--right
|
Use this class to apply a |
u-padding--zero--left
|
Use this class to apply a |
u-padding--sides
|
Use this class to apply a |
u-padding--left--until-xxlarge
|
Use this class to apply a |
u-padding--zero--sides
|
Use this class to apply a padding of |