Skip to content

Instantly share code, notes, and snippets.

@YamilG
Created June 16, 2014 05:08
Show Gist options
  • Save YamilG/adab94ffb89db69ccd3d to your computer and use it in GitHub Desktop.
Save YamilG/adab94ffb89db69ccd3d to your computer and use it in GitHub Desktop.
Center center percentage + full screen block something
@mixin coverer {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
@mixin centerer {
position: absolute;
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)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment