Minor changes

This commit is contained in:
Eduard Urbach 2018-07-19 14:10:43 +09:00
parent 09a279861c
commit f0625aabe5
3 changed files with 4 additions and 7 deletions

View File

@ -15,6 +15,7 @@ export function selectFile(arn: AnimeNotifier, button: HTMLButtonElement) {
// Click on virtual file input element
let input = document.createElement("input")
input.setAttribute("type", "file")
input.value = null
input.onchange = () => {
let file = input.files[0]
@ -38,10 +39,7 @@ export function selectFile(arn: AnimeNotifier, button: HTMLButtonElement) {
// Preview image
if(fileType === "image") {
let previews = document.getElementsByClassName(button.id + "-preview")
for(let preview of previews) {
previewImage(file, endpoint, previews)
}
previewImage(file, endpoint, previews)
}
uploadFile(file, fileType, endpoint, arn)

View File

@ -14,9 +14,8 @@ link-color-s = 87%
link-color-l = 45%
link-color = hsl(link-color-h, link-color-s, link-color-l)
link-hover-color-l = 53%
link-hover-color-l = calc(link-color-l + 8%)
link-hover-color = hsl(link-color-h, link-color-s, link-hover-color-l)
// link-hover-color = hsl(8, 89%, 53%)
link-active-color = link-hover-color
pro-color = hsla(0, 100%, 73%, 0.87)

View File

@ -39,7 +39,7 @@ input
button, .button
horizontal
padding 0.5rem 1rem
padding 0rem 1rem
color button-color
align-items center
pointer-events all