From f0625aabe5a921e70156caf4296bd2b04d10610b Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Thu, 19 Jul 2018 14:10:43 +0900 Subject: [PATCH] Minor changes --- scripts/Actions/Upload.ts | 6 ++---- styles/include/config.scarlet | 3 +-- styles/input.scarlet | 2 +- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/scripts/Actions/Upload.ts b/scripts/Actions/Upload.ts index b3f3b87d..39f9efb7 100644 --- a/scripts/Actions/Upload.ts +++ b/scripts/Actions/Upload.ts @@ -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) diff --git a/styles/include/config.scarlet b/styles/include/config.scarlet index 1083306d..6c594baa 100644 --- a/styles/include/config.scarlet +++ b/styles/include/config.scarlet @@ -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) diff --git a/styles/input.scarlet b/styles/input.scarlet index 1145e097..cd8863db 100644 --- a/styles/input.scarlet +++ b/styles/input.scarlet @@ -39,7 +39,7 @@ input button, .button horizontal - padding 0.5rem 1rem + padding 0rem 1rem color button-color align-items center pointer-events all