Global

Use classes to apply properties to an element. Like the rest of the framework, it uses BEM terminology: the block (first word of the class) is the property is the block, and the second word is the modifier.

Responsive

Show

Class Description

show-desktop

Show element if viewport is smaller than 1280px

show-laptop

Show element if viewport is smaller than 1024px

show-tablet

Show element if viewport is smaller than 768px

show-mobile

Show element if viewport is smaller than 568px

show-mobileSm

Show element if viewport is smaller than 350px

show-touch

Show elements on touch devices

Hide

Class Description

hide-desktop

Hide element if viewport is smaller than 1280px

hide-laptop

Hide element if viewport is smaller than 1024px

hide-tablet

Hide element if viewport is smaller than 768px

hide-mobile

Hide element if viewport is smaller than 568px

hide-mobileSm

Hide element if viewport is smaller than 350px

hide-touch

Hide elements on touch devices

Spacing and size

Margin

Class Description

m-05

Apply margin around (half the $spacing-sm variable)

m-X

Apply margin around, multiple of the `$spacing-sm variable (from 1 to 20)

mt-05

Apply top margin (half the $spacing-sm variable)

mt-X

Apply top margin, multiple of the `$spacing-sm variable (from 1 to 20)

mr-05

Apply right margin (half the $spacing-sm variable)

mr-X

Apply right margin, multiple of the `$spacing-sm variable (from 1 to 20)

mb-05

Apply bottom margin (half the $spacing-sm variable)

mb-X

Apply bottom margin, multiple of the `$spacing-sm variable (from 1 to 20)

ml-05

Apply left margin (half the $spacing-sm variable)

ml-X

Apply left margin, multiple of the `$spacing-sm variable (from 1 to 20)

Padding

Class Description

p-05

Apply padding around (half the $spacing-sm variable)

p-X

Apply padding around, multiple of the `$spacing-sm variable (from 1 to 20)

pt-05

Apply top padding (half the $spacing-sm variable)

pt-X

Apply top padding, multiple of the `$spacing-sm variable (from 1 to 20)

pr-05

Apply right padding (half the $spacing-sm variable)

pr-X

Apply right padding, multiple of the `$spacing-sm variable (from 1 to 20)

pb-05

Apply bottom padding (half the $spacing-sm variable)

pb-X

Apply bottom padding, multiple of the `$spacing-sm variable (from 1 to 20)

pl-05

Apply left padding (half the $spacing-sm variable)

pl-X

Apply left padding, multiple of the `$spacing-sm variable (from 1 to 20)

Width

Class Description

w-percent-X

Apply a custom width, in percentage of the parent width (increments of 5%)

w-rem-X

Apply a custom width, multiple of the `$spacing-sm variable (from 1 to 20)

Display

General display

Override the display propery of an element.

Class Description

d-flex

Apply display: flex property

d-inlineFlex

Apply display: inline-flex property

d-block

Apply display: block property

d-inlineBlock

Apply display: inline-block property

Flexbox

This framework used mainly flexbox for positionning elements (see Grid component). If your element has a flex or inline-flex property applied, you can use the following classes to override flexbox properties.

Class Description

fb-content

Applye flex-basis: content property

fb-0

Applye flex-basis: 0 property

fb-1

Applye flex-basis: 1 property

fg-0

Applye flex-grow: 0 property

fg-1

Applye flex-grow: 1 property

fs-0

Applye flex-shrink: 0 property

fs-1

Applye flex-shrink: 1 property