Skip to content

Instantly share code, notes, and snippets.

@sugarenia
Created June 23, 2015 10:45
Show Gist options
  • Save sugarenia/1a3ba47fc9db24886224 to your computer and use it in GitHub Desktop.
Save sugarenia/1a3ba47fc9db24886224 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// libsass (v3.2.5)
// ----
$sizes: (
xs: 5px,
s: 10px,
m: 15px,
l: 20px,
xl: 30px,
xxl: 40px
);
$directions: (
t: top,
r: right,
b: bottom,
l: left
);
@each $size, $pixels in $sizes {
@each $direction, $value in $directions {
.m#{$direction}-#{$size} { margin-#{$value}: $pixels !important; }
.nm#{$direction}-#{$size} { margin-#{$value}: -$pixels !important; }
}
.m-#{$size} { margin: $pixels !important; }
}
.mt-xs {
margin-top: 5px !important;
}
.nmt-xs {
margin-top: -5px !important;
}
.mr-xs {
margin-right: 5px !important;
}
.nmr-xs {
margin-right: -5px !important;
}
.mb-xs {
margin-bottom: 5px !important;
}
.nmb-xs {
margin-bottom: -5px !important;
}
.ml-xs {
margin-left: 5px !important;
}
.nml-xs {
margin-left: -5px !important;
}
.m-xs {
margin: 5px !important;
}
.mt-s {
margin-top: 10px !important;
}
.nmt-s {
margin-top: -10px !important;
}
.mr-s {
margin-right: 10px !important;
}
.nmr-s {
margin-right: -10px !important;
}
.mb-s {
margin-bottom: 10px !important;
}
.nmb-s {
margin-bottom: -10px !important;
}
.ml-s {
margin-left: 10px !important;
}
.nml-s {
margin-left: -10px !important;
}
.m-s {
margin: 10px !important;
}
.mt-m {
margin-top: 15px !important;
}
.nmt-m {
margin-top: -15px !important;
}
.mr-m {
margin-right: 15px !important;
}
.nmr-m {
margin-right: -15px !important;
}
.mb-m {
margin-bottom: 15px !important;
}
.nmb-m {
margin-bottom: -15px !important;
}
.ml-m {
margin-left: 15px !important;
}
.nml-m {
margin-left: -15px !important;
}
.m-m {
margin: 15px !important;
}
.mt-l {
margin-top: 20px !important;
}
.nmt-l {
margin-top: -20px !important;
}
.mr-l {
margin-right: 20px !important;
}
.nmr-l {
margin-right: -20px !important;
}
.mb-l {
margin-bottom: 20px !important;
}
.nmb-l {
margin-bottom: -20px !important;
}
.ml-l {
margin-left: 20px !important;
}
.nml-l {
margin-left: -20px !important;
}
.m-l {
margin: 20px !important;
}
.mt-xl {
margin-top: 30px !important;
}
.nmt-xl {
margin-top: -30px !important;
}
.mr-xl {
margin-right: 30px !important;
}
.nmr-xl {
margin-right: -30px !important;
}
.mb-xl {
margin-bottom: 30px !important;
}
.nmb-xl {
margin-bottom: -30px !important;
}
.ml-xl {
margin-left: 30px !important;
}
.nml-xl {
margin-left: -30px !important;
}
.m-xl {
margin: 30px !important;
}
.mt-xxl {
margin-top: 40px !important;
}
.nmt-xxl {
margin-top: -40px !important;
}
.mr-xxl {
margin-right: 40px !important;
}
.nmr-xxl {
margin-right: -40px !important;
}
.mb-xxl {
margin-bottom: 40px !important;
}
.nmb-xxl {
margin-bottom: -40px !important;
}
.ml-xxl {
margin-left: 40px !important;
}
.nml-xxl {
margin-left: -40px !important;
}
.m-xxl {
margin: 40px !important;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment