Created
December 1, 2017 22:52
-
-
Save digitalhydra/74310951755ec058253204e6f87dea35 to your computer and use it in GitHub Desktop.
push css
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
$push-top:2rem; | |
.push-top{ | |
margin-top: $push-top; | |
&.x2{ margin-top: $push-top*2;} | |
&.x3{ margin-top: $push-top*3;} | |
&.x4{ margin-top: $push-top*4;} | |
&.x5{ margin-top: $push-top*5;} | |
&.x6{ margin-top: $push-top*6;} | |
&.x7{ margin-top: $push-top*7;} | |
&.x8{ margin-top: $push-top*8;} | |
&.x9{ margin-top: $push-top*9;} | |
&.negative{ | |
margin-top: (-$push-top); | |
&.x2{ margin-top: -($push-top*2);} | |
&.x3{ margin-top: -($push-top*3);} | |
&.x4{ margin-top: -($push-top*4);} | |
&.x5{ margin-top: -($push-top*5);} | |
&.x6{ margin-top: -($push-top*6);} | |
&.x7{ margin-top: -($push-top*7);} | |
&.x8{ margin-top: -($push-top*8);} | |
&.x9{ margin-top: -($push-top*9);} | |
} | |
@include breakpoint(small only) { | |
margin-top: 0.5rem !important; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment