Last active
August 29, 2015 14:18
-
-
Save patrickpietens/1048b9475c50a6079e6d to your computer and use it in GitHub Desktop.
Random mixins
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
@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