Refactor the Filament admin panel structure by adjusting navigation sorting across various resources to improve usability and logical grouping. - Reorder navigation items in 'مالی' (Finance), 'تنظیمات' (Settings), and 'عملیات' (Operations) groups. - Hide `PriceTestPage` from the main navigation sidebar. - Adjust sidebar width and max content width in `AdminPanelProvider`. - Add custom CSS asset for Filament styling.
288 lines
6.5 KiB
CSS
288 lines
6.5 KiB
CSS
@import 'tailwindcss';
|
|
|
|
/* Custom IFNEX Filament Theme */
|
|
|
|
/* Sidebar Styling */
|
|
.fi-sidebar {
|
|
background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%) !important;
|
|
border-left: 1px solid rgba(245, 158, 11, 0.2) !important;
|
|
}
|
|
|
|
.fi-sidebar-header {
|
|
background: transparent !important;
|
|
border-bottom: 1px solid rgba(245, 158, 11, 0.15) !important;
|
|
padding: 1.25rem !important;
|
|
}
|
|
|
|
.fi-sidebar-nav {
|
|
padding: 0.75rem !important;
|
|
}
|
|
|
|
/* Navigation Groups */
|
|
.fi-sidebar-nav-group {
|
|
margin-bottom: 0.5rem !important;
|
|
border-radius: 0.5rem !important;
|
|
overflow: hidden !important;
|
|
}
|
|
|
|
.fi-sidebar-nav-group-header {
|
|
background: rgba(245, 158, 11, 0.08) !important;
|
|
border-bottom: 1px solid rgba(245, 158, 11, 0.1) !important;
|
|
transition: all 0.2s ease !important;
|
|
}
|
|
|
|
.fi-sidebar-nav-group-header:hover {
|
|
background: rgba(245, 158, 11, 0.15) !important;
|
|
}
|
|
|
|
.fi-sidebar-nav-group-item {
|
|
padding: 0.5rem 0.75rem !important;
|
|
font-weight: 500 !important;
|
|
color: rgba(255, 255, 255, 0.7) !important;
|
|
transition: all 0.2s ease !important;
|
|
}
|
|
|
|
.fi-sidebar-nav-group-item:hover {
|
|
color: #fbbf24 !important;
|
|
}
|
|
|
|
/* Navigation Items */
|
|
.fi-sidebar-nav-item {
|
|
margin: 0.15rem 0 !important;
|
|
border-radius: 0.5rem !important;
|
|
transition: all 0.2s ease !important;
|
|
position: relative !important;
|
|
overflow: hidden !important;
|
|
}
|
|
|
|
.fi-sidebar-nav-item::before {
|
|
content: '' !important;
|
|
position: absolute !important;
|
|
right: 0 !important;
|
|
top: 50% !important;
|
|
transform: translateY(-50%) !important;
|
|
width: 3px !important;
|
|
height: 0 !important;
|
|
background: #fbbf24 !important;
|
|
border-radius: 3px 0 0 3px !important;
|
|
transition: height 0.2s ease !important;
|
|
}
|
|
|
|
.fi-sidebar-nav-item:hover::before,
|
|
.fi-sidebar-nav-item.active::before {
|
|
height: 60% !important;
|
|
}
|
|
|
|
.fi-sidebar-nav-item:hover {
|
|
background: rgba(245, 158, 11, 0.1) !important;
|
|
}
|
|
|
|
.fi-sidebar-nav-item.active {
|
|
background: rgba(245, 158, 11, 0.15) !important;
|
|
box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.2) !important;
|
|
}
|
|
|
|
.fi-sidebar-nav-item.active .fi-sidebar-nav-item-label {
|
|
color: #fbbf24 !important;
|
|
font-weight: 600 !important;
|
|
}
|
|
|
|
/* Icons */
|
|
.fi-sidebar-nav-item-icon {
|
|
color: rgba(255, 255, 255, 0.6) !important;
|
|
transition: color 0.2s ease !important;
|
|
}
|
|
|
|
.fi-sidebar-nav-item:hover .fi-sidebar-nav-item-icon,
|
|
.fi-sidebar-nav-item.active .fi-sidebar-nav-item-icon {
|
|
color: #fbbf24 !important;
|
|
}
|
|
|
|
/* Labels */
|
|
.fi-sidebar-nav-item-label {
|
|
color: rgba(255, 255, 255, 0.85) !important;
|
|
font-size: 0.875rem !important;
|
|
transition: color 0.2s ease !important;
|
|
}
|
|
|
|
.fi-sidebar-nav-group-item {
|
|
color: rgba(255, 255, 255, 0.5) !important;
|
|
font-size: 0.75rem !important;
|
|
text-transform: uppercase !important;
|
|
letter-spacing: 0.05em !important;
|
|
}
|
|
|
|
/* Badges */
|
|
.fi-badge {
|
|
font-weight: 600 !important;
|
|
border-radius: 9999px !important;
|
|
font-size: 0.75rem !important;
|
|
padding: 0.125rem 0.5rem !important;
|
|
}
|
|
|
|
/* Cards and Panels */
|
|
.fi-card {
|
|
border-radius: 0.75rem !important;
|
|
border: 1px solid #e5e7eb !important;
|
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
|
|
transition: all 0.2s ease !important;
|
|
}
|
|
|
|
.fi-card:hover {
|
|
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
|
|
}
|
|
|
|
/* Buttons */
|
|
.fi-btn {
|
|
border-radius: 0.5rem !important;
|
|
font-weight: 500 !important;
|
|
transition: all 0.2s ease !important;
|
|
}
|
|
|
|
.fi-btn-primary {
|
|
background: #f59e0b !important;
|
|
border-color: #f59e0b !important;
|
|
}
|
|
|
|
.fi-btn-primary:hover {
|
|
background: #d97706 !important;
|
|
border-color: #d97706 !important;
|
|
transform: translateY(-1px) !important;
|
|
box-shadow: 0 4px 6px -1px rgba(245, 158, 11, 0.3) !important;
|
|
}
|
|
|
|
/* Tables */
|
|
.fi-ta-table {
|
|
border-radius: 0.75rem !important;
|
|
overflow: hidden !important;
|
|
}
|
|
|
|
.fi-ta-header-cell {
|
|
background: #f9fafb !important;
|
|
font-weight: 600 !important;
|
|
color: #374151 !important;
|
|
font-size: 0.75rem !important;
|
|
text-transform: uppercase !important;
|
|
letter-spacing: 0.05em !important;
|
|
}
|
|
|
|
.fi-ta-row {
|
|
transition: background-color 0.15s ease !important;
|
|
}
|
|
|
|
.fi-ta-row:hover {
|
|
background-color: #fffbeb !important;
|
|
}
|
|
|
|
/* Forms */
|
|
.fi-input {
|
|
border-radius: 0.5rem !important;
|
|
border-color: #d1d5db !important;
|
|
transition: all 0.2s ease !important;
|
|
}
|
|
|
|
.fi-input:focus {
|
|
border-color: #fbbf24 !important;
|
|
box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1) !important;
|
|
}
|
|
|
|
.fi-select {
|
|
border-radius: 0.5rem !important;
|
|
}
|
|
|
|
/* Widgets */
|
|
.fi-wi-stats-overview {
|
|
gap: 1rem !important;
|
|
}
|
|
|
|
.fi-wi-stats-overview-card {
|
|
border-radius: 0.75rem !important;
|
|
border: 1px solid #e5e7eb !important;
|
|
transition: all 0.2s ease !important;
|
|
}
|
|
|
|
.fi-wi-stats-overview-card:hover {
|
|
transform: translateY(-2px) !important;
|
|
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
|
|
}
|
|
|
|
/* Dashboard */
|
|
.fi-page-header {
|
|
border-bottom: 2px solid #fbbf24 !important;
|
|
margin-bottom: 1.5rem !important;
|
|
padding-bottom: 1rem !important;
|
|
}
|
|
|
|
/* Top Navigation */
|
|
.fi-topbar {
|
|
border-bottom: 1px solid #f3f4f6 !important;
|
|
background: #ffffff !important;
|
|
}
|
|
|
|
/* Notifications */
|
|
.fi-notification {
|
|
border-radius: 0.75rem !important;
|
|
border-right: 4px solid #fbbf24 !important;
|
|
}
|
|
|
|
/* Modals */
|
|
.fi-modal {
|
|
border-radius: 0.75rem !important;
|
|
overflow: hidden !important;
|
|
}
|
|
|
|
/* Dropdowns */
|
|
.fi-dropdown {
|
|
border-radius: 0.5rem !important;
|
|
border: 1px solid #e5e7eb !important;
|
|
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1) !important;
|
|
}
|
|
|
|
/* Tabs */
|
|
.fi-tabs {
|
|
border-bottom: 2px solid #f3f4f6 !important;
|
|
}
|
|
|
|
.fi-tab {
|
|
border-bottom: 2px solid transparent !important;
|
|
margin-bottom: -2px !important;
|
|
transition: all 0.2s ease !important;
|
|
}
|
|
|
|
.fi-tab:hover {
|
|
border-bottom-color: #fbbf24 !important;
|
|
color: #d97706 !important;
|
|
}
|
|
|
|
.fi-tab.active {
|
|
border-bottom-color: #fbbf24 !important;
|
|
color: #d97706 !important;
|
|
font-weight: 600 !important;
|
|
}
|
|
|
|
/* Scrollbar */
|
|
::-webkit-scrollbar {
|
|
width: 8px !important;
|
|
height: 8px !important;
|
|
}
|
|
|
|
::-webkit-scrollbar-track {
|
|
background: #f1f5f9 !important;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
background: #cbd5e1 !important;
|
|
border-radius: 4px !important;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb:hover {
|
|
background: #94a3b8 !important;
|
|
}
|
|
|
|
/* Dark mode adjustments */
|
|
@media (prefers-color-scheme: dark) {
|
|
.fi-sidebar {
|
|
background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%) !important;
|
|
}
|
|
}
|