Skip to content

Commit 530a1ee

Browse files
committed
refactor: rename 'hover-expand' class to fit its actual usage now lol
1 parent dc2af05 commit 530a1ee

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/lib/components/ThemeToggle.svelte

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,14 +62,14 @@
6262
</script>
6363

6464
<button bind:this={sunButton} onclick={toggleTheme}>
65-
<img src="/icons/sun.svg" alt="Sun" class="hover-expand w-16 select-none" />
65+
<img src="/icons/sun.svg" alt="Sun" class="theme-button w-16 select-none" />
6666
</button>
6767
<button bind:this={moonButton} onclick={toggleTheme}>
68-
<img src="/icons/moon.svg" alt="Moon" class="hover-expand w-16 select-none" />
68+
<img src="/icons/moon.svg" alt="Moon" class="theme-button w-16 select-none" />
6969
</button>
7070

7171
<style>
72-
.hover-expand {
72+
.theme-button {
7373
transition: all 0.5s;
7474
transform: translateY(-20%) rotate(45deg);
7575
@@ -80,7 +80,7 @@
8080
transform: translateY(20%) rotate(45deg);
8181
}
8282
}
83-
.hover-expand:hover {
83+
.theme-button:hover {
8484
scale: 110%;
8585
}
8686

0 commit comments

Comments
 (0)