Skip to content

Instantly share code, notes, and snippets.

@Burick
Forked from meyercc/clear-select
Last active August 29, 2015 14:27
Show Gist options
  • Save Burick/4417abae3ef848ade048 to your computer and use it in GitHub Desktop.
Save Burick/4417abae3ef848ade048 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