Last active
December 5, 2016 14:52
-
-
Save veirus/d0cd4c5ad42c1ce28f572c052f94fa13 to your computer and use it in GitHub Desktop.
Custom select in Stylus
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
.select | |
@extend .input | |
relative() | |
padding 0 | |
margin-top 20px | |
appearance none | |
overflow hidden | |
// background-image: url("../img/arrow.png") | |
// background-repeat no-repeat | |
// background-position: 96% center | |
& option | |
font-family: ff | |
font-size: 16px | |
line-height: 1.2 | |
& > select | |
overflow hidden | |
padding 0 20px | |
size(100%, 100%) | |
background: transparent | |
border: 0 | |
color lighten(clgreytxt, 15%) | |
font-size: 16px | |
font-family: ff | |
line-height: 1.2 | |
appearance none | |
-webkit-appearance: none | |
&:active, &:focus | |
border 0 | |
&:after | |
content " " | |
absolute top 24px right 18px | |
display block | |
size(0,0) | |
border-top: 6px solid black | |
border-left: 6px solid transparent | |
border-right: 6px solid transparent | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment