#SCSS Utils Code _utils.scss is made as a plugin for scss frameworks that will assist in shortening certain code.
Last active
November 6, 2015 09:04
-
-
Save dewwwald/7ed78e2a352137c66283 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
/** | |
* I love css, I realy do, but this is ridiculous | |
* I don't want to type these out all the time | |
*/ | |
@mixin absolute-zero ($places: "tblr") { | |
position: absolute; | |
@if str-index($places, "t") { | |
top: 0; | |
} | |
@if str-index($places, "l") { | |
left: 0; | |
} | |
@if str-index($places, "r") { | |
right: 0; | |
} | |
@if str-index($places, "b") { | |
bottom: 0; | |
} | |
} | |
@mixin display-inline() { | |
display: inline-block; | |
line-height: 0; | |
font-size: 0px; | |
font-family: none; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment