Created
October 19, 2016 08:50
-
-
Save ralexandr/b36fda8c4df01db6564647907f26753e to your computer and use it in GitHub Desktop.
SASS: To quickly centre a block element without having to worry about if there is any top or bottom margin already applied.
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
@mixin push--auto { | |
margin: { | |
left: auto; | |
right: auto; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment