466 lines
12 KiB
CSS
466 lines
12 KiB
CSS
:root {
|
|
--header-bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
--card-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
|
|
--transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
}
|
|
|
|
/* Заголовок с градиентом и стеклянным эффектом */
|
|
.glass-header {
|
|
background: var(--header-bg);
|
|
backdrop-filter: blur(10px);
|
|
background-color: rgba(255, 255, 255, 0.95);
|
|
border-bottom: 1px solid rgba(255, 255, 255, 0.2);
|
|
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
|
|
}
|
|
|
|
/* Стили для навигационных кнопок */
|
|
.tab-nav-btn {
|
|
position: relative;
|
|
background: transparent !important;
|
|
border: none !important;
|
|
border-radius: 0.75rem !important;
|
|
transition: all 0.3s ease !important;
|
|
max-width: 200px !important;
|
|
}
|
|
|
|
.tab-nav-btn:hover {
|
|
background-color: rgba(var(--bs-primary-rgb), 0.05) !important;
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
.tab-nav-btn.active {
|
|
background-color: rgba(var(--bs-primary-rgb), 0.1) !important;
|
|
border: 1px solid rgba(var(--bs-primary-rgb), 0.2) !important;
|
|
box-shadow: 0 4px 12px rgba(var(--bs-primary-rgb), 0.15);
|
|
}
|
|
|
|
.tab-nav-btn.active .nav-indicator {
|
|
position: absolute;
|
|
bottom: -10px;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
width: 60%;
|
|
height: 3px;
|
|
background-color: var(--bs-primary);
|
|
border-radius: 3px;
|
|
}
|
|
|
|
/* Только изменение цвета текста на темно-серый */
|
|
.tab-nav-btn.active .nav-icon {
|
|
color: #495057 !important;
|
|
}
|
|
|
|
.tab-nav-btn.active .nav-title {
|
|
color: #495057 !important;
|
|
}
|
|
|
|
/* Кнопки выбора склада */
|
|
.toolbox-nav-btn {
|
|
position: relative;
|
|
background: transparent !important;
|
|
border-radius: 0.75rem !important;
|
|
transition: all 0.3s ease !important;
|
|
padding: 0.75rem 1rem !important;
|
|
min-width: 140px !important;
|
|
}
|
|
|
|
.toolbox-nav-btn:hover {
|
|
background-color: rgba(59, 130, 246, 0.05) !important;
|
|
transform: translateY(-2px);
|
|
color: #495057 !important; /* Темно-серый при наведении */
|
|
}
|
|
|
|
.toolbox-nav-btn.active {
|
|
background-color: rgba(59, 130, 246, 0.1) !important;
|
|
border: 1px solid rgba(59, 130, 246, 0.2) !important;
|
|
box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
|
|
color: #495057 !important; /* Темно-серый при активном состоянии */
|
|
}
|
|
|
|
.toolbox-nav-btn.active .toolbox-nav-indicator {
|
|
position: absolute;
|
|
bottom: -8px;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
width: 50%;
|
|
height: 3px;
|
|
background-color: #3b82f6;
|
|
border-radius: 3px;
|
|
}
|
|
|
|
/* Убираем стили Bootstrap для активного состояния */
|
|
.toolbox-nav-btn.active.btn-primary {
|
|
background-color: rgba(59, 130, 246, 0.1) !important;
|
|
border-color: rgba(59, 130, 246, 0.2) !important;
|
|
color: #495057 !important;
|
|
}
|
|
|
|
/* Стили для контейнера данных склада */
|
|
.toolbox-content-container {
|
|
min-height: 400px;
|
|
background: rgba(255, 255, 255, 0.95);
|
|
border-radius: 12px;
|
|
border: 1px solid rgba(0, 0, 0, 0.08);
|
|
}
|
|
|
|
/* Анимации */
|
|
.tab-pane.fade {
|
|
transition: opacity 0.25s linear;
|
|
}
|
|
|
|
.tab-pane.fade.show.active {
|
|
opacity: 1;
|
|
}
|
|
|
|
/* Стили для карточек */
|
|
.card {
|
|
transition: transform 0.3s ease, box-shadow 0.3s ease;
|
|
}
|
|
|
|
.card:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 8px 25px rgba(0,0,0,0.1) !important;
|
|
}
|
|
|
|
#mainTabsNav {
|
|
display: inline-flex !important;
|
|
width: auto !important;
|
|
flex: 0 0 auto !important;
|
|
flex-wrap: nowrap !important;
|
|
}
|
|
|
|
#mainTabsNavWrapper {
|
|
text-align: center;
|
|
}
|
|
|
|
/* Адаптивность */
|
|
@media (max-width: 768px) {
|
|
.tab-nav-btn {
|
|
min-width: 100px !important;
|
|
padding: 0.75rem 0.5rem !important;
|
|
}
|
|
|
|
.toolbox-nav-btn {
|
|
min-width: 120px !important;
|
|
padding: 0.5rem 0.75rem !important;
|
|
}
|
|
|
|
.nav-title {
|
|
font-size: 0.8rem !important;
|
|
}
|
|
|
|
.nav-icon {
|
|
font-size: 1.5rem !important;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 576px) {
|
|
#mainTabsNav {
|
|
flex-wrap: nowrap;
|
|
overflow-x: auto;
|
|
-webkit-overflow-scrolling: touch;
|
|
}
|
|
|
|
.tab-nav-btn {
|
|
min-width: 90px !important;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.toolbox-nav-btn {
|
|
min-width: 110px !important;
|
|
flex-shrink: 0;
|
|
}
|
|
}
|
|
|
|
/* Стили для таблицы с фиксированным заголовком */
|
|
.table-responsive {
|
|
position: relative;
|
|
}
|
|
|
|
.table-responsive thead th {
|
|
position: sticky;
|
|
top: 0;
|
|
background-color: #f8f9fa;
|
|
z-index: 10;
|
|
box-shadow: 0 2px 2px -1px rgba(0,0,0,0.1);
|
|
}
|
|
|
|
/* Стили для выделенных строк */
|
|
.table-striped tbody tr.table-active:nth-child(odd) {
|
|
background-color: rgba(13, 110, 253, 0.3) !important;
|
|
}
|
|
|
|
.table-striped tbody tr.table-active:nth-child(even) {
|
|
background-color: rgba(13, 110, 253, 0.2) !important;
|
|
}
|
|
|
|
/* Стили для изображений */
|
|
.toolkit-image-link {
|
|
text-decoration: none;
|
|
transition: opacity 0.2s;
|
|
}
|
|
|
|
.toolkit-image-link:hover {
|
|
opacity: 0.8;
|
|
}
|
|
|
|
/* Стили для пагинации */
|
|
.pagination {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.page-link {
|
|
cursor: pointer;
|
|
}
|
|
|
|
/* Стили для таблицы сортировки */
|
|
th[data-sort] {
|
|
cursor: pointer;
|
|
position: relative;
|
|
user-select: none;
|
|
}
|
|
|
|
th[data-sort]:hover {
|
|
background-color: #e9ecef;
|
|
}
|
|
|
|
/* Стили для бейджей статусов */
|
|
.badge.bg-success { background-color: #198754 !important; }
|
|
.badge.bg-warning { background-color: #ffc107 !important; color: #000; }
|
|
.badge.bg-danger { background-color: #dc3545 !important; }
|
|
|
|
/* Стили для кнопок действий в строке */
|
|
.quick-actions,
|
|
.action-buttons {
|
|
opacity: 0;
|
|
transition: opacity 0.2s;
|
|
}
|
|
|
|
tr:hover .quick-actions,
|
|
tr:hover .action-buttons {
|
|
opacity: 1;
|
|
}
|
|
|
|
/* Уменьшаем отступы у кнопок в строках */
|
|
.quick-actions .btn,
|
|
.action-buttons .btn {
|
|
padding: 0.25rem 0.5rem;
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
/* Стили для поля поиска */
|
|
.input-group {
|
|
max-width: 500px;
|
|
}
|
|
|
|
/* Стили для более заметных стрелок карусели */
|
|
.carousel-control-prev,
|
|
.carousel-control-next {
|
|
width: 40px !important;
|
|
height: 40px !important;
|
|
top: 50% !important;
|
|
transform: translateY(-50%) !important;
|
|
background-color: rgba(0, 0, 0, 0.5) !important;
|
|
border-radius: 50% !important;
|
|
opacity: 0.8 !important;
|
|
transition: all 0.3s ease !important;
|
|
}
|
|
|
|
.carousel-control-prev {
|
|
left: 10px !important;
|
|
}
|
|
|
|
.carousel-control-next {
|
|
right: 10px !important;
|
|
}
|
|
|
|
.carousel-control-prev:hover,
|
|
.carousel-control-next:hover {
|
|
opacity: 1 !important;
|
|
background-color: rgba(0, 0, 0, 0.7) !important;
|
|
transform: translateY(-50%) scale(1.1) !important;
|
|
}
|
|
|
|
.carousel-control-prev-icon,
|
|
.carousel-control-next-icon {
|
|
width: 20px !important;
|
|
height: 20px !important;
|
|
filter: invert(1) !important; /* Делает стрелки белыми */
|
|
}
|
|
|
|
/* Для лучшей видимости на темных изображениях можно добавить тень */
|
|
.carousel-control-prev-icon,
|
|
.carousel-control-next-icon {
|
|
filter: invert(1) drop-shadow(0 0 2px rgba(0, 0, 0, 0.5)) !important;
|
|
}
|
|
|
|
/* Стили для индикаторов карусели */
|
|
.carousel-indicators button.active {
|
|
background-color: #007bff !important;
|
|
border-color: #007bff !important;
|
|
}
|
|
|
|
/* Стили для карточек */
|
|
.toolkit-card {
|
|
cursor: pointer;
|
|
transition: transform 0.2s, box-shadow 0.2s;
|
|
height: 100%;
|
|
}
|
|
|
|
.toolkit-card:hover {
|
|
transform: translateY(-5px);
|
|
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.toolkit-card-img {
|
|
height: 200px;
|
|
object-fit: contain;
|
|
object-position: center;
|
|
}
|
|
|
|
.toolkit-description {
|
|
display: -webkit-box;
|
|
/* -webkit-line-clamp: 3; */
|
|
-webkit-box-orient: vertical;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.category-badge {
|
|
font-size: 0.8rem;
|
|
padding: 0.25rem 0.75rem;
|
|
}
|
|
|
|
.filter-btn.active {
|
|
background-color: #0d6efd;
|
|
color: white;
|
|
}
|
|
|
|
.filter-btn:not(.active) {
|
|
background-color: #f8f9fa;
|
|
}
|
|
|
|
/* Адаптивные стили */
|
|
@media (max-width: 768px) {
|
|
.toolkit-card-img {
|
|
height: 150px;
|
|
}
|
|
}
|
|
|
|
/* Стили для модального окна добавления склада */
|
|
.modal-content {
|
|
border-radius: 12px;
|
|
border: 1px solid rgba(0, 0, 0, 0.08);
|
|
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.modal-header {
|
|
background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
|
|
border-bottom: 1px solid rgba(0, 0, 0, 0.08);
|
|
border-radius: 12px 12px 0 0;
|
|
padding: 1.25rem 1.5rem;
|
|
}
|
|
|
|
.modal-title {
|
|
color: #495057;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.modal-body {
|
|
padding: 1.5rem;
|
|
}
|
|
|
|
.modal-footer {
|
|
border-top: 1px solid rgba(0, 0, 0, 0.08);
|
|
padding: 1rem 1.5rem;
|
|
}
|
|
|
|
/* Стили для обязательных полей */
|
|
.form-label.required::after {
|
|
content: " *";
|
|
color: #dc3545;
|
|
}
|
|
|
|
/* Кастомные стили для переключателя */
|
|
.form-switch .form-check-input {
|
|
width: 3em;
|
|
height: 1.5em;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.form-switch .form-check-input:checked {
|
|
background-color: #0d6efd;
|
|
border-color: #0d6efd;
|
|
}
|
|
|
|
.form-switch .form-check-input:focus {
|
|
box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
|
|
}
|
|
|
|
.form-switch .form-check-label {
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
}
|
|
|
|
/* Стили для текстовых полей в фокусе */
|
|
.form-control:focus {
|
|
border-color: #86b7fe;
|
|
box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
/* Стили для валидации */
|
|
.form-control.is-valid {
|
|
border-color: #198754;
|
|
padding-right: calc(1.5em + 0.75rem);
|
|
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
|
|
background-repeat: no-repeat;
|
|
background-position: right calc(0.375em + 0.1875rem) center;
|
|
background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
|
|
}
|
|
|
|
.form-control.is-invalid {
|
|
border-color: #dc3545;
|
|
padding-right: calc(1.5em + 0.75rem);
|
|
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
|
|
background-repeat: no-repeat;
|
|
background-position: right calc(0.375em + 0.1875rem) center;
|
|
background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
|
|
}
|
|
|
|
/* Стили для текста подсказки */
|
|
.form-text {
|
|
color: #6c757d;
|
|
font-size: 0.875em;
|
|
margin-top: 0.25rem;
|
|
}
|
|
|
|
/* Стили для кнопок в модальном окне */
|
|
.modal-footer .btn {
|
|
min-width: 100px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
/* Адаптивность для мобильных */
|
|
@media (max-width: 576px) {
|
|
.modal-dialog {
|
|
margin: 0.5rem;
|
|
}
|
|
|
|
.modal-content {
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.modal-body {
|
|
padding: 1rem;
|
|
}
|
|
|
|
.modal-footer {
|
|
padding: 0.75rem 1rem;
|
|
}
|
|
}
|
|
|
|
.modal-content-green {
|
|
background-color: #f4fbf6; /* светло-зелёный */
|
|
} |