fixed dnd after css changes

This commit is contained in:
Danny Coates 2018-02-19 14:29:13 -08:00
parent 029633f3d3
commit ad77fc20c6
No known key found for this signature in database
GPG key ID: 4C442633C62E00CB
6 changed files with 15 additions and 14 deletions

View file

@ -69,6 +69,10 @@ a {
border-radius: 5px; border-radius: 5px;
} }
.btn:hover {
background-color: var(--primaryControlHoverColor);
}
.btn--cancel { .btn--cancel {
color: var(--errorColor); color: var(--errorColor);
background: var(--pageBGColor); background: var(--pageBGColor);
@ -83,6 +87,10 @@ a {
cursor: auto; cursor: auto;
} }
.btn--cancel:hover {
background-color: var(--pageBGColor);
}
.input { .input {
flex: 2 0 auto; flex: 2 0 auto;
border: 1px solid var(--primaryControlBGColor); border: 1px solid var(--primaryControlBGColor);

View file

@ -11,7 +11,9 @@ export default function(state, emitter) {
document.body.addEventListener('drop', event => { document.body.addEventListener('drop', event => {
if (state.route === '/' && !state.uploading) { if (state.route === '/' && !state.uploading) {
event.preventDefault(); event.preventDefault();
document.querySelector('.upload-window').classList.remove('ondrag'); document
.querySelector('.uploadArea')
.classList.remove('uploadArea--dragging');
const target = event.dataTransfer; const target = event.dataTransfer;
if (target.files.length === 0) { if (target.files.length === 0) {
return; return;

View file

@ -53,10 +53,6 @@
padding: 0 10px; padding: 0 10px;
} }
.btn--file:hover {
background-color: var(--primaryControlHoverColor);
}
.inputFile { .inputFile {
opacity: 0; opacity: 0;
overflow: hidden; overflow: hidden;

View file

@ -4,7 +4,3 @@
margin-top: 20px; margin-top: 20px;
margin-bottom: 30px; margin-bottom: 30px;
} }
.btn--download:hover {
background-color: var(--primaryControlHoverColor);
}

View file

@ -16,8 +16,11 @@
} }
@media (max-device-width: 520px), (max-width: 520px) { @media (max-device-width: 520px), (max-width: 520px) {
.passwordSection {
width: 100%;
}
.passwordForm { .passwordForm {
flex-direction: column; flex-direction: column;
padding-left: 0;
} }
} }

View file

@ -36,8 +36,4 @@
flex-direction: column; flex-direction: column;
width: inherit; width: inherit;
} }
.inputBtn--loading {
width: inherit;
}
} }