Spaces:
Running
Running
| /* Основные стили */ | |
| body { | |
| font-family: 'Arial', sans-serif; | |
| background-color: #f5f5f7; | |
| color: #1d1d1f; | |
| margin: 0; | |
| padding: 0; | |
| line-height: 1.6; | |
| transition: background-color 0.3s ease; | |
| } | |
| .container { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 20px; | |
| padding: 20px; | |
| max-width: 1200px; | |
| margin: 0 auto; | |
| transition: transform 0.3s ease, box-shadow 0.3s ease; | |
| } | |
| .column { | |
| flex: 1; | |
| background-color: #ffffff; | |
| padding: 20px; | |
| border-radius: 12px; | |
| box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); | |
| transition: transform 0.3s ease, box-shadow 0.3s ease; | |
| } | |
| .column:hover { | |
| transform: translateY(-5px); | |
| box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15); | |
| } | |
| /* Разделитель для заголовков */ | |
| .column h2 { | |
| margin-top: 0; | |
| color: #1d1d1f; | |
| font-size: 24px; | |
| font-weight: 600; | |
| padding-bottom: 10px; | |
| border-bottom: 2px solid #e0e0e0; | |
| margin-bottom: 20px; | |
| } | |
| /* Бургер-меню */ | |
| .burger-menu { | |
| display: none; | |
| position: fixed; | |
| top: 20px; | |
| left: 20px; | |
| z-index: 1000; | |
| } | |
| .burger-icon { | |
| font-size: 28px; | |
| cursor: pointer; | |
| background-color: #007aff; | |
| color: #ffffff; | |
| padding: 12px; | |
| border-radius: 50%; | |
| box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); | |
| transition: background-color 0.3s ease; | |
| } | |
| .burger-icon:hover { | |
| background-color: #005bb5; | |
| } | |
| .menu-items { | |
| display: none; | |
| background-color: #ffffff; | |
| border-radius: 12px; | |
| box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); | |
| margin-top: 10px; | |
| padding: 10px; | |
| } | |
| .menu-items div { | |
| padding: 12px; | |
| cursor: pointer; | |
| border-bottom: 1px solid #e0e0e0; | |
| color: #1d1d1f; | |
| font-size: 16px; | |
| transition: background-color 0.3s ease; | |
| } | |
| .menu-items div:last-child { | |
| border-bottom: none; | |
| } | |
| .menu-items div:hover { | |
| background-color: #f5f5f7; | |
| } | |
| /* Форма добавления товара */ | |
| form { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 15px; | |
| margin-bottom: 20px; | |
| } | |
| input { | |
| padding: 12px; | |
| font-size: 16px; | |
| border: 1px solid #e0e0e0; | |
| border-radius: 8px; | |
| background-color: #ffffff; | |
| color: #1d1d1f; | |
| transition: border-color 0.3s ease; | |
| } | |
| input:focus { | |
| border-color: #007aff; | |
| outline: none; | |
| } | |
| button { | |
| padding: 12px; | |
| font-size: 16px; | |
| background-color: #007aff; | |
| color: #ffffff; | |
| border: none; | |
| border-radius: 8px; | |
| cursor: pointer; | |
| transition: background-color 0.3s ease; | |
| } | |
| button:hover { | |
| background-color: #005bb5; | |
| } | |
| /* Таблицы */ | |
| table { | |
| width: 100%; | |
| border-collapse: collapse; | |
| margin-top: 20px; | |
| } | |
| th, td { | |
| padding: 12px; | |
| text-align: left; | |
| border-bottom: 1px solid #e0e0e0; | |
| } | |
| th { | |
| background-color: #007aff; | |
| color: #ffffff; | |
| font-weight: 600; | |
| } | |
| tr:hover { | |
| background-color: #f5f5f7; | |
| } | |
| .actions { | |
| display: flex; | |
| gap: 8px; | |
| } | |
| .add-to-cart-btn, .add-stock-btn, .delete-btn { | |
| padding: 8px 12px; | |
| border: none; | |
| border-radius: 6px; | |
| cursor: pointer; | |
| font-size: 14px; | |
| transition: background-color 0.3s ease; | |
| } | |
| .add-to-cart-btn { | |
| background-color: #007aff; | |
| color: #ffffff; | |
| } | |
| .add-to-cart-btn:hover { | |
| background-color: #005bb5; | |
| } | |
| .add-stock-btn { | |
| background-color: #34c759; | |
| color: #ffffff; | |
| } | |
| .add-stock-btn:hover { | |
| background-color: #248a3d; | |
| } | |
| .delete-btn { | |
| background-color: #ff3b30; | |
| color: #ffffff; | |
| } | |
| .delete-btn:hover { | |
| background-color: #d70015; | |
| } | |
| /* Адаптация для мобильных устройств */ | |
| @media (max-width: 768px) { | |
| .container { | |
| padding: 10px; | |
| overflow-x: hidden; /* Запрещаем горизонтальную прокрутку */ | |
| } | |
| .column { | |
| display: none; /* Скрываем все колонки по умолчанию */ | |
| padding: 15px; | |
| width: 100%; /* Занимаем всю ширину экрана */ | |
| box-sizing: border-box; /* Учитываем padding в ширине */ | |
| } | |
| .column.active { | |
| display: block; /* Показываем активную колонку */ | |
| } | |
| h2 { | |
| font-size: 20px; | |
| } | |
| /* Улучшаем отображение таблиц на мобильных устройствах */ | |
| table { | |
| display: block; | |
| overflow-x: auto; /* Добавляем горизонтальную прокрутку для таблиц */ | |
| white-space: nowrap; /* Предотвращаем перенос строк */ | |
| } | |
| th, td { | |
| min-width: 100px; /* Минимальная ширина ячеек */ | |
| } | |
| /* Улучшаем отображение форм на мобильных устройств */ | |
| form { | |
| gap: 10px; | |
| } | |
| input, button { | |
| width: 100%; /* Занимаем всю ширину экрана */ | |
| box-sizing: border-box; /* Учитываем padding в ширине */ | |
| } | |
| /* Улучшаем отображение бургер-меню */ | |
| .burger-menu { | |
| display: block; | |
| } | |
| .menu-items { | |
| width: 100%; /* Занимаем всю ширину экрана */ | |
| box-sizing: border-box; /* Учитываем padding в ширине */ | |
| } | |
| } |