Created
August 22, 2018 13:20
-
-
Save Security2431/7364eab7033be75c22d2f0761db2e1b0 to your computer and use it in GitHub Desktop.
Reset css style for select Element!
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
select { | |
background: #fff; | |
border: 1px solid #eee; | |
border-radius: 3px; | |
padding: 3px 22px 3px 3px; | |
background-image: url("data:image/svg+xml, %3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M7.406 7.828l4.594 4.594 4.594-4.594 1.406 1.406-6 6-6-6z'%3E%3C/path%3E%3C/svg%3E"); | |
background-position: calc(100% - 3px) 50%; | |
background-repeat: no-repeat; | |
background-size: 16px; | |
-webkit-appearance: none; | |
-moz-appearance: none; | |
} | |
select::-ms-expand { | |
display: none; | |
} | |
// cssnext | |
select { | |
background: #fff; | |
border: 1px solid #eee; | |
border-radius: 3px; | |
padding: 3px 22px 3px 3px; | |
background-image: url("data:image/svg+xml, %3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M7.406 7.828l4.594 4.594 4.594-4.594 1.406 1.406-6 6-6-6z'%3E%3C/path%3E%3C/svg%3E"); | |
background-position: calc(100% - 3px) 50%; | |
background-repeat: no-repeat; | |
background-size: 16px; | |
-webkit-appearance: none; | |
-moz-appearance: none; | |
&::-ms-expand { | |
display: none; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment