Skip to content
This repository has been archived by the owner on Jun 17, 2024. It is now read-only.

Commit

Permalink
Tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
nduartech committed May 8, 2024
1 parent f2aea53 commit 3f05493
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions packages/mr-astro/src/components/common/DayNightToggle.astro
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ import moon from "../../../public/half-moon.svg";
setTimeout(function() {
dayNightMoon = document.querySelector(".moon svg");
dayNightMoon.classList.remove("hidden", "w-0", "h-0");
dayNightMoon.classList.add("w-8", "h-8");
dayNightMoon.classList.add("w-7", "h-7");
setTimeout(function() {
dayNightMoon.classList.contains("active") ? void (0) : dayNightMoon.classList.add("active");
}, 300);
Expand All @@ -155,7 +155,7 @@ import moon from "../../../public/half-moon.svg";
dayNightMoon = document.querySelector(".moon svg");
dayNightMoon.classList.contains("active") ? dayNightMoon.classList.remove("active") : void (0);
setTimeout(function() {
dayNightMoon.classList.remove("w-8", "h-8");
dayNightMoon.classList.remove("w-7", "h-7");
dayNightMoon.classList.add("hidden", "w-0", "h-0");
}, 300);
setTimeout(function() {
Expand Down Expand Up @@ -221,7 +221,7 @@ import moon from "../../../public/half-moon.svg";
setTimeout(function() {
dayNightMoon = document.querySelector(".moon svg");
dayNightMoon.classList.remove("hidden", "w-0", "h-0");
dayNightMoon.classList.add("w-8", "h-8");
dayNightMoon.classList.add("w-7", "h-7");
setTimeout(function() {
dayNightMoon.classList.contains("active") ? void (0) : dayNightMoon.classList.add("active");
}, 300);
Expand All @@ -234,7 +234,7 @@ import moon from "../../../public/half-moon.svg";
dayNightMoon = document.querySelector(".moon svg");
dayNightMoon.classList.contains("active") ? dayNightMoon.classList.remove("active") : void (0);
setTimeout(function() {
dayNightMoon.classList.remove("w-8", "h-8");
dayNightMoon.classList.remove("w-7", "h-7");
dayNightMoon.classList.add("hidden", "w-0", "h-0");
}, 300);
setTimeout(function() {
Expand Down Expand Up @@ -263,7 +263,7 @@ import moon from "../../../public/half-moon.svg";
</script>
<div class="dayNight z-50 cursor-pointer mt-0.5 mr-0.5 lg:mt-2 lg:mr-2">
<div class="sun">
<svg class="w-9 h-9" stroke-width="0.9" fill="none" xmlns="http://www.w3.org/2000/svg" color="#ddf2ff" viewBox="0.4 0.4 23.2 23.2"> <path d="M12 18C15.3137 18 18 15.3137 18 12C18 8.68629 15.3137 6 12 6C8.68629 6 6 8.68629 6 12C6 15.3137 8.68629 18 12 18Z" stroke="#ddf2ff" stroke-width="0.9" stroke-linecap="round" stroke-linejoin="round" class="svg-elem-1"></path> <path d="M22 12L23 12" stroke="#ddf2ff" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" class="svg-elem-2"></path> <path d="M12 2V1" stroke="#ddf2ff" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" class="svg-elem-3"></path> <path d="M12 23V22" stroke="#ddf2ff" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" class="svg-elem-4"></path> <path d="M20 20L19 19" stroke="#ddf2ff" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" class="svg-elem-5"></path> <path d="M20 4L19 5" stroke="#ddf2ff" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" class="svg-elem-6"></path> <path d="M4 20L5 19" stroke="#ddf2ff" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" class="svg-elem-7"></path> <path d="M4 4L5 5" stroke="#ddf2ff" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" class="svg-elem-8"></path> <path d="M1 12L2 12" stroke="#ddf2ff" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" class="svg-elem-9"></path> </svg>
<svg class="w-8 h-8" stroke-width="0.9" fill="none" xmlns="http://www.w3.org/2000/svg" color="#ddf2ff" viewBox="0.4 0.4 23.2 23.2"> <path d="M12 18C15.3137 18 18 15.3137 18 12C18 8.68629 15.3137 6 12 6C8.68629 6 6 8.68629 6 12C6 15.3137 8.68629 18 12 18Z" stroke="#ddf2ff" stroke-width="0.9" stroke-linecap="round" stroke-linejoin="round" class="svg-elem-1"></path> <path d="M22 12L23 12" stroke="#ddf2ff" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" class="svg-elem-2"></path> <path d="M12 2V1" stroke="#ddf2ff" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" class="svg-elem-3"></path> <path d="M12 23V22" stroke="#ddf2ff" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" class="svg-elem-4"></path> <path d="M20 20L19 19" stroke="#ddf2ff" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" class="svg-elem-5"></path> <path d="M20 4L19 5" stroke="#ddf2ff" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" class="svg-elem-6"></path> <path d="M4 20L5 19" stroke="#ddf2ff" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" class="svg-elem-7"></path> <path d="M4 4L5 5" stroke="#ddf2ff" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" class="svg-elem-8"></path> <path d="M1 12L2 12" stroke="#ddf2ff" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" class="svg-elem-9"></path> </svg>
</div>
<div class="moon">
<svg class="w-7 h-7" stroke-width="0.9" fill="none" xmlns="http://www.w3.org/2000/svg" color="#ddf2ff"
Expand Down
Loading

0 comments on commit 3f05493

Please sign in to comment.