Utilities
Helper overrides for various utilities. V2 will use prefixes of .l-, .has-, .is-
Background color
Set the background-color of an element.
has-bg-<color>
.has-bg-black
black background color
.has-bg-black-off
black-off background color
ferris-ds 1
.has-bg-white
white background color
ferris-ds 2
.has-bg-white-off
white off background color
ferris-ds 2
.has-bg-gray
gray background color
ferris-ds 1
.has-bg-gray-light
gray-light background color
ferris-ds 2
.has-bg-gray-dark
gray-dark background color
.has-bg-red
red background color
ferris-ds 4
.has-bg-red-dark
red dark background color
.has-bg-error
error background color
.has-bg-success
success background color
.has-bg-facebook
facebook background color
ferris-ds 2
.has-bg-twitter
twitter background color
ferris-ds 1
.has-bg-instagram
instagram background color
.has-bg-youtube
youtube background color
.has-bg-feedburner
feedburner background color
.has-bg-inherit
currentColor background color
Background color:hover
Set the background-color of an element.
has-bg-hover-<color>
.has-bg-hover-black
black background color
.has-bg-hover-black-off
black-off background color
.has-bg-hover-white
white background color
.has-bg-hover-white-off
white off background color
.has-bg-hover-gray
gray background color
.has-bg-hover-gray-light
gray-light background color
.has-bg-hover-gray-dark
gray-dark background color
.has-bg-hover-red
red background color
.has-bg-hover-red-dark
red dark background color
.has-bg-hover-error
error background color
.has-bg-hover-success
success background color
.has-bg-hover-facebook
facebook background color
ferris-ds 1
.has-bg-hover-twitter
twitter background color
ferris-ds 1
.has-bg-hover-instagram
instagram background color
ferris-ds 1
.has-bg-hover-youtube
youtube background color
ferris-ds 1
.has-bg-hover-feedburner
feedburner background color
ferris-ds 1
.has-bg-hover-inherit
currentColor background color
Box shadow
Add a thin, blurred box shadow to any element
.has-box-shadow
HTML Example
<button class="c-button has-bg-white has-box-shadow">I am a button</button>
Display
Todo: Display this page as a table.
d-<display>
.d-block
ferris-ds 2
www.wbez.org 1
.d-inline
.d-inline-block
www.wbez.org 1
.d-flex
.d-inline-flex
Hairline Experimental
Experimental: Accent element for adding separation to text.
has-hairline
.has-hairline-top
Adds hairline top
.has-hairline-right
Adds hairline right
.has-hairline-bottom
Adds hairline bottom
.has-hairline-left
Adds hairline left
Hidden
Contain !important flags to override other display rules.
is-hidden-<specifier>
.is-hidden
Hide always
www.wbez.org 1
.is-hidden-print
Hide from print previews
.is-hidden-from-bp-xs
Hide from bp-xs onward
.is-hidden-from-bp-s
Hide from bp-s onward
.is-hidden-from-bp-m
Hide from bp-m onward
ferris-ds 1
.is-hidden-from-bp-l
Hide from bp-l onward
www.wbez.org 1
ferris-ds 1
.is-hidden-from-bp-xl
Hide from bp-xl onward
.is-hidden-from-bp-xxl
Hide from bp-xxl onward
.is-hidden-from-bp-default
Hide from bp-default onward
.is-hidden-until-bp-xs
Hide until bp-xs
.is-hidden-until-bp-s
Hide until bp-s
.is-hidden-until-bp-m
Hide until bp-m
ferris-ds 1
.is-hidden-until-bp-l
Hide until bp-l
www.wbez.org 2
ferris-ds 1
.is-hidden-until-bp-xl
Hide until bp-xl
.is-hidden-until-bp-xxl
Hide until bp-xxl
.is-hidden-until-bp-default
Hide until bp-default
.is-transparent
Removes opacity. (Use this to fade elements out.)
Notch
Accent element for adding separation to text.
www.wbez.org 1
.has-notch
HTML Example
<div class="has-notch {{ className }} has-bg-red"></div>
.-short
Shorter in width and height
.-thin
Shorter in height. Used in footer
.-full
Stretches to full width
.-w-100
Stretches to 100px
www.wbez.org 1
.-centered
Centers the notch
www.wbez.org 1
Notch
Accent element for adding separation to text, applied via pseudoelement.
.has-notch-before
HTML Example
<div class="has-notch-before {{ className }}"></div>
.-short
Shorter in width and height
.-thin
Shorter in height. Used in footer
.-full
Stretches to full width
.-w-100
Stretches to 100px
.-centered
Centers the notch
Spacing
Shorthand margin and padding utility classes, based on Bootstrap's spacing utilities. The classes are named using the format .{property}{sides}-{size}
.
Where property is one of:
m
- for classes that setmargin
p
- for classes that setpadding
Where sides is one of:
- blank - set
margin
orpadding
on all 4 sides x
- set both*-left
and*-right
y
- set both*-top
and*-bottom
t
- set*-top
b
- set*-bottom
r
- set*-right
l
- set*-left
Where size is one of our size units.
Some illustrative examples:
.mt-0 {
margin-top: 0;
}
.mx-xs {
margin-left: $size-xs;
margin-right: $size-xs;
}
.p-giant {
padding: $size-giant;
}
Additionally, we include an .mx-auto
class, which is the same as margin-left: auto; margin-right: auto;
.
Text color
Set the color of text.
has-text-<color>
.has-text-black
Example
black text color
.has-text-black-off
Example
black-off text color
.has-text-white
Example
white text color
ferris-ds 2
www.wbez.org 4
.has-text-white-off
Example
white off text color
.has-text-gray
Example
gray text color
ferris-ds 2
www.wbez.org 3
.has-text-gray-light
Example
gray-light text color
ferris-ds 2
www.wbez.org 1
.has-text-gray-dark
Example
gray-dark text color
ferris-ds 3
.has-text-red
Example
red text color
ferris-ds 2
.has-text-red-dark
Example
red dark text color
.has-text-error
Example
error text color
ferris-ds 2
.has-text-success
Example
success text color
.has-text-facebook
Example
facebook text color
ferris-ds 2
.has-text-twitter
Example
twitter text color
ferris-ds 1
.has-text-instagram
Example
instagram text color
.has-text-youtube
Example
youtube text color
.has-text-feedburner
Example
feedburner text color
.has-text-inherit
Example
currentColor text color
www.wbez.org 2
Text color:hover
Set the color of text on hover.
has-text-hover-<color>
.has-text-hover-black
Hover me
black text color
.has-text-hover-black-off
Hover me
black-off text color
.has-text-hover-white
Hover me
white text color
.has-text-hover-white-off
Hover me
white off text color
.has-text-hover-gray
Hover me
gray text color
ferris-ds 1
.has-text-hover-gray-light
Hover me
gray-light text color
.has-text-hover-gray-dark
Hover me
gray-dark text color
.has-text-hover-red
Hover me
red text color
ferris-ds 1
.has-text-hover-red-dark
Hover me
red dark text color
.has-text-hover-error
Hover me
error text color
.has-text-hover-success
Hover me
success text color
.has-text-hover-facebook
Hover me
facebook text color
ferris-ds 2
www.wbez.org 1
.has-text-hover-twitter
Hover me
twitter text color
ferris-ds 1
www.wbez.org 1
.has-text-hover-instagram
Hover me
instagram text color
.has-text-hover-youtube
Hover me
youtube text color
.has-text-hover-feedburner
Hover me
feedburner text color
.has-text-hover-inherit
Hover me
currentColor text color
Vertical bar
Accent element for distinguishing a block of text. Used on story summaries, pullquotes, and membership CTA.
.has-vert-bar
HTML Example
<p class="has-vert-bar {{ className }} has-text-yellow"><span class="has-text-gray-dark">Lorem ipsum dolor sit amet consectetur adipisicing elit. Dolores incidunt vel rerum deserunt debitis voluptas, omnis dignissimos, doloribus saepe quae itaque! Consequuntur et eveniet fugit in veritatis quos ver incidunt.</span></p>
.-thin
Used in membership CTA callout on stories
.-padded-l
Used in pullquotes
.-padded-xxl
Used in membership CTA callout on stories
.-from-bp-s
Resets styling on mobile