Chinh sua giao dien phu hop tailwind css va upload
This commit is contained in:
@@ -714,3 +714,208 @@ svg[class*="fi-icon"] {
|
||||
0%, 100% { opacity: 1; }
|
||||
50% { opacity: 0.5; }
|
||||
}
|
||||
|
||||
/* ---------- TAILWIND UTILITIES (for custom blade views) ---------- */
|
||||
/* These are needed because custom blade views render inside Filament layout */
|
||||
/* which doesn't include full Tailwind CSS build */
|
||||
|
||||
/* Display */
|
||||
.inline-flex { display: inline-flex !important; }
|
||||
.inline-block { display: inline-block !important; }
|
||||
.block { display: block !important; }
|
||||
|
||||
/* Flexbox */
|
||||
.flex { display: flex !important; }
|
||||
.flex-1 { flex: 1 1 0% !important; }
|
||||
.flex-shrink-0 { flex-shrink: 0 !important; }
|
||||
.items-center { align-items: center !important; }
|
||||
.items-start { align-items: flex-start !important; }
|
||||
.justify-center { justify-content: center !important; }
|
||||
.justify-between { justify-content: space-between !important; }
|
||||
.flex-col { flex-direction: column !important; }
|
||||
|
||||
/* Gap */
|
||||
.gap-1 { gap: 0.25rem !important; }
|
||||
.gap-1\.5 { gap: 0.375rem !important; }
|
||||
.gap-2 { gap: 0.5rem !important; }
|
||||
.gap-3 { gap: 0.75rem !important; }
|
||||
.gap-4 { gap: 1rem !important; }
|
||||
|
||||
/* Width/Height */
|
||||
.w-3 { width: 0.75rem !important; }
|
||||
.w-3\.5 { width: 0.875rem !important; }
|
||||
.w-4 { width: 1rem !important; }
|
||||
.w-5 { width: 1.25rem !important; }
|
||||
.w-6 { width: 1.5rem !important; }
|
||||
.w-7 { width: 1.75rem !important; }
|
||||
.w-8 { width: 2rem !important; }
|
||||
.w-10 { width: 2.5rem !important; }
|
||||
.w-12 { width: 3rem !important; }
|
||||
.w-full { width: 100% !important; }
|
||||
.h-3 { height: 0.75rem !important; }
|
||||
.h-3\.5 { height: 0.875rem !important; }
|
||||
.h-4 { height: 1rem !important; }
|
||||
.h-5 { height: 1.25rem !important; }
|
||||
.h-6 { height: 1.5rem !important; }
|
||||
.h-7 { height: 1.75rem !important; }
|
||||
.h-8 { height: 2rem !important; }
|
||||
.h-10 { height: 2.5rem !important; }
|
||||
.h-12 { height: 3rem !important; }
|
||||
.h-full { height: 100% !important; }
|
||||
.min-w-0 { min-width: 0 !important; }
|
||||
.max-w-full { max-width: 100% !important; }
|
||||
|
||||
/* Padding */
|
||||
.p-3 { padding: 0.75rem !important; }
|
||||
.p-4 { padding: 1rem !important; }
|
||||
.px-1 { padding-left: 0.25rem !important; padding-right: 0.25rem !important; }
|
||||
.px-1\.5 { padding-left: 0.375rem !important; padding-right: 0.375rem !important; }
|
||||
.px-2 { padding-left: 0.5rem !important; padding-right: 0.5rem !important; }
|
||||
.px-2\.5 { padding-left: 0.625rem !important; padding-right: 0.625rem !important; }
|
||||
.px-3 { padding-left: 0.75rem !important; padding-right: 0.75rem !important; }
|
||||
.px-4 { padding-left: 1rem !important; padding-right: 1rem !important; }
|
||||
.px-5 { padding-left: 1.25rem !important; padding-right: 1.25rem !important; }
|
||||
.py-0\.5 { padding-top: 0.125rem !important; padding-bottom: 0.125rem !important; }
|
||||
.py-1 { padding-top: 0.25rem !important; padding-bottom: 0.25rem !important; }
|
||||
.py-1\.5 { padding-top: 0.375rem !important; padding-bottom: 0.375rem !important; }
|
||||
.py-2 { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }
|
||||
.py-2\.5 { padding-top: 0.625rem !important; padding-bottom: 0.625rem !important; }
|
||||
.py-3 { padding-top: 0.75rem !important; padding-bottom: 0.75rem !important; }
|
||||
.py-4 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
|
||||
.py-6 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
|
||||
.py-8 { padding-top: 2rem !important; padding-bottom: 2rem !important; }
|
||||
|
||||
/* Margin */
|
||||
.mt-1 { margin-top: 0.25rem !important; }
|
||||
.mt-1\.5 { margin-top: 0.375rem !important; }
|
||||
.mt-2 { margin-top: 0.5rem !important; }
|
||||
.mt-3 { margin-top: 0.75rem !important; }
|
||||
.mt-4 { margin-top: 1rem !important; }
|
||||
.mt-6 { margin-top: 1.5rem !important; }
|
||||
.mt-8 { margin-top: 2rem !important; }
|
||||
|
||||
/* Border */
|
||||
.rounded { border-radius: 0.25rem !important; }
|
||||
.rounded-md { border-radius: 0.375rem !important; }
|
||||
.rounded-lg { border-radius: 0.5rem !important; }
|
||||
.rounded-xl { border-radius: 0.75rem !important; }
|
||||
.rounded-full { border-radius: 9999px !important; }
|
||||
.border { border-width: 1px !important; border-style: solid !important; }
|
||||
.border-t { border-top-width: 1px !important; border-top-style: solid !important; }
|
||||
.border-b { border-bottom-width: 1px !important; border-bottom-style: solid !important; }
|
||||
.divide-y > * + * { border-top-width: 1px !important; border-top-style: solid !important; }
|
||||
.divide-gray-100 > * + * { border-color: #f3f4f6 !important; }
|
||||
.divide-gray-200 > * + * { border-color: #e5e7eb !important; }
|
||||
|
||||
/* Border colors */
|
||||
.border-gray-100 { border-color: #f3f4f6 !important; }
|
||||
.border-gray-200 { border-color: #e5e7eb !important; }
|
||||
.border-gray-300 { border-color: #d1d5db !important; }
|
||||
.border-amber-200 { border-color: #fde68a !important; }
|
||||
.border-blue-100 { border-color: #dbeafe !important; }
|
||||
.border-blue-200 { border-color: #bfdbfe !important; }
|
||||
.border-green-100 { border-color: #dcfce7 !important; }
|
||||
.border-green-200 { border-color: #bbf7d0 !important; }
|
||||
.border-red-100 { border-color: #fee2e2 !important; }
|
||||
.border-red-200 { border-color: #fecaca !important; }
|
||||
|
||||
/* Background colors */
|
||||
.bg-white { background-color: #ffffff !important; }
|
||||
.bg-gray-50 { background-color: #f9fafb !important; }
|
||||
.bg-gray-100 { background-color: #f3f4f6 !important; }
|
||||
.bg-gray-200 { background-color: #e5e7eb !important; }
|
||||
.bg-amber-50 { background-color: #fffbeb !important; }
|
||||
.bg-blue-50 { background-color: #eff6ff !important; }
|
||||
.bg-blue-100 { background-color: #dbeafe !important; }
|
||||
.bg-green-50 { background-color: #f0fdf4 !important; }
|
||||
.bg-green-100 { background-color: #dcfce7 !important; }
|
||||
.bg-red-50 { background-color: #fef2f2 !important; }
|
||||
.bg-red-100 { background-color: #fee2e2 !important; }
|
||||
.bg-purple-50 { background-color: #faf5ff !important; }
|
||||
.bg-purple-100 { background-color: #f3e8ff !important; }
|
||||
|
||||
/* Text colors */
|
||||
.text-gray-300 { color: #d1d5db !important; }
|
||||
.text-gray-400 { color: #9ca3af !important; }
|
||||
.text-gray-500 { color: #6b7280 !important; }
|
||||
.text-gray-600 { color: #4b5563 !important; }
|
||||
.text-gray-700 { color: #374151 !important; }
|
||||
.text-gray-900 { color: #111827 !important; }
|
||||
.text-amber-500 { color: #f59e0b !important; }
|
||||
.text-amber-700 { color: #b45309 !important; }
|
||||
.text-blue-400 { color: #60a5fa !important; }
|
||||
.text-blue-500 { color: #3b82f6 !important; }
|
||||
.text-blue-600 { color: #2563eb !important; }
|
||||
.text-blue-700 { color: #1d4ed8 !important; }
|
||||
.text-blue-800 { color: #1e40af !important; }
|
||||
.text-green-500 { color: #22c55e !important; }
|
||||
.text-green-700 { color: #15803d !important; }
|
||||
.text-red-400 { color: #f87171 !important; }
|
||||
.text-red-500 { color: #ef4444 !important; }
|
||||
.text-red-700 { color: #b91c1c !important; }
|
||||
.text-purple-500 { color: #a855f7 !important; }
|
||||
.text-white { color: #ffffff !important; }
|
||||
|
||||
/* Font sizes */
|
||||
.text-\[9px\] { font-size: 9px !important; }
|
||||
.text-\[10px\] { font-size: 10px !important; }
|
||||
.text-\[11px\] { font-size: 11px !important; }
|
||||
.text-xs { font-size: 0.75rem !important; line-height: 1rem !important; }
|
||||
.text-sm { font-size: 0.875rem !important; line-height: 1.25rem !important; }
|
||||
.text-base { font-size: 1rem !important; line-height: 1.5rem !important; }
|
||||
.text-lg { font-size: 1.125rem !important; line-height: 1.75rem !important; }
|
||||
|
||||
/* Font weight */
|
||||
.font-normal { font-weight: 400 !important; }
|
||||
.font-medium { font-weight: 500 !important; }
|
||||
.font-semibold { font-weight: 600 !important; }
|
||||
.font-bold { font-weight: 700 !important; }
|
||||
|
||||
/* Text decoration */
|
||||
.no-underline { text-decoration: none !important; }
|
||||
.underline { text-decoration: underline !important; }
|
||||
.truncate { overflow: hidden !important; text-overflow: ellipsis !important; white-space: nowrap !important; }
|
||||
.uppercase { text-transform: uppercase !important; }
|
||||
.tracking-wider { letter-spacing: 0.05em !important; }
|
||||
|
||||
/* Overflow */
|
||||
.overflow-hidden { overflow: hidden !important; }
|
||||
.overflow-x-auto { overflow-x: auto !important; }
|
||||
|
||||
/* Shadow */
|
||||
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05) !important; }
|
||||
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1) !important; }
|
||||
|
||||
/* Transition */
|
||||
.transition-colors { transition-property: color, background-color, border-color !important; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important; transition-duration: 150ms !important; }
|
||||
|
||||
/* Cursor */
|
||||
.cursor-pointer { cursor: pointer !important; }
|
||||
|
||||
/* Table */
|
||||
.w-full { width: 100% !important; }
|
||||
.text-left { text-align: left !important; }
|
||||
.text-center { text-align: center !important; }
|
||||
.border-collapse { border-collapse: collapse !important; }
|
||||
|
||||
/* Hover states */
|
||||
.hover\:bg-blue-50\/50:hover { background-color: rgba(239, 246, 255, 0.5) !important; }
|
||||
.hover\:bg-gray-50\/50:hover { background-color: rgba(249, 250, 251, 0.5) !important; }
|
||||
.hover\:text-blue-600:hover { color: #2563eb !important; }
|
||||
.hover\:text-blue-800:hover { color: #1e40af !important; }
|
||||
.hover\:underline:hover { text-decoration: underline !important; }
|
||||
.hover\:border-blue-300:hover { border-color: #93c5fd !important; }
|
||||
.group:hover .group-hover\:text-blue-500 { color: #3b82f6 !important; }
|
||||
.group:hover .group-hover\:text-blue-600 { color: #2563eb !important; }
|
||||
|
||||
/* Grid */
|
||||
.grid { display: grid !important; }
|
||||
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)) !important; }
|
||||
|
||||
@media (min-width: 768px) {
|
||||
.md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
|
||||
}
|
||||
|
||||
@media (min-width: 1024px) {
|
||||
.lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user