Skip to content

Commit 0299917

Browse files
✨ Update theme toggle component styles for improved consistency and responsiveness
1 parent 0e1a10d commit 0299917

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

resources/views/components/theme-toggle.blade.php

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<div
2-
class="theme-selector relative -mx-1.5 h-10 w-10 cursor-pointer select-none hover:text-slate-600 dark:opacity-70 dark:hover:text-[#bcc1ef]"
2+
class="theme-selector relative -mx-1.5 size-9 cursor-pointer select-none hover:text-slate-600 dark:opacity-70 dark:hover:text-[#bcc1ef]"
33
x-on:click="darkMode = !darkMode"
44
x-data="{
55
nightToDay: [
@@ -135,7 +135,7 @@ class="theme-selector-moon absolute right-1/2 top-1/2 -translate-y-1/2 translate
135135
<div class="-scale-x-100 transition duration-300">
136136
<svg
137137
xmlns="http://www.w3.org/2000/svg"
138-
class="size-[22px]"
138+
class="size-[20px]"
139139
viewBox="0 0 16 16"
140140
aria-hidden="true"
141141
focusable="false"
@@ -149,7 +149,7 @@ class="size-[22px]"
149149
</div>
150150
{{-- Mini star --}}
151151
<div
152-
class="theme-selector-mini-star absolute left-[.6rem] top-[.6rem]"
152+
class="theme-selector-mini-star absolute left-[.5rem] top-[.5rem]"
153153
aria-hidden="true"
154154
>
155155
<div class="transition duration-300">
@@ -169,7 +169,7 @@ class="size-[7px]"
169169
</div>
170170
{{-- Micro star --}}
171171
<div
172-
class="theme-selector-micro-star absolute left-[1rem] top-[1rem]"
172+
class="theme-selector-micro-star absolute left-[.9rem] top-[.9rem]"
173173
aria-hidden="true"
174174
>
175175
<div class="transition duration-300">
@@ -194,7 +194,7 @@ class="absolute right-1/2 top-1/2 -translate-y-1/2 translate-x-1/2"
194194
>
195195
<div class="theme-selector-sunball">
196196
<div
197-
class="size-3.5 rounded-full bg-current transition duration-300"
197+
class="size-3 rounded-full bg-current transition duration-300"
198198
></div>
199199
</div>
200200
</div>
@@ -206,36 +206,36 @@ class="theme-selector-sunshine absolute inset-0 grid h-full w-full"
206206
<div class="relative h-full w-full">
207207
{{-- Top --}}
208208
<div
209-
class="absolute right-1/2 top-[0.45rem] h-[3.5px] w-[2px] translate-x-1/2 rounded-full bg-current transition duration-300"
209+
class="absolute right-1/2 top-[0.45rem] h-[3px] w-[1.5px] translate-x-1/2 rounded-full bg-current transition duration-300"
210210
></div>
211211
{{-- Right --}}
212212
<div
213-
class="absolute right-[0.45rem] top-1/2 h-[3.5px] w-[2px] -translate-y-1/2 rotate-[90deg] rounded-full bg-current transition duration-300"
213+
class="absolute right-[0.45rem] top-1/2 h-[3px] w-[1.5px] -translate-y-1/2 rotate-[90deg] rounded-full bg-current transition duration-300"
214214
></div>
215215
{{-- Bottom --}}
216216
<div
217-
class="absolute bottom-[0.45rem] right-1/2 h-[3.5px] w-[2px] translate-x-1/2 rounded-full bg-current transition duration-300"
217+
class="absolute bottom-[0.45rem] right-1/2 h-[3px] w-[1.5px] translate-x-1/2 rounded-full bg-current transition duration-300"
218218
></div>
219219
{{-- Left --}}
220220
<div
221-
class="absolute left-[0.45rem] top-1/2 h-[3.5px] w-[2px] -translate-y-1/2 rotate-[90deg] rounded-full bg-current transition duration-300"
221+
class="absolute left-[0.45rem] top-1/2 h-[3px] w-[1.5px] -translate-y-1/2 rotate-[90deg] rounded-full bg-current transition duration-300"
222222
></div>
223223
{{-- Top Right --}}
224224
<div
225-
class="absolute right-[0.7rem] top-[0.7rem] h-[3.5px] w-[2px] rotate-[45deg] rounded-full bg-current transition duration-300"
225+
class="absolute right-[0.65rem] top-[0.65rem] h-[3px] w-[1.5px] rotate-[45deg] rounded-full bg-current transition duration-300"
226226
></div>
227227
{{-- Top Left --}}
228228
<div
229-
class="absolute left-[0.7rem] top-[0.7rem] h-[3.5px] w-[2px] rotate-[-45deg] rounded-full bg-current transition duration-300"
229+
class="absolute left-[0.65rem] top-[0.65rem] h-[3px] w-[1.5px] rotate-[-45deg] rounded-full bg-current transition duration-300"
230230
></div>
231231

232232
{{-- Bottom Right --}}
233233
<div
234-
class="absolute bottom-[0.7rem] right-[0.7rem] h-[3.5px] w-[2px] rotate-[-45deg] rounded-full bg-current transition duration-300"
234+
class="absolute bottom-[0.65rem] right-[0.65rem] h-[3px] w-[1.5px] rotate-[-45deg] rounded-full bg-current transition duration-300"
235235
></div>
236236
{{-- Bottom Left --}}
237237
<div
238-
class="absolute bottom-[0.7rem] left-[0.7rem] h-[3.5px] w-[2px] rotate-[45deg] rounded-full bg-current transition duration-300"
238+
class="absolute bottom-[0.65rem] left-[0.65rem] h-[3px] w-[1.5px] rotate-[45deg] rounded-full bg-current transition duration-300"
239239
></div>
240240
</div>
241241
</div>

0 commit comments

Comments
 (0)