Skip to content

Instantly share code, notes, and snippets.

@meyercc
Last active March 8, 2016 09:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save meyercc/7225941 to your computer and use it in GitHub Desktop.
Save meyercc/7225941 to your computer and use it in GitHub Desktop.
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
&::-ms-expand {
display: none; // Need this to hide default select in IE10
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment