From 6315bf27d4aef25b58609143a16285d46a039949 Mon Sep 17 00:00:00 2001
From: Azalea <22280294+hykilpikonna@users.noreply.github.com>
Date: Thu, 19 Dec 2024 16:38:13 -0500
Subject: [PATCH] [S] Better color picker
---
src/App.svelte | 7 ++++++-
src/app.sass | 33 ++++++++++++++++++++++-----------
2 files changed, 28 insertions(+), 12 deletions(-)
diff --git a/src/App.svelte b/src/App.svelte
index 5a4848c..04040ac 100644
--- a/src/App.svelte
+++ b/src/App.svelte
@@ -362,9 +362,14 @@
{#each colors as color, idx}
+
{/each}
{/if}
diff --git a/src/app.sass b/src/app.sass
index 43be335..c61e0fd 100644
--- a/src/app.sass
+++ b/src/app.sass
@@ -98,20 +98,31 @@ main
flex-wrap: wrap
place-items: center
-.color-picker
- display: flex
- flex-direction: column
- padding: 1em 0 0 0
- overflow: hidden
- height: 42px
- width: 30px
+.color-picker-div
+ position: relative
- &.selected
- border-color: colors.$accent
+ .color-picker
+ display: flex
+ align-items: flex-end
+ padding: 0
+ overflow: hidden
+ height: 42px
+ width: 30px
+
+ &.selected
+ border-color: colors.$accent
+
+ .color
+ height: 60%
+ width: 100%
+ z-index: 10
input
- padding: 0
- border: 0
+ max-height: 0
+ opacity: 0
+ position: absolute
+ bottom: 0
+ z-index: -10
@import url('https://fonts.googleapis.com/css2?family=Teko&display=swap')
.timer