Last active
September 28, 2016 21:24
-
-
Save mrpaulphan/a8c0a256440bb62a58083aef84de7f37 to your computer and use it in GitHub Desktop.
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
// Variables | |
$spacingDesktop: 20px; | |
$spacingMobile: 14px; | |
// Default | |
[spacing^="1"] > * + * { | |
margin-top: $spacingMobile; | |
@include media('>large') { | |
margin-top: $spacingDesktop; | |
} | |
} | |
[spacing^="1.5"] > * + * { | |
margin-top: $spacingMobile * 1.5; | |
@include media('>large') { | |
margin-top: $spacingDesktop * 1.5; | |
} | |
} | |
[spacing^="2"] > * + * { | |
margin-top: $spacingMobile * 2; | |
@include media('>large') { | |
margin-top: $spacingDesktop * 2; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment