Last active
August 29, 2015 14:14
-
-
Save smlombardi/8c41b9ee94c20ad5b2b9 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ---- | |
// Sass (v3.4.11) | |
// Compass (v1.0.3) | |
// ---- | |
$spacers: ( sm: 10px, med: 20px, lg: 30px, xlg: 40px); | |
$directions: (top, bottom); | |
// @each $spacer, $amt in $spacers { | |
// .spacer--#{$spacer}:hover { | |
// margin-top: $amt; | |
// } | |
// } | |
@each $direction in $directions { | |
@each $spacer, $amt in $spacers { | |
.spacer-#{$direction}-#{$spacer} { | |
margin-#{$direction}: $amt; | |
} | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.spacer-top-sm { | |
margin-top: 10px; | |
} | |
.spacer-top-med { | |
margin-top: 20px; | |
} | |
.spacer-top-lg { | |
margin-top: 30px; | |
} | |
.spacer-top-xlg { | |
margin-top: 40px; | |
} | |
.spacer-bottom-sm { | |
margin-bottom: 10px; | |
} | |
.spacer-bottom-med { | |
margin-bottom: 20px; | |
} | |
.spacer-bottom-lg { | |
margin-bottom: 30px; | |
} | |
.spacer-bottom-xlg { | |
margin-bottom: 40px; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment