Github Project - Version 2.5.0
Created & Maintained by Gary Hepting

Helpers

Breakpoint-targeted layout, typographic, and conditional helpers for responsive & adaptive layouts

Component Usage Example 2 of 14


Conditional Display Helpers

Conditionally show and hide elements at targeted breakpoints

Demonstration

  1. desktop-only
  2. hide-on-desktop
  3. ipad-only
  4. hide-on-ipad
  5. small-tablet-only
  6. hide-on-small-tablet
  7. mobile-only
  8. hide-on-mobile

Conditional Display Classes

  1. .hidden (all breakpoints)
  2. .desktop-only
  3. .hide-on-desktop
  4. .ipad-only
  5. .hide-on-ipad
  6. .small-tablet-only
  7. .hide-on-small-tablet
  8. .mobile-only
  9. .hide-on-mobile



Spacing Helpers

With breakpoint-targeted conditional classes and overrides. (i.e. - .no-pad-mobile, .no-gap-desktop, .double-gap-top-mobile, .padded-small-tablet, .padded-mobile, etc.)

Padded

.padded
.pad-top
.pad-right
.pad-bottom
.pad-left

Half

.half-padded
.half-pad-top
.half-pad-right
.half-pad-bottom
.half-pad-left

Double

.double-padded
.double-pad-top
.double-pad-right
.double-pad-bottom
.double-pad-left

Triple

.triple-padded
.triple-pad-top
.triple-pad-right
.triple-pad-bottom
.triple-pad-left

Gapped

.gapped
.gap-top
.gap-right
.gap-bottom
.gap-left

Half

.half-gapped
.half-gap-top
.half-gap-right
.half-gap-bottom
.half-gap-left

Double

.double-gapped
.double-gap-top
.double-gap-right
.double-gap-bottom
.double-gap-left

Triple

.triple-gapped
.triple-gap-top
.triple-gap-right
.triple-gap-bottom
.triple-gap-left



Layout

With breakpoint-targeted conditional classes and overrides. (i.e. - .block-desktop, .no-border-small-tablet, .pull-right-small-tablet, .center-ipad

Display

.inline
.inline-block
.block

Border Radius

Floating

.pull-none
.pull-right
.pull-left

Centering

Borders

.bordered

.border-top

.border-right

.border-bottom

.border-left



Positioning

X
X
X
X
X
X
X
X
X
X

Static

  • .static

Absolute

  • .absolute
  • .absolute.top
  • .absolute.top.left
  • .absolute.top.center
  • .absolute.top.right
  • .absolute.middle
  • .absolute.middle.left
  • .absolute.middle.center
  • .absolute.middle.right
  • .absolute.bottom
  • .absolute.bottom.left
  • .absolute.bottom.center
  • .absolute.bottom.right
  • .absolute.center

Fixed

  • .fixed
  • .fixed.top
  • .fixed.top.left
  • .fixed.top.center
  • .fixed.top.right
  • .fixed.middle
  • .fixed.middle.left
  • .fixed.middle.center
  • .fixed.middle.right
  • .fixed.bottom
  • .fixed.bottom.left
  • .fixed.bottom.center
  • .fixed.bottom.right
  • .fixed.center



Typographic

Font Sizing

.small

The quick brown fox jumped over the lazy dog. Oh, how that fox jumped, quick and brown, while the dog never reacted because he was so very lazy.

.medium

The quick brown fox jumped over the lazy dog. Oh, how that fox jumped, quick and brown, while the dog never reacted because he was so very lazy.

.large

The quick brown fox jumped over the lazy dog. Oh, how that fox jumped, quick and brown, while the dog never reacted because he was so very lazy.

Text Alignment

.align-left

The quick brown fox jumped over the lazy dog. Oh, how that fox jumped, quick and brown, while the dog never reacted because he was so very lazy.

.align-center

The quick brown fox jumped over the lazy dog. Oh, how that fox jumped, quick and brown, while the dog never reacted because he was so very lazy.

.align-right

The quick brown fox jumped over the lazy dog. Oh, how that fox jumped, quick and brown, while the dog never reacted because he was so very lazy.

.justify

The quick brown fox jumped over the lazy dog. Oh, how that fox jumped, quick and brown, while the dog never reacted because he was so very lazy.

Text Helpers

.truncate

(single-line, pure CSS)

The quick brown fox jumped over the lazy dog. Oh, how that fox jumped, quick and brown, while the dog never reacted because he was so very lazy.

data-truncate='2'

(multi-line, powered by truncateLines plugin)

The quick brown fox jumped over the lazy dog. Oh, how that fox jumped, quick and brown, while the dog never reacted because he was so very lazy.

.responsive

(single-line, powered by responsiveText plugin)

The quick brown fox jumped over the lazy dog.

Note: data-compression='20.65' applied to increase compression


.responsive

(scrollable single-line, powered by responsiveText plugin)

The quick brown fox jumped over the lazy dog.

Note: data-scrollable='true' applied to enable scrolling on hover




Rotation

.rotate-90

.rotate-180

.rotate-270

.rotate-360

.rotate-90-ctr

.rotate-180-ctr

.rotate-270-ctr

.rotate-360-ctr