Im currently working on having a button to upload a file, but i dont want to use the default input[type=file]
here's my snippet:
%button.btn
Upload your own
%input{ :type => "file", :class => 'file-input' }
and here's the css:
left: -34; // to align it with the button
top: -23;
position: relative;
opacity: 0;
currently it works, im just not sure about the markup. twitter has the same structure also when trying to upload a profile photo.