From 184613fd992791e326a12c8befc9f21d7ac7d0d0 Mon Sep 17 00:00:00 2001 From: agatemosu Date: Sat, 28 Dec 2024 18:45:55 +0100 Subject: [PATCH] Improve image load --- index.html | 3 +-- {public => src/assets}/check.svg | 0 {public => src/assets}/chevron-down.svg | 0 {public => src/assets}/chevron-up.svg | 0 {public => src/assets}/trash.svg | 0 src/styles/buttons.css | 2 +- src/styles/tier-options.css | 6 +++--- 7 files changed, 5 insertions(+), 6 deletions(-) rename {public => src/assets}/check.svg (100%) rename {public => src/assets}/chevron-down.svg (100%) rename {public => src/assets}/chevron-up.svg (100%) rename {public => src/assets}/trash.svg (100%) diff --git a/index.html b/index.html index c6e7f75..df8c89e 100644 --- a/index.html +++ b/index.html @@ -5,9 +5,8 @@ Tier list creator - - +
diff --git a/public/check.svg b/src/assets/check.svg similarity index 100% rename from public/check.svg rename to src/assets/check.svg diff --git a/public/chevron-down.svg b/src/assets/chevron-down.svg similarity index 100% rename from public/chevron-down.svg rename to src/assets/chevron-down.svg diff --git a/public/chevron-up.svg b/src/assets/chevron-up.svg similarity index 100% rename from public/chevron-up.svg rename to src/assets/chevron-up.svg diff --git a/public/trash.svg b/src/assets/trash.svg similarity index 100% rename from public/trash.svg rename to src/assets/trash.svg diff --git a/src/styles/buttons.css b/src/styles/buttons.css index 3ce402b..2db968c 100644 --- a/src/styles/buttons.css +++ b/src/styles/buttons.css @@ -49,6 +49,6 @@ input[type="checkbox"] { } input[type="checkbox"]:checked { - background-image: url("/check.svg"); + background-image: url("../assets/check.svg"); background-color: var(--button-hover); } diff --git a/src/styles/tier-options.css b/src/styles/tier-options.css index 436ec06..27ec0d8 100644 --- a/src/styles/tier-options.css +++ b/src/styles/tier-options.css @@ -20,17 +20,17 @@ } .option.delete { - --option-img: url("/trash.svg"); + --option-img: url("../assets/trash.svg"); grid-row: span 2; justify-content: right; } .option.up i { - --option-img: url("/chevron-up.svg"); + --option-img: url("../assets/chevron-up.svg"); } .option.down i { - --option-img: url("/chevron-down.svg"); + --option-img: url("../assets/chevron-down.svg"); } .option i {