Last active
July 8, 2016 15:48
-
-
Save diegofelix/5325aa0c5816bbb83588a29e36769793 to your computer and use it in GitHub Desktop.
Nice Select Combo Box
This file contains hidden or 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
// <div class="NiceSelect NiceSelect--focus"> | |
// <span class="NiceSelect__text">Option Selected</span> | |
// <select> | |
// <option value="1">Option Selected</option> | |
// <option value="2">Other Option</option> | |
// </select> | |
// </div> | |
.NiceSelect | |
width: 100% | |
position: relative | |
overflow: hidden | |
background: #e8ebed | |
border: 2px solid #e8ebed | |
font-weight: normal | |
color: #576366 | |
line-height: 1 | |
display: block | |
border-radius: 5px | |
.NiceSelect--focus | |
background: #fff | |
.NiceSelect__select | |
position: absolute | |
top: 0 | |
bottom: 0 | |
opacity: 0 | |
border: none | |
background: #fff | |
z-index: 1x | |
width: 100% | |
.NiceSelect__text | |
cursor: pointer | |
display: block | |
text-overflow: ellipsis | |
white-space: nowrap | |
min-height: 14px | |
padding: 14px 50px 13px 13px | |
overflow: visible | |
font-size: 14px | |
font-weight: 500 | |
.NiceSelect:after | |
background: #b7c0c7 url("img/select-arrow.svg") no-repeat center | |
content: "" | |
position: absolute | |
right: 3px | |
top: 3px | |
bottom: 3px | |
width: 30px | |
border-radius: 3px | |
.NiceSelect--focus:after | |
background-color: #888; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment