Skip to content

Commit bc7b83b

Browse files
committed
Refactor transition usage
1 parent 97d9f56 commit bc7b83b

File tree

8 files changed

+13
-11
lines changed

8 files changed

+13
-11
lines changed

resources/css/buttons.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
@utility button {
2-
@apply cursor-pointer rounded-md bg-brand-800 px-6 py-3 text-sm font-semibold text-white inline-flex shadow-xs hover:bg-brand-600 transition-all ease-in-out duration-200;
2+
@apply cursor-pointer rounded-md bg-brand-800 px-6 py-3 text-sm font-semibold text-white inline-flex shadow-xs hover:bg-brand-600 transition-colors;
33

44
&[disabled] {
55
@apply pointer-events-none opacity-50;

resources/css/forms.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
}
3030

3131
@utility field {
32-
@apply block rounded-md border-brand-300 shadow-xs outline-hidden hover:ring-3 hover:ring-brand-200/50 focus:border-brand-300 focus:ring-3 focus:ring-brand-200/50 focus:ring-offset-0 transition ease-in-out duration-200;
32+
@apply block rounded-md border-brand-300 shadow-xs outline-hidden hover:ring-3 hover:ring-brand-200/50 focus:border-brand-300 focus:ring-3 focus:ring-brand-200/50 focus:ring-offset-0 transition;
3333
}
3434

3535
@utility input {

resources/css/variables.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
@theme {
2+
--default-transition-duration: 0.2s;
3+
24
--font-text: "Arial", sans-serif;
35
--font-heading: "Arial", sans-serif;
46
--font-serif: "Georgia", sans-serif;

resources/js/Components/Footer.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
© 2024
66
<a
77
href="https://sebkay.com/"
8-
class="underline hover:decoration-transparent transition-colors ease-in-out duration-200"
8+
class="text-link"
99
target="_blank"
1010
>Seb Kay</a
1111
>. All rights reserved.

resources/js/Components/Header.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
:method="link?.method"
2222
:as="link?.method == 'post' ? 'button' : 'a'"
2323
v-text="link.label"
24-
class="rounded-xl px-3 py-2 text-sm font-medium cursor-pointer transition-colors ease-in-out duration-200"
24+
class="rounded-xl px-3 py-2 text-sm font-medium cursor-pointer transition-colors"
2525
:class="{
2626
'bg-brand-100 text-brand-950': link.components.includes($page.component),
2727
'text-brand-600 hover:text-brand-950 focus:text-brand-950': !link.components.includes($page.component),

resources/js/Pages/Login/Show.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
>
3535
Password
3636
<Link
37-
class="underline hover:decoration-transparent transition-colors ease-in-out duration-200"
37+
class="text-link"
3838
:href="route('password')"
3939
text="Forgot password?"
4040
/>
@@ -49,16 +49,16 @@
4949
</div>
5050

5151
<div class="form-col">
52-
<label class="inline-flex items-center gap-3 cursor-pointer">
52+
<label class="toggle">
5353
<input
5454
class="sr-only peer"
5555
type="checkbox"
5656
v-model="loginForm.remember"
5757
/>
5858
<div
59-
class="relative w-9 h-5 bg-neutral-200 peer-focus:outline-hidden rounded-full peer peer-checked:after:translate-x-full peer-checked:rtl:after:-translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:start-[2px] after:bg-white after:border-neutral-300 after:border after:rounded-full after:size-4 after:transition-all peer-checked:bg-brand-600">
59+
class="peer">
6060
</div>
61-
<span class="text-sm font-medium">
61+
<span>
6262
Remember me
6363
</span>
6464
</label>
@@ -79,7 +79,7 @@
7979
<p class="text-center mt-3">
8080
Don't have an account?
8181
<Link
82-
class="underline hover:decoration-transparent transition-colors ease-in-out duration-200"
82+
class="text-link"
8383
:href="route('register')"
8484
text="Register"
8585
/>

resources/js/Pages/Register/Show.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@
9090
<p class="text-center">
9191
Already have an account?
9292
<Link
93-
class="underline hover:decoration-transparent transition-colors ease-in-out duration-200"
93+
class="text-link"
9494
:href="route('login')"
9595
text="Log In"
9696
/>

resources/js/Pages/ResetPassword/Show.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
<p class="text-center">
4343
Remembered your password?
4444
<Link
45-
class="underline hover:decoration-transparent transition-colors ease-in-out duration-200"
45+
class="text-link"
4646
:href="route('login')"
4747
text="Login"
4848
/>

0 commit comments

Comments
 (0)