Skip to content

Commit 0c898b3

Browse files
committed
fix: interactive styling
1 parent c7d9f6c commit 0c898b3

File tree

1 file changed

+11
-21
lines changed

1 file changed

+11
-21
lines changed

frontend/src/app/globals.css

Lines changed: 11 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,16 @@
118118
@apply bg-neutral-400 dark:bg-neutral-600;
119119
}
120120

121+
@utility bg-interactive {
122+
@apply bg-neutral-50 dark:bg-neutral-700;
123+
}
124+
@utility bg-interactive-hover {
125+
@apply hover:bg-neutral-100 dark:hover:bg-neutral-600;
126+
}
127+
@utility interactive-disabled {
128+
@apply disabled:opacity-50 disabled:bg-disabled disabled:hover:bg-disabled disabled:text-primary disabled:border-default disabled:cursor-default;
129+
}
130+
121131
/* Borders */
122132
@utility border-default {
123133
@apply border-neutral-200 dark:border-neutral-700;
@@ -197,20 +207,6 @@
197207
@apply border-primary-600;
198208
}
199209

200-
/* ---------------------------------- */
201-
/* Interactive */
202-
/* ---------------------------------- */
203-
204-
@utility bg-interactive {
205-
@apply bg-neutral-50 dark:bg-neutral-800;
206-
}
207-
@utility bg-interactive-hover {
208-
@apply hover:bg-neutral-100 dark:hover:bg-neutral-700;
209-
}
210-
@utility interactive-disabled {
211-
@apply disabled:opacity-50 disabled:bg-disabled disabled:hover:bg-disabled disabled:text-primary disabled:border-default disabled:cursor-default;
212-
}
213-
214210
/* ========================================================================== */
215211
/* 1. Semantic Animation Utilities */
216212
/* ========================================================================== */
@@ -248,12 +244,6 @@
248244
@apply opacity-0;
249245
}
250246

251-
/* Interactive States */
252-
@utility interactive-element {
253-
transition: all 0.2s ease;
254-
@apply cursor-pointer focus-accent;
255-
}
256-
257247
/* Focus Animations */
258248
@utility focus-ring {
259249
@apply focus:outline-none focus:ring-2 focus:ring-primary-500 focus:ring-offset-2 transition-all duration-200;
@@ -374,7 +364,7 @@
374364
@apply bg-surface border border-default rounded-xl shadow-soft dark:shadow-soft-dark p-4 border-1 w-full;
375365
}
376366
.card-interactive {
377-
@apply interactive-element hover-lift;
367+
@apply cursor-pointer focus-accent hover-lift;
378368
}
379369

380370
.voucher-code {

0 commit comments

Comments
 (0)