Skip to content

Instantly share code, notes, and snippets.

@patrickpietens
Last active August 29, 2015 14:18
Show Gist options
  • Save patrickpietens/1048b9475c50a6079e6d to your computer and use it in GitHub Desktop.
Save patrickpietens/1048b9475c50a6079e6d to your computer and use it in GitHub Desktop.
Random mixins
@function rem($value) {
@return ($value / 10) * 1rem;
}
@mixin hardware-accelerate() {
transform: rotateZ(0);
}
@mixin clearfix() {
overflow: hidden;
}
@mixin text-replacement {
text-indent: 100%;
white-space: nowrap;
overflow: hidden;
}
@mixin truncate-tail {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
@mixin selection($background-color, $color) {
::-moz-selection {
background-color: $background-color;
color: $color;
}
::selection {
background-color: $background-color;
color: $color;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment