Update styles to use plain CSS instead of @apply directives

Converts CSS from Tailwind's @apply directive to plain CSS for improved compatibility with Tailwind 4 and better maintainability.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: c537be14-ffc2-48de-88ef-2bdd9e6ae15a
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/d6d61dac-164d-45dd-929f-7dcdfd771b64/c537be14-ffc2-48de-88ef-2bdd9e6ae15a/C5U8Nxc
This commit is contained in:
pac7
2025-09-22 02:09:35 +00:00
parent 8c85963817
commit b265d793a3
4 changed files with 126 additions and 80 deletions

View File

@@ -134,313 +134,241 @@ body {
/* Enhanced Button Styles */
.btn {
@apply inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50;
}
.btn-default {
@apply bg-primary text-primary-foreground hover:bg-primary/90;
}
.btn-destructive {
@apply bg-destructive text-destructive-foreground hover:bg-destructive/90;
}
.btn-outline {
@apply border border-input bg-background hover:bg-accent hover:text-accent-foreground;
}
.btn-secondary {
@apply bg-secondary text-secondary-foreground hover:bg-secondary/80;
}
.btn-ghost {
@apply hover:bg-accent hover:text-accent-foreground;
}
.btn-link {
@apply text-primary underline-offset-4 hover:underline;
}
.btn-sm {
@apply h-9 rounded-md px-3;
}
.btn-lg {
@apply h-11 rounded-md px-8;
}
.btn-icon {
@apply h-10 w-10;
}
/* Enhanced Card Styles */
.card {
@apply rounded-lg border bg-card text-card-foreground shadow-sm;
}
.card-header {
@apply flex flex-col space-y-1.5 p-6;
}
.card-title {
@apply text-2xl font-semibold leading-none tracking-tight;
}
.card-description {
@apply text-sm text-muted-foreground;
}
.card-content {
@apply p-6 pt-0;
}
.card-footer {
@apply flex items-center p-6 pt-0;
}
/* Enhanced Input Styles */
.input {
@apply flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50;
}
/* Enhanced Form Styles */
.form-group {
@apply space-y-2;
}
.form-label {
@apply text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70;
}
.form-error {
@apply text-sm font-medium text-destructive;
}
.form-description {
@apply text-sm text-muted-foreground;
}
/* Enhanced Navigation Styles */
.nav-link {
@apply flex items-center gap-2 px-3 py-2 text-sm font-medium rounded-md hover:bg-accent hover:text-accent-foreground transition-colors;
}
.nav-link.active {
@apply bg-accent text-accent-foreground;
}
/* Enhanced Dropdown Styles */
.dropdown-content {
@apply z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md;
}
.dropdown-item {
@apply relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50;
}
/* Browse Menu Specific Styles - Removed to fix Tailwind 4 compatibility */
.dropdown-separator {
@apply -mx-1 my-1 h-px bg-muted;
}
/* Enhanced Modal Styles */
.modal-overlay {
@apply fixed inset-0 z-50 bg-background/80 backdrop-blur-sm;
}
.modal-content {
@apply fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 sm:rounded-lg;
}
.modal-header {
@apply flex flex-col space-y-1.5 text-center sm:text-left;
}
.modal-title {
@apply text-lg font-semibold leading-none tracking-tight;
}
.modal-description {
@apply text-sm text-muted-foreground;
}
.modal-footer {
@apply flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2;
}
/* Enhanced Alert Styles */
.alert {
@apply relative w-full rounded-lg border p-4;
}
.alert-default {
@apply bg-background text-foreground;
}
.alert-destructive {
@apply border-destructive/50 text-destructive dark:border-destructive;
}
.alert-title {
@apply mb-1 font-medium leading-none tracking-tight;
}
.alert-description {
@apply text-sm opacity-90;
}
/* Enhanced Badge Styles */
.badge {
@apply inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2;
}
.badge-default {
@apply border-transparent bg-primary text-primary-foreground hover:bg-primary/80;
}
.badge-secondary {
@apply border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80;
}
.badge-destructive {
@apply border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80;
}
.badge-outline {
@apply text-foreground;
}
/* Enhanced Table Styles */
.table {
@apply w-full caption-bottom text-sm;
}
.table-header {
@apply border-b;
}
.table-body {
@apply divide-y;
}
.table-row {
@apply border-b transition-colors hover:bg-muted/50;
}
.table-head {
@apply h-12 px-4 text-left align-middle font-medium text-muted-foreground;
}
.table-cell {
@apply p-4 align-middle;
}
/* Enhanced Skeleton Styles */
.skeleton {
@apply animate-pulse rounded-md bg-muted;
}
/* Enhanced Separator Styles */
.separator {
@apply shrink-0 bg-border;
}
.separator-horizontal {
@apply h-[1px] w-full;
}
.separator-vertical {
@apply h-full w-[1px];
}
/* Enhanced Avatar Styles */
.avatar {
@apply relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full;
}
.avatar-image {
@apply aspect-square h-full w-full object-cover;
}
.avatar-fallback {
@apply flex h-full w-full items-center justify-center rounded-full bg-muted;
}
/* Enhanced Progress Styles */
.progress {
@apply relative h-4 w-full overflow-hidden rounded-full bg-secondary;
}
.progress-indicator {
@apply h-full w-full flex-1 bg-primary transition-all;
}
/* Enhanced Scroll Area Styles */
.scroll-area {
@apply relative overflow-hidden;
}
.scroll-viewport {
@apply h-full w-full rounded-[inherit];
}
.scroll-bar {
@apply flex touch-none select-none transition-colors;
}
.scroll-thumb {
@apply relative flex-1 rounded-full bg-border;
}
/* Enhanced Tabs Styles */
.tabs-list {
@apply inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground;
}
.tabs-trigger {
@apply inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm;
}
.tabs-content {
@apply mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2;
}
/* Enhanced Tooltip Styles */
.tooltip-content {
@apply z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95;
}
/* Enhanced Switch Styles */
.switch {
@apply peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input;
}
.switch-thumb {
@apply pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0;
}
/* Enhanced Checkbox Styles */
.checkbox {
@apply peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground;
}
/* Enhanced Radio Styles */
.radio {
@apply aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50;
}
/* Enhanced Select Styles */
.select-trigger {
@apply flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50;
}
.select-content {
@apply relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md;
}
.select-item {
@apply relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50;
}
/* Utility Classes */
@@ -514,11 +442,13 @@ body {
/* Responsive Design Helpers */
@media (max-width: 640px) {
.modal-content {
@apply w-[95vw] max-w-none;
width: 95vw;
max-width: none;
}
.dropdown-content {
@apply w-screen max-w-none;
width: 100vw;
max-width: none;
}
}