feat: Оптимизация навигации AdminJS в логические группы
- Объединены ресурсы в 5 логических групп: Контент сайта, Бронирования, Отзывы и рейтинги, Персонал и гиды, Администрирование - Удалены дублирующие настройки navigation для чистой группировки - Добавлены CSS стили для визуального отображения иерархии с отступами - Добавлены эмодзи-иконки для каждого типа ресурсов через CSS - Улучшена навигация с правильной вложенностью элементов
This commit is contained in:
@@ -15,6 +15,46 @@
|
||||
background: linear-gradient(180deg, #1f2937 0%, #111827 100%) !important;
|
||||
}
|
||||
|
||||
/* Navigation Group Styling */
|
||||
/* Parent groups (main categories) */
|
||||
nav[data-testid="sidebar"] > ul > li > a[href*="parent"] {
|
||||
font-weight: 600 !important;
|
||||
color: #ffffff !important;
|
||||
background-color: rgba(255,255,255,0.1) !important;
|
||||
margin-bottom: 0.25rem !important;
|
||||
border-radius: 0.375rem !important;
|
||||
}
|
||||
|
||||
/* Child resources (nested items) */
|
||||
nav[data-testid="sidebar"] > ul > li > ul > li > a {
|
||||
padding-left: 3rem !important;
|
||||
color: #d1d5db !important;
|
||||
border-left: 2px solid rgba(255,255,255,0.1) !important;
|
||||
margin-left: 1rem !important;
|
||||
position: relative !important;
|
||||
}
|
||||
|
||||
/* Icons for nested resources */
|
||||
nav[data-testid="sidebar"] > ul > li > ul > li > a:before {
|
||||
content: "📄" !important;
|
||||
margin-right: 0.5rem !important;
|
||||
opacity: 0.7 !important;
|
||||
}
|
||||
|
||||
/* Specific icons for different resource types */
|
||||
nav[data-testid="sidebar"] a[href*="routes"]:before { content: "🗺️" !important; }
|
||||
nav[data-testid="sidebar"] a[href*="articles"]:before { content: "📝" !important; }
|
||||
nav[data-testid="sidebar"] a[href*="bookings"]:before { content: "📋" !important; }
|
||||
nav[data-testid="sidebar"] a[href*="reviews"]:before { content: "⭐" !important; }
|
||||
nav[data-testid="sidebar"] a[href*="ratings"]:before { content: "📈" !important; }
|
||||
nav[data-testid="sidebar"] a[href*="guides"]:before { content: "👥" !important; }
|
||||
nav[data-testid="sidebar"] a[href*="guide_schedules"]:before { content: "📅" !important; }
|
||||
nav[data-testid="sidebar"] a[href*="holidays"]:before { content: "🏛️" !important; }
|
||||
nav[data-testid="sidebar"] a[href*="guide_working_days"]:before { content: "📅" !important; }
|
||||
nav[data-testid="sidebar"] a[href*="contact_messages"]:before { content: "📧" !important; }
|
||||
nav[data-testid="sidebar"] a[href*="admins"]:before { content: "👤" !important; }
|
||||
nav[data-testid="sidebar"] a[href*="site_settings"]:before { content: "⚙️" !important; }
|
||||
|
||||
.nav-sidebar .nav-item > .nav-link {
|
||||
color: #d1d5db !important;
|
||||
transition: all 0.3s ease;
|
||||
@@ -301,4 +341,65 @@ input[name*="avatar"]:focus {
|
||||
.image-preview {
|
||||
max-width: 100% !important;
|
||||
}
|
||||
}
|
||||
|
||||
/* ===== НОВЫЕ СТИЛИ ДЛЯ КАСТОМНЫХ СТРАНИЦ ===== */
|
||||
|
||||
/* Улучшение кнопок редактора изображений */
|
||||
.image-editor-btn {
|
||||
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
|
||||
border: none !important;
|
||||
color: white !important;
|
||||
padding: 8px 16px !important;
|
||||
border-radius: 6px !important;
|
||||
font-size: 12px !important;
|
||||
font-weight: 500 !important;
|
||||
cursor: pointer !important;
|
||||
transition: all 0.2s ease !important;
|
||||
margin-left: 10px !important;
|
||||
display: inline-flex !important;
|
||||
align-items: center !important;
|
||||
gap: 6px !important;
|
||||
}
|
||||
|
||||
.image-editor-btn:hover {
|
||||
transform: translateY(-1px) !important;
|
||||
box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3) !important;
|
||||
}
|
||||
|
||||
/* Улучшение модальных окон */
|
||||
.image-editor-modal {
|
||||
backdrop-filter: blur(5px) !important;
|
||||
}
|
||||
|
||||
.image-editor-modal .modal-content {
|
||||
border-radius: 12px !important;
|
||||
box-shadow: 0 20px 40px rgba(0,0,0,0.3) !important;
|
||||
overflow: hidden !important;
|
||||
}
|
||||
|
||||
/* Превью изображений */
|
||||
.image-preview {
|
||||
border-radius: 8px !important;
|
||||
box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
|
||||
border: 2px solid #e9ecef !important;
|
||||
transition: all 0.2s ease !important;
|
||||
}
|
||||
|
||||
.image-preview:hover {
|
||||
transform: scale(1.05) !important;
|
||||
box-shadow: 0 8px 20px rgba(0,0,0,0.15) !important;
|
||||
}
|
||||
|
||||
/* Стили для кастомных страниц в AdminJS */
|
||||
.adminjs-page {
|
||||
background: #f8f9fa;
|
||||
}
|
||||
|
||||
/* Улучшение интеграции iframe */
|
||||
iframe[src*="style-editor-advanced.html"],
|
||||
iframe[src*="image-manager.html"] {
|
||||
border-radius: 8px;
|
||||
box-shadow: 0 4px 12px rgba(0,0,0,0.1);
|
||||
overflow: hidden;
|
||||
}
|
||||
3
public/css/custom-styles.css
Normal file
3
public/css/custom-styles.css
Normal file
@@ -0,0 +1,3 @@
|
||||
/* Автоматически сгенерированные стили - 2025-11-30T02:42:19.565Z */
|
||||
|
||||
:root { --primary-color: #ff6b6b; --secondary-color: #38C172; }
|
||||
Reference in New Issue
Block a user