storyteller.io CSS Styleguide

Utilities

CSS Globals

4.5

Layering

The authority on z-index. Named intervals passed to a layer mixin establish standard levels into which blocks and elements may be stacked above others. Include this mixin to elevate your content. Positioning is relative to each level.

Modifiers  
modal

1000

5.1

Reset

Reset default browser styles.

Modifiers  
--reset

Zeroes out any default margins, borders, and padding

--reset-link

Removes default underlining and outlining. Also switches cursor to a pointer.

--reset-list

Zeros out margins and padding, removes list markers.

5.2

Scale

Easily size blocks and their elements up and down with the magical power of root em units. These utility classes can be applied to blocks or elements to define a new root em.

--scale-1x

Ethical letterpress fixie single-origin coffee, American Apparel bitters seitan YOLO artisan flexitarian squid cliche cardigan. Etsy selfies Marfa, freegan Godard chia flannel Odd Future slow-carb messenger bag locavore gentrify vegan 8-bit Thundercats. Put a bird on it meggings cardigan, food truck selfies slow-carb forage twee Terry Richardson chia seitan. Cred banh mi brunch selvage small batch, High Life leggings. Kale chips Truffaut PBR&B, XOXO Tonx seitan wolf stumptown church-key leggings. YOLO mlkshk +1, Thundercats Shoreditch bitters kale chips retro artisan. XOXO beard meggings Brooklyn, Intelligentsia photo booth art party VHS raw denim Pinterest.

--scale-2x

Ethical letterpress fixie single-origin coffee, American Apparel bitters seitan YOLO artisan flexitarian squid cliche cardigan. Etsy selfies Marfa, freegan Godard chia flannel Odd Future slow-carb messenger bag locavore gentrify vegan 8-bit Thundercats. Put a bird on it meggings cardigan, food truck selfies slow-carb forage twee Terry Richardson chia seitan. Cred banh mi brunch selvage small batch, High Life leggings. Kale chips Truffaut PBR&B, XOXO Tonx seitan wolf stumptown church-key leggings. YOLO mlkshk +1, Thundercats Shoreditch bitters kale chips retro artisan. XOXO beard meggings Brooklyn, Intelligentsia photo booth art party VHS raw denim Pinterest.

--scale-3x

Ethical letterpress fixie single-origin coffee, American Apparel bitters seitan YOLO artisan flexitarian squid cliche cardigan. Etsy selfies Marfa, freegan Godard chia flannel Odd Future slow-carb messenger bag locavore gentrify vegan 8-bit Thundercats. Put a bird on it meggings cardigan, food truck selfies slow-carb forage twee Terry Richardson chia seitan. Cred banh mi brunch selvage small batch, High Life leggings. Kale chips Truffaut PBR&B, XOXO Tonx seitan wolf stumptown church-key leggings. YOLO mlkshk +1, Thundercats Shoreditch bitters kale chips retro artisan. XOXO beard meggings Brooklyn, Intelligentsia photo booth art party VHS raw denim Pinterest.

--scale-4x

Ethical letterpress fixie single-origin coffee, American Apparel bitters seitan YOLO artisan flexitarian squid cliche cardigan. Etsy selfies Marfa, freegan Godard chia flannel Odd Future slow-carb messenger bag locavore gentrify vegan 8-bit Thundercats. Put a bird on it meggings cardigan, food truck selfies slow-carb forage twee Terry Richardson chia seitan. Cred banh mi brunch selvage small batch, High Life leggings. Kale chips Truffaut PBR&B, XOXO Tonx seitan wolf stumptown church-key leggings. YOLO mlkshk +1, Thundercats Shoreditch bitters kale chips retro artisan. XOXO beard meggings Brooklyn, Intelligentsia photo booth art party VHS raw denim Pinterest.

--scale-5x

Ethical letterpress fixie single-origin coffee, American Apparel bitters seitan YOLO artisan flexitarian squid cliche cardigan. Etsy selfies Marfa, freegan Godard chia flannel Odd Future slow-carb messenger bag locavore gentrify vegan 8-bit Thundercats. Put a bird on it meggings cardigan, food truck selfies slow-carb forage twee Terry Richardson chia seitan. Cred banh mi brunch selvage small batch, High Life leggings. Kale chips Truffaut PBR&B, XOXO Tonx seitan wolf stumptown church-key leggings. YOLO mlkshk +1, Thundercats Shoreditch bitters kale chips retro artisan. XOXO beard meggings Brooklyn, Intelligentsia photo booth art party VHS raw denim Pinterest.

--scale-6x

Ethical letterpress fixie single-origin coffee, American Apparel bitters seitan YOLO artisan flexitarian squid cliche cardigan. Etsy selfies Marfa, freegan Godard chia flannel Odd Future slow-carb messenger bag locavore gentrify vegan 8-bit Thundercats. Put a bird on it meggings cardigan, food truck selfies slow-carb forage twee Terry Richardson chia seitan. Cred banh mi brunch selvage small batch, High Life leggings. Kale chips Truffaut PBR&B, XOXO Tonx seitan wolf stumptown church-key leggings. YOLO mlkshk +1, Thundercats Shoreditch bitters kale chips retro artisan. XOXO beard meggings Brooklyn, Intelligentsia photo booth art party VHS raw denim Pinterest.

Modifiers  
--scale-1x

Smallest scale / reset document root em (10px)

--scale-2x

Default scale (13px)

--scale-3x

Larger scale (16px)

--scale-4x

21px

--scale-5x

26px

--scale-6x

34px

5.3

Positioning

Aligns content relative to it’s parent parent. Corner positioning requires that the parent reset the relative position.

--center

--center-content

--position-top-left

--position-top-right

--position-bottom-right

--position-bottom-left

Modifiers  
--center

Centers elements.

--center-content

Center child elements and other content.

--position-top-left

--position-top-right

--position-bottom-right

--position-bottom-left

5.4

Grouping

Easily group blocks and elements together with CSS floats. All blocks have a bottom margin of 2rem by default.

Modifiers  
--align-left

Align block to the right of a preceding element

--align-right

Align block to the right of the outer container

--group-left

Apply to a container to float all of it’s children left

--group-right

Apply to a container to float all of it’s children right

--distribute-1x

Space a series of blocks or elements apart evenly by .25em.

--distribute-2x

Space a series of blocks or elements apart evenly by .5em.

--distribute-3x

Space a series of blocks or elements apart evenly by .75em.

--distribute-4x

Space a series of blocks or elements apart evenly by 1em.

--distribute-5x

Space a series of blocks or elements apart evenly by 1.5em.

--distribute-6x

Space a series of blocks or elements apart evenly by 2em.

--fill

Stretches width of blocks and elements to fill their container

--flush

Neutralize default spacing.

--flush-top

Neutralize default top spacing only.

5.5

Vertical Rhythm

All UI blocks are spaced apart in 2rem increments. This provides consistent vertical spacing between them and any adjacent elements. Note that blocks will, by default, collapse adjacent margins This means they will not double-up to be 4rem.

5.6

Overflow Content

Modifiers  
--overflow

Hides content exceeding content box and provides scrollbars

--overflow-x

Hides only vertical content and provides a vertical scrollbar

--overflow-y

Hides only vertical content and provides a vertical scrollbar