Skip to content

Instantly share code, notes, and snippets.

@meyercc
meyercc / font-smoothing
Created November 2, 2013 17:57
LESS Mixin that helps browsers correctly render fonts (Chrome, Safari, Firefox [25])
.font-smoothing{
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
font-smoothing: antialiased;
text-shadow: 1px 1px 1px rgba(0,0,0,0.004);
}
@meyercc
meyercc / clear-select
Last active March 8, 2016 09:54
LESS Mixin that clears browsers' default select box styles.
.clear-select {
border: none;
border-radius: 0;
outline: none;
appearance: none;
-webkit-appearance: none;
-moz-appearance: none;
-o-appearance: none;
text-indent: 0.01px; // Need this to hide default select in FF
text-overflow: ''; // Need this to hide default select in FF