ALF Buttons

Buttons can either be:

  • Elements with the class .button
  • A container with the class .buttons, with any of the following elements inside:
    • a
    • button
    • input[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 the disabled attribute 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)

Link

Container options

Justified (.buttons.justify):

Link

Centered (.buttons.center):

Link

Right-aligned (.buttons.right):

Link

In-bar (.buttons.in-bar):

Link

Alignment + in-bar combinations (.buttons.justify.in-bar):

Link

Not responsive (.buttons.justify.in-bar.not-responsive):

Link

Additional classes (in the button elements)

.w100

LINK.w100

Outlined versions

All combinations with color identifiers are possible, showing just a sample below: