Skip to content

Instantly share code, notes, and snippets.

@runa-ichinose
Created April 21, 2015 04:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save runa-ichinose/b71b0c2937f0508d28f2 to your computer and use it in GitHub Desktop.
Save runa-ichinose/b71b0c2937f0508d28f2 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// Sass (v3.4.12)
// Compass (v1.0.3)
// ----
$spaceClass: true !default;
$spacePadding: false !default;
$endValue: 10 !default;
@if $spaceClass {
@for $i from 0 through $endValue {
.mt#{$i * 5} {
margin-top: 5px * $i !important;
}
.mb#{$i * 5} {
margin-bottom: 5px * $i !important;
}
@if $spacePadding {
.pt#{$i * 5} {
padding-top: 5px * $i !important;
}
.pb#{$i * 5} {
padding-bottom: 5px * $i !important;
}
}
}
}
.mt0 {
margin-top: 0px !important;
}
.mb0 {
margin-bottom: 0px !important;
}
.mt5 {
margin-top: 5px !important;
}
.mb5 {
margin-bottom: 5px !important;
}
.mt10 {
margin-top: 10px !important;
}
.mb10 {
margin-bottom: 10px !important;
}
.mt15 {
margin-top: 15px !important;
}
.mb15 {
margin-bottom: 15px !important;
}
.mt20 {
margin-top: 20px !important;
}
.mb20 {
margin-bottom: 20px !important;
}
.mt25 {
margin-top: 25px !important;
}
.mb25 {
margin-bottom: 25px !important;
}
.mt30 {
margin-top: 30px !important;
}
.mb30 {
margin-bottom: 30px !important;
}
.mt35 {
margin-top: 35px !important;
}
.mb35 {
margin-bottom: 35px !important;
}
.mt40 {
margin-top: 40px !important;
}
.mb40 {
margin-bottom: 40px !important;
}
.mt45 {
margin-top: 45px !important;
}
.mb45 {
margin-bottom: 45px !important;
}
.mt50 {
margin-top: 50px !important;
}
.mb50 {
margin-bottom: 50px !important;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment