File size: 2,001 Bytes
5010ad7 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 | @import "tailwindcss";
@plugin "@tailwindcss/typography";
@theme {
--color-primary-50: #eff6ff;
--color-primary-100: #dbeafe;
--color-primary-200: #bfdbfe;
--color-primary-300: #93c5fd;
--color-primary-400: #60a5fa;
--color-primary-500: #3b82f6;
--color-primary-600: #2563eb;
--color-primary-700: #1d4ed8;
--color-primary-800: #1e40af;
--color-primary-900: #1e3a8a;
}
@layer components {
.flag-icon {
@apply inline-flex items-center justify-center w-5 h-5 rounded bg-gray-200 text-xs font-medium;
}
/* Admin Form Inputs */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="datetime-local"]:focus,
select:focus,
textarea:focus {
@apply outline-none;
}
input[type="text"]:hover:not(:focus),
input[type="email"]:hover:not(:focus),
input[type="password"]:hover:not(:focus),
input[type="datetime-local"]:hover:not(:focus),
select:hover:not(:focus),
textarea:hover:not(:focus) {
@apply border-gray-300;
}
input[type="checkbox"]:checked {
@apply bg-indigo-600 border-indigo-600;
}
/* Form Error States */
.field_with_errors input,
.field_with_errors select,
.field_with_errors textarea {
@apply border-red-400 bg-red-50;
}
.field_with_errors input:focus,
.field_with_errors select:focus,
.field_with_errors textarea:focus {
@apply border-red-500 ring-red-100;
}
/* Loading States */
input[type="submit"]:disabled,
button:disabled {
@apply opacity-60 cursor-not-allowed;
}
}
.language-tab.active {
border-color: var(--color-primary-500);
color: var(--color-primary-600);
}
.language-tab:hover {
@apply scale-105;
}
.trix-button-group {
@apply border-gray-200 bg-gray-50 rounded-t;
}
.trix-button {
@apply border-gray-200 text-gray-600 hover:bg-gray-100 transition-colors duration-150;
}
.trix-button.trix-active {
@apply bg-indigo-100 text-indigo-700;
}
.trix-content {
@apply prose prose-sm max-w-none min-h-[200px] p-4;
}
|