Last active
May 2, 2016 16:51
-
-
Save nguyenj/c4a88277e91334a65a86f272778070a6 to your computer and use it in GitHub Desktop.
zqMRGW
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(id='mealType' name='mealType') | |
option(value='breakfast') Breakfast | |
option(value='lunch') Lunch | |
option(value='dinner') Dinner | |
option(value='snack') Snack |
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').wrap '<div class="select" />' | |
) jQuery |
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 | |
appearance none | |
display block | |
width 100% | |
padding 0.5em 2em 0.5em 0.5em | |
border none | |
outline none | |
background-color transparent | |
&:focus, | |
&:hover, | |
&:active | |
outline none | |
.select | |
display inline-block | |
overflow hidden | |
position relative | |
border 1px solid #333 | |
&::after | |
content '' | |
display block | |
width 0 | |
transform translateY(-50%) | |
position absolute | |
top 50% | |
right 0.5em | |
border 0.5em solid transparent | |
border-width 0.5em 0.5em 0 | |
border-top-color #333 | |
pointer-events none |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment