Add file drag and drop and asynchronous upload

This commit is contained in:
Frederic Guillot
2016-02-13 19:24:36 -05:00
parent 6161eaef9e
commit 738b6ae583
11 changed files with 222 additions and 33 deletions

File diff suppressed because one or more lines are too long

View File

@@ -1,19 +0,0 @@
#screenshot-zone {
position: relative;
border: 2px dashed #ccc;
width: 90%;
height: 250px;
overflow: auto;
}
#screenshot-inner {
position: absolute;
left: 0;
bottom: 48%;
width: 100%;
text-align: center;
}
#screenshot-zone.screenshot-pasted {
border: 2px solid #333;
}

39
assets/css/src/upload.css Normal file
View File

@@ -0,0 +1,39 @@
#file-dropzone,
#screenshot-zone {
position: relative;
border: 2px dashed #ccc;
width: 99%;
height: 250px;
overflow: auto;
}
#file-dropzone-inner,
#screenshot-inner {
position: absolute;
left: 0;
bottom: 48%;
width: 100%;
text-align: center;
color: #aaa;
}
#screenshot-zone.screenshot-pasted {
border: 2px solid #333;
}
#file-list {
margin: 20px;
}
#file-list li {
list-style-type: none;
padding-top: 8px;
padding-bottom: 8px;
border-bottom: 1px dotted #ddd;
width: 95%;
}
#file-list li.file-error {
font-weight: bold;
color: #b94a48;
}