Skip to content

Instantly share code, notes, and snippets.

@zachharkey
Created June 25, 2014 19:00
Show Gist options
  • Save zachharkey/8e57a9ff11db2507a07a to your computer and use it in GitHub Desktop.
Save zachharkey/8e57a9ff11db2507a07a to your computer and use it in GitHub Desktop.
@mixin coverer($position: absolute) {
position: $position;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
@mixin centerer($position: absolute) {
position: $position;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
@mixin word-wrap() {
word-break: break-word;
-webkit-hyphens: auto;
-moz-hyphens: auto;
hyphens: auto;
}
@mixin ellipsis() {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
@function black($opacity) {
@return rgba(black, $opacity)
}
@function white($opacity) {
@return rgba(white, $opacity)
}
@LukyVj
Copy link

LukyVj commented Sep 6, 2014

Well, I have to thank you for this gist.
It seems codepen blogposts got some issues to be open.
So, I was pleased to see that some people took the initiative to share it !

Thank you !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment