From a7ee63cb365a3519845635c99ba123f6344e9595 Mon Sep 17 00:00:00 2001 From: Sangelo Date: Wed, 12 Jul 2023 11:13:52 +0200 Subject: [PATCH] Redesigned the Switcher --- src/routes/Switcher.svelte | 57 +++++++++++++++++++++++++------------- 1 file changed, 38 insertions(+), 19 deletions(-) diff --git a/src/routes/Switcher.svelte b/src/routes/Switcher.svelte index 873510a..4ea60d3 100644 --- a/src/routes/Switcher.svelte +++ b/src/routes/Switcher.svelte @@ -21,36 +21,55 @@ }); - + + + .icon { + position: absolute; + top: calc(50% -13px); + left: calc(50% -13px); + width: 24px; + height: 24px; + } + + .switcher:active { + box-shadow: 0px 0px var(--main-color); + transform: translate(4px, 4px); + } + \ No newline at end of file