ferris-ds 🎡

Design system for WBEZ.org

Version: 6.0.2

GitHub data updated: Jan 29, 2020

Layout

We define layout in our structure as the way we align, arrange, and structure components on a page. Prefix with l-

Layout > Align

Align

Mostly used for centering and some assume a flex parent.

l-align-<position>
.l-align-center-x
Example

Uses auto side margin for horizontal center

.l-align-center-y
Example
Parent is position: relative

Absolutely positioned for vertical vertical center

.l-align-center-self
Example
Parent is display: flex

Used on children of flex parent for vertical center

.l-align-center-children
Example

Apply to parent to center children. Centers x and y.

Layout > Clearfix

Clearfix

Clear out everything after a float.

.l-clearfix
Floated div
HTML Example
<div style="border:2px solid black;">
  <div class="p-b has-bg-red {{className}}">
    <span class="p-b has-bg-black-off has-text-white" style="float:left; "
      >Floated div</span
    >
  </div>
</div>
Layout > Columns

Columns Experimental

Experimental: A library of column width classes, meant to play well with column-setter. For example, l-col-4@bp-l, l-col-2-from-bp-xl, l-col-1-until-bp-s, etc.

l-col-<size>-<bp>
Layout > Container

Container Experimental

Experimental: Max width container, centered with margin auto. Note: Demo is best viewed in standalone preview.

.l-container
l-container ()
HTML Example
<div
  style="border: 2px solid black"
  class="l-container {{ className }} p-b container-demo"
>
  <strong>l-container {% if className %}{{ className }}{%endif%}</strong> (<span
  ></span>)
</div>
Layout > Width

Width

Defines width settings. Helpful for responsive images.

l-width-<size>
.l-width-full

Width is 100% of parent

.l-width-max

Max-width: 100%. Never greater than parent, but not stretched beyond its natural size.

.l-width-story

Max-width: Never greater than a story