Skip to content

Instantly share code, notes, and snippets.

@dewwwald
Last active November 6, 2015 09:04
Show Gist options
  • Save dewwwald/7ed78e2a352137c66283 to your computer and use it in GitHub Desktop.
Save dewwwald/7ed78e2a352137c66283 to your computer and use it in GitHub Desktop.

#SCSS Utils Code _utils.scss is made as a plugin for scss frameworks that will assist in shortening certain code.

/**
* 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