Created
November 18, 2013 14:11
-
-
Save sugarenia/7528393 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
This file contains 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
<p>This is text</p> | |
<p class="mt-small">This is text</p> | |
<p class="mt-medium">This is text</p> | |
<p class="mt-large">This is text</p> | |
<p class="mt-xlarge">This is text</p> | |
<hr /> | |
<p class="mb-small">This is text</p> | |
<p class="mb-medium">This is text</p> | |
<p class="mb-large">This is text</p> | |
<p class="mb-xlarge">This is text</p> | |
<p>This is text</p> |
This file contains 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.3.0.rc.1) | |
// Compass (v0.13.alpha.10) | |
// ---- | |
p { | |
margin: 0; | |
padding: 0; | |
} | |
$margins: ( | |
small: 10px, | |
medium: 15px, | |
large: 20px, | |
xlarge: 30px | |
); | |
@each $label, $margin in $margins { | |
.mt-#{$label} { | |
margin-top: #{$margin}; | |
} | |
.mb-#{$label} { | |
margin-bottom: #{$margin}; | |
} | |
} |
This file contains 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
p { | |
margin: 0; | |
padding: 0; | |
} | |
.mt-small { | |
margin-top: 10px; | |
} | |
.mb-small { | |
margin-bottom: 10px; | |
} | |
.mt-medium { | |
margin-top: 15px; | |
} | |
.mb-medium { | |
margin-bottom: 15px; | |
} | |
.mt-large { | |
margin-top: 20px; | |
} | |
.mb-large { | |
margin-bottom: 20px; | |
} | |
.mt-xlarge { | |
margin-top: 30px; | |
} | |
.mb-xlarge { | |
margin-bottom: 30px; | |
} |
This file contains 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
<p>This is text</p> | |
<p class="mt-small">This is text</p> | |
<p class="mt-medium">This is text</p> | |
<p class="mt-large">This is text</p> | |
<p class="mt-xlarge">This is text</p> | |
<hr /> | |
<p class="mb-small">This is text</p> | |
<p class="mb-medium">This is text</p> | |
<p class="mb-large">This is text</p> | |
<p class="mb-xlarge">This is text</p> | |
<p>This is text</p> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment