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
$.fn.customSelect = -> | |
$(this).filter('select').each (i) -> | |
$select = $(this) | |
# make sure we only apply once, no matter how many times called with the same selector | |
return if $select.data('customSelect') | |
$select.data('customSelect', true) | |
title = $select.find('option:first').text() |
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
input[type=file] { | |
position: relative; | |
-webkit-appearance: textfield; | |
-webkit-box-sizing: border-box; | |
} | |
input[type=file]::-webkit-file-upload-button { | |
border: none; | |
margin: 0; | |
padding: 0; |
NewerOlder