dm-file-uploader
Version:
A very lightweight and configurable jQuery Plugin for file uploading using ajax(async); includes support for queues, progress tracking and drag and drop.
35 lines (30 loc) • 684 B
CSS
/*
Uploader:
- These styles are the ones used on the examples. No needed to use it by any means.
- It disables user selection to avoid some weird visuals in some browsers
- It masks/hides the the file input behind a button
*/
.dm-uploader {
cursor: default;
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.dm-uploader .btn {
position: relative;
overflow: hidden;
}
.dm-uploader .btn input[type="file"] {
position: absolute;
top: 0;
right: 0;
margin: 0;
border: solid transparent;
width: 100%;
opacity: .0;
filter: alpha(opacity= 0);
cursor: pointer;
}