1
1
<div
2
- class =" theme-selector relative h-11 w-11 cursor-pointer select-none hover:text-slate-600 dark:text-[#ABB0DD] dark:hover:text-[#bcc1ef]"
2
+ class =" theme-selector relative h-10 w-10 cursor-pointer select-none hover:text-slate-600 dark:text-[#ABB0DD] dark:hover:text-[#bcc1ef]"
3
3
x-on:click =" darkMode = !darkMode"
4
4
x-data =" {
5
5
nightToDay: [
@@ -128,8 +128,7 @@ class="theme-selector-moon absolute right-1/2 top-1/2 -translate-y-1/2 translate
128
128
<div class =" -scale-x-100 transition duration-300" >
129
129
<svg
130
130
xmlns =" http://www.w3.org/2000/svg"
131
- width =" 24"
132
- height =" 24"
131
+ class =" size-[22px]"
133
132
viewBox =" 0 0 16 16"
134
133
>
135
134
<path
@@ -144,8 +143,7 @@ class="theme-selector-moon absolute right-1/2 top-1/2 -translate-y-1/2 translate
144
143
<div class =" transition duration-300" >
145
144
<svg
146
145
xmlns =" http://www.w3.org/2000/svg"
147
- width =" 7"
148
- height =" 7"
146
+ class =" size-[7px]"
149
147
viewBox =" 0 0 256 256"
150
148
>
151
149
<path
@@ -160,8 +158,7 @@ class="theme-selector-moon absolute right-1/2 top-1/2 -translate-y-1/2 translate
160
158
<div class =" transition duration-300" >
161
159
<svg
162
160
xmlns =" http://www.w3.org/2000/svg"
163
- width =" 5"
164
- height =" 5"
161
+ class =" size-[5px]"
165
162
viewBox =" 0 0 256 256"
166
163
>
167
164
<path
@@ -175,7 +172,7 @@ class="theme-selector-moon absolute right-1/2 top-1/2 -translate-y-1/2 translate
175
172
<div class =" absolute right-1/2 top-1/2 -translate-y-1/2 translate-x-1/2" >
176
173
<div class =" theme-selector-sunball" >
177
174
<div
178
- class =" h-4 w-4 rounded-full bg-current transition duration-300"
175
+ class =" size-3.5 rounded-full bg-current transition duration-300"
179
176
></div >
180
177
</div >
181
178
</div >
@@ -184,36 +181,36 @@ class="h-4 w-4 rounded-full bg-current transition duration-300"
184
181
<div class =" relative h-full w-full" >
185
182
{{-- Top --}}
186
183
<div
187
- class =" absolute right-1/2 top-[0.5rem ] h-[0.22rem ] w-0.5 translate-x-1/2 rounded-full bg-current transition duration-300"
184
+ class =" absolute right-1/2 top-[0.45rem ] h-[3.5px ] w-[2px] translate-x-1/2 rounded-full bg-current transition duration-300"
188
185
></div >
189
186
{{-- Right --}}
190
187
<div
191
- class =" absolute right-[0.5rem ] top-1/2 h-[0.22rem ] w-0.5 -translate-y-1/2 rotate-[90deg] rounded-full bg-current transition duration-300"
188
+ 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"
192
189
></div >
193
190
{{-- Bottom --}}
194
191
<div
195
- class =" absolute bottom-[0.5rem ] right-1/2 h-[0.22rem ] w-0.5 translate-x-1/2 rounded-full bg-current transition duration-300"
192
+ class =" absolute bottom-[0.45rem ] right-1/2 h-[3.5px ] w-[2px] translate-x-1/2 rounded-full bg-current transition duration-300"
196
193
></div >
197
194
{{-- Left --}}
198
195
<div
199
- class =" absolute left-[0.5rem ] top-1/2 h-[0.22rem ] w-0.5 -translate-y-1/2 rotate-[90deg] rounded-full bg-current transition duration-300"
196
+ 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"
200
197
></div >
201
198
{{-- Top Right --}}
202
199
<div
203
- class =" absolute right-[0.75rem ] top-[0.75rem ] h-[0.22rem ] w-0.5 rotate-[45deg] rounded-full bg-current transition duration-300"
200
+ class =" absolute right-[0.7rem ] top-[0.7rem ] h-[3.5px ] w-[2px] rotate-[45deg] rounded-full bg-current transition duration-300"
204
201
></div >
205
202
{{-- Top Left --}}
206
203
<div
207
- class =" absolute left-[0.75rem ] top-[0.75rem ] h-[0.22rem ] w-0.5 rotate-[-45deg] rounded-full bg-current transition duration-300"
204
+ class =" absolute left-[0.7rem ] top-[0.7rem ] h-[3.5px ] w-[2px] rotate-[-45deg] rounded-full bg-current transition duration-300"
208
205
></div >
209
206
210
207
{{-- Bottom Right --}}
211
208
<div
212
- class =" absolute bottom-[0.75rem ] right-[0.75rem ] h-[0.22rem ] w-0.5 rotate-[-45deg] rounded-full bg-current transition duration-300"
209
+ class =" absolute bottom-[0.7rem ] right-[0.7rem ] h-[3.5px ] w-[2px] rotate-[-45deg] rounded-full bg-current transition duration-300"
213
210
></div >
214
211
{{-- Bottom Left --}}
215
212
<div
216
- class =" absolute bottom-[0.75rem ] left-[0.75rem ] h-[0.22rem ] w-0.5 rotate-[45deg] rounded-full bg-current transition duration-300"
213
+ class =" absolute bottom-[0.7rem ] left-[0.7rem ] h-[3.5px ] w-[2px] rotate-[45deg] rounded-full bg-current transition duration-300"
217
214
></div >
218
215
</div >
219
216
</div >
0 commit comments