ALF Buttons
Buttons can either be:
- Elements with the class
.button - A container with the class
.buttons, with any of the following elements inside:abuttoninput[submit]input[reset]
By default buttons will fill 100% width in phone, but that can be prevented by adding .not-responsive.
Container .buttons classes
.justify.center.right.in-bar: visually wraps the buttons in a styled bar.not-responsive: prevents the buttons using 100% of the available width in phone-down
Button classes
- Color identifiers:
.main,.alt,.ok,.warning,.error - Additional colors:
.link,.text .disabled: you should also add thedisabledattribute when it's an INPUT element- Size classes:
xs,s,l,xl .w100: uses the full available width.outlined
Examples
Element with .button
In this paragraph there is a link with class button.
Buttons container (class .buttons)
Container options
Justified (.buttons.justify):
Centered (.buttons.center):
Right-aligned (.buttons.right):
In-bar (.buttons.in-bar):
Alignment + in-bar combinations (.buttons.justify.in-bar):
Not responsive (.buttons.justify.in-bar.not-responsive):
Additional classes (in the button elements)
.w100
Outlined versions
All combinations with color identifiers are possible, showing just a sample below: