Spacing Helpers

Spacer is .4rem which is equal to 4px for default.

$spacer: .4rem;

Assign responsive-friendly margin or padding values to an element or a subset of its sides with shorthand classes. Includes support for individual properties, all properties, and vertical and horizontal properties. Classes are built from a default Sass map ranging from 0rem to 50rem.

Spacing utilities that apply to all breakpoints, from xs to xl, have no breakpoint abbreviation in them. This is because those classes are applied from min-width: 0 and up, and thus are not bound by a media query. The remaining breakpoints, however, do include a breakpoint abbreviation.

The classes are named using the format {property}{sides}-{size} for xs and {property}{sides}-{breakpoint}-{size} for sm, md, lg, and xl.

Where property is one of:

  • m - for classes that set margin
  • p - for classes that set padding

Where sides is one of:

  • t - for classes that set margin-top or padding-top
  • b - for classes that set margin-bottom or padding-bottom
  • l - for classes that set margin-left or padding-left
  • r - for classes that set margin-right or padding-right
  • x - for classes that set both *-left and *-right
  • y - for classes that set both *-top and *-bottom
  • blank - for classes that set a margin or padding on all 4 sides of the element

Where size is one of:

  • 0 - for classes that eliminate the margin or padding by setting it to 0
  • 1 - (by default) for classes that set the margin or padding to $spacer * .25
  • 2 - (by default) for classes that set the margin or padding to $spacer * .5
  • 3 - (by default) for classes that set the margin or padding to $spacer
  • 4 - (by default) for classes that set the margin or padding to $spacer * 1.5
  • 5 - (by default) for classes that set the margin or padding to $spacer * 3

(You can add more sizes by adding entries to the $spacers Sass map variable.)

Padding Helpers

p - for classes that set padding, ranging from p-0 to p-50.

p-0
p-1
p-2
p-3
p-3
p-4
p-5
p-6
p-7
...

                    <div class="row align-items-start">

                        <div class="md-elevation-2 p-0 m-4">
                            <code>p-0</code>
                        </div>

                        <div class="md-elevation-2 p-1 m-4">
                            <code>p-1</code>
                        </div>

                        <div class="md-elevation-2 p-2 m-4">
                            <code>p-2</code>
                        </div>

                        <div class="md-elevation-2 p-3 m-4">
                            <code>p-3</code>
                        </div>

                        <div class="md-elevation-2 p-3 m-4">
                            <code>p-3</code>
                        </div>

                        <div class="md-elevation-2 p-4 m-4">
                            <code>p-4</code>
                        </div>

                        <div class="md-elevation-2 p-5 m-4">
                            <code>p-5</code>
                        </div>

                        <div class="md-elevation-2 p-6 m-4">
                            <code>p-6</code>
                        </div>

                        <div class="md-elevation-2 p-7 m-4">
                            <code>p-7</code>
                        </div>

                        <div class="md-elevation-2 p-9 m-4">
                            <code>...</code>
                        </div>
                    </div>
                    
Direction Specific - Padding Helpers
pt-12
pr-12
pb-12
pl-12
px-12
py-12
p-12

                    <div class="row align-items-start">
                        <div class="md-elevation-2 pt-12 m-4">
                            <code>pt-12</code>
                        </div>
                        <div class="md-elevation-2 pr-12 m-4">
                            <code>pr-12</code>
                        </div>
                        <div class="md-elevation-2 pb-12 m-4">
                            <code>pb-12</code>
                        </div>
                        <div class="md-elevation-2 pl-12 m-4">
                            <code>pl-12</code>
                        </div>
                        <div class="md-elevation-2 px-12 m-4">
                            <code>px-12</code>
                        </div>
                        <div class="md-elevation-2 py-12 m-4">
                            <code>py-12</code>
                        </div>
                        <div class="md-elevation-2 p-12 m-4">
                            <code>p-12</code>
                        </div>
                    </div>
                    
Responsive - Padding Helpers
p-4 p-sm-6 p-md-8 p-lg-10 p-xl-12

                    <div class="row align-items-start">
                        <div class="md-elevation-2 p-4 p-sm-6 p-md-8 p-lg-10 p-xl-12">
                            <code>p-4</code>
                            <code>p-sm-6</code>
                            <code>p-md-8</code>
                            <code>p-lg-10</code>
                            <code>p-xl-12</code>
                        </div>
                    </div>
                    
Margin Helpers

m - for classes that set margin, ranging from m-0 to m-50.

m-0
m-1
m-2
m-3
m-3
m-4
m-5
m-6
m-7
...

                    <div class="row align-items-start">
                        <div class="row align-items-start">
                            <div class="md-elevation-2 m-0 p-4">
                                <code>m-0</code>
                            </div>

                            <div class="md-elevation-2 m-1 p-4">
                                <code>m-1</code>
                            </div>

                            <div class="md-elevation-2 m-2 p-4">
                                <code>m-2</code>
                            </div>

                            <div class="md-elevation-2 m-3 p-4">
                                <code>m-3</code>
                            </div>

                            <div class="md-elevation-2 m-3 p-4">
                                <code>m-3</code>
                            </div>

                            <div class="md-elevation-2 m-4 p-4">
                                <code>m-4</code>
                            </div>

                            <div class="md-elevation-2 m-5 p-4">
                                <code>m-5</code>
                            </div>

                            <div class="md-elevation-2 m-6 p-4">
                                <code>m-6</code>
                            </div>

                            <div class="md-elevation-2 m-7 p-4">
                                <code>m-7</code>
                            </div>

                            <div class="md-elevation-2 m-9 p-4">
                                <code>...</code>
                            </div>
                        </div>
                    </div>
                    
Direction Specific - Margin Helpers
mt-12
mr-12
mb-12
ml-12
mx-12
my-12
m-12

                    <div class="row align-items-start">
                        <div class="md-elevation-2 mt-12 p-4">
                            <code>mt-12</code>
                        </div>
                        <div class="md-elevation-2 mr-12 p-4">
                            <code>mr-12</code>
                        </div>
                        <div class="md-elevation-2 mb-12 p-4">
                            <code>mb-12</code>
                        </div>
                        <div class="md-elevation-2 ml-12 p-4">
                            <code>ml-12</code>
                        </div>
                        <div class="md-elevation-2 mx-12 p-4">
                            <code>mx-12</code>
                        </div>
                        <div class="md-elevation-2 my-12 p-4">
                            <code>my-12</code>
                        </div>
                        <div class="md-elevation-2 m-12 p-4">
                            <code>m-12</code>
                        </div>
                    </div>
                    
Responsive - Margin Helpers
m-4 m-sm-6 m-md-8 m-lg-10 m-xl-12

                    <div class="row align-items-start">
                        <div class="md-elevation-2 p-4 m-4 m-sm-6 m-md-8 m-lg-10 m-xl-12">
                            <code>m-4</code>
                            <code>m-sm-6</code>
                            <code>m-md-8</code>
                            <code>m-lg-10</code>
                            <code>m-xl-12</code>
                        </div>
                    </div>
                    
TODAY
Friday
5 th May
Events

Group Meeting

In 32 Minutes, Room 1B

Public Beta Release

11:00 PM

Dinner with David

17:30 PM

Q&A Session

20:30 PM

Notes

Best songs to listen while working

Last edit: May 8th, 2015

Useful subreddits

Last edit: January 12th, 2015

Quick Settings

Notifications

Cloud Sync

Retro Thrusters