Fork me on GitHub

Spacing

Helper classes for margin and padding spacing

Spacing settings

  • xxs: 5px
  • xs: 10px
  • sm: 15px
  • md: 20px
  • lg: 30px
  • xl: 50px
  • xxl: 70px

Margin and padding syntax

The helper classes start with .m for margin and .p for padding

Next is the direction -a all, -t top, -r right, -b bottom, -l left, -h horizontal (right and left), -v vertical (top and bottom)

Finally is the spacing sizes -none, -xxs, -xs, -sm, -md, -lg, -xl, -xxl


Syntax examples

  • .p-a-none
  • .m-b-xs
  • .p-l-sm
  • .p-h-xl
  • .m-a-sm
  • .m-r-none
  • .p-b-xl
  • .m-v-lg

Borders

Helper classes for borders

Border settings

  • base: 2px solid #ccc
  • thin: 1px solid #e2e2e2

Border syntax

The border helper classes start with .b

Next is the direction -a all, -t top, -r right, -b bottom, -l left, -h horizontal (right and left), -v vertical (top and bottom)

Finally is the type of border -none, -base, -thin


Syntax examples

  • .b-t-none
  • .b-a-thin
  • .b-t-thin
  • .b-h-base
  • .b-t-none
  • .b-v-thin

Visual examples

I am a div with a base border

= .b-a-base

I am a div with a thin border

= .b-a-thin

Borders radius

Helper classes for rounded corners

Border radius settings

  • sm: 5px
  • md: 10px
  • lg: 20px
  • xl: 30px
  • circle: 50%

Border radius syntax

The border radius helper classes start with .br

Next is the direction -a all, -t top, -r right, -b bottom, -l left

Finally is the type of border radius -none, -sm, -md, -lg, -xl

Note: to make a border radius a circle (50%) the class .br-circle can be applied. It can't be applied to each direction like the rest.


Syntax examples

  • .br-t-none
  • .br-a-md
  • .br-t-sm
  • .br-r-xl
  • .br-a-lg
  • .br-circle

Visual examples

I am a div with a small border radius

= .br-a-sm - this is the base radius throughout Pod Point elements eg. form controls and cards

I am a div with a medium border radius

= .br-a-md

I am a div with a large border radius

= .br-a-lg - this is the radius used for Pod Point buttons

I am a div with a extra large border radius

= .br-a-xl

50%

= .br-circle

Box shadows

Helper classes for box shadows

Box shadow settings

  • light
  • base
  • heavy
  • floating

Box shadow syntax

The box shadow helper classes start with .bs

Next is the direction -a all, -t top, -r right, -b bottom, -l left, -h

Finally is the type of box shadow -light, -base, -heavy, -floating


Syntax examples

  • .bs-t-light
  • .bs-a-floating
  • .bs-t-heavy
  • .bs-a-base
  • .bs-l-light
  • .bs-r-base

Visual examples

All edges
I am a div with a light shadow

= .bs-a-light

I am a div with a base shadow

= .bs-a-base

I am a div with an heavy shadow

= .bs-a-heavy

I am a div with a floating shadow

= .b-a-floating

One edge
I am a div with a top light shadow

= .b-t-light

I am a div with a right base shadow

= .b-r-base

I am a div with a bottom heavy shadow

= .b-b-heavy

I am a div with a left floating shadow

= .b-l-floating

Positioning

Helper classes for positioning in each of the four corners

Position properties

The position helpers .pos-sta static, .pos-rel relative, .pos-abs absolute, .pos-fix fixed


Pinning

Helper classes to pin an element each of the for corners with the direction properties. Obviously they won't work if the property is set to static.

.pin-top-right, .pin-right-bottom, .pin-bottom-left, .pin-left-top

Responsive helpers

Helper classes that can change according to screen size

Screen size settings

  • xs: 24em / 384px
  • sm: 40em / 640px
  • md: 50em / 800px
  • lg: 68em / 1088px
  • xl: 100em / 1600px

Responsive helpers syntax

The media queries are set mobile first so if you set a helper class with no screen size, it will set the style from mobile up. Once a screen size is added on to the helper it sets the style for that screen size and up.

The syntax is to define the helper class .text-centre and add a screen size on the end -md

The helpers

.text-centre, .text-right, .text-left, .float-right, .float-left, .float-left, .m-centre, .hidden, .block, .inline-block, .width-full

Syntax examples

  • .text-centre
  • .float-right-sm
  • .hidden-lg
  • .inline-block
  • .m-centre-md

Widths

Helper classes to define max or min widths for content, text content and images

Max and min width settings (images or elements)

  • xxs: 100px
  • xs: 150px
  • sm: 200px
  • md: 300px
  • lg: 400px
  • xl: 500px
  • xxl: 700px

Max width settings (content)

  • content: 1100px
  • content wide: 1260px
  • content narrow: 960px
  • text: 600px
  • text wider: 640px
  • text wide: 700px
  • text narrow: 500px

The helpers

The helpers are just max width properties so can be used on anything, however the content max width helpers are defined to keep consistency and the image max width helpers are roughly sizes of how big images might be in a design

100% width helpers .width-100, .max-width-100

Max width helpers .max-width-xxs, .max-width-xs, .max-width-sm, .max-width-md, .max-width-lg, .max-width-xl, .max-width-xxl

Min width helpers .min-width-xxs, .min-width-xs, .min-width-sm, .min-width-md, .min-width-lg, .min-width-xl, .min-width-xxl

Max width content helpers .max-width-content, .max-width-text, .max-width-text-wider, .max-width-text-wide, .max-width-text-narrow

Backgrounds

Background colour helper classes according to the Pod Point colour palette.

Note that when applying a background colour class, the font colour will be set as either base font colour or white for readability. There are helper classes .bg-dark-content and .bg-light-content that override this which is useful for nested backgrounds.

To override SVG fill colours you can apply the classes .svg-dark, .svg-light, .svg-primary which targets the direct child SVG.

White - #fff = .bg-white


Very light grey - #f9f9f9 = .bg-very-light-grey


Light grey - #f3f3f3 = .bg-light-grey


Grey - #adadad = .bg-grey


Dark grey - #5c5c5c = .bg-dark-grey


Very dark grey - #333 = .bg-very-dark-grey


Primary - #8cc63f = .bg-primary


Very light primary - #f9fcf5 = .bg-very-light-primary


Sky blue - #deeefc = .bg-sky-blue


Success - #5cb85c = .bg-success


Info - #5bc0de = .bg-info


Warning - #f0ad4e = .bg-warning


Danger - #c1272d = .bg-danger

Assistive helpers

Helper classes that can be used to assist the functional capabilities of persons with disabilities.

Screen reader only .sr-only

This class can used to hide information intended only for screen readers from the layout of the rendered page.