From 95238b600db02202250dad2f6aa0a92414d0a920 Mon Sep 17 00:00:00 2001 From: lokeshazad10 Date: Sun, 6 Oct 2024 14:27:20 +0530 Subject: [PATCH] Adjust theme toggler button --- Css-files/mode-toggler.css | 6 +++--- index.html | 5 ++--- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/Css-files/mode-toggler.css b/Css-files/mode-toggler.css index 81d42208..9d9e5303 100644 --- a/Css-files/mode-toggler.css +++ b/Css-files/mode-toggler.css @@ -26,7 +26,7 @@ .theme-switch { position: relative; - width: 45px; + width: 50px; height: 30px; background-color: #ccc; border-radius: 20px; @@ -44,7 +44,7 @@ font-size: 19px; position: absolute; cursor: pointer; - top: 50%; + /* top: 50%; */ transform: translateY(-50%); transition: opacity 0.5s ease, color 0.5s ease; } @@ -84,6 +84,6 @@ } .switch-checkbox:checked + .theme-switch .toggle-button { - transform: translateX(13px); + transform: translateX(18px); /* background-color: #34495e; */ } diff --git a/index.html b/index.html index 0ae58ff6..4f89579f 100644 --- a/index.html +++ b/index.html @@ -358,9 +358,7 @@ - - - + @@ -439,6 +437,7 @@ +