/
killogram
/
E-Analyzer
Обзор
Документация
Войти
/
killogram
/
E-Analyzer
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
main
frontend/style.css
378 строк
9 KB
Korabliov Kirill
Add purchases
01 июн 2025, 16:49
01 июн 2025, 16:49
376f2c0
Код
Авторство
О чём код?
/* Базовые стили для body */ body { font-family: 'Inter', 'Arial', sans-serif; background-color: #f7fafc; /* Светло-серый фон */ margin: 0; padding: 2rem; color: #000000; /* Чёрный текст по умолчанию вместо красного */ line-height: 1.5; } /* Контейнер */ #container { max-width: 1200px; margin-left: auto; margin-right: auto; padding: 1.5rem; background-color: #ffffff; border-radius: 12px; box-shadow: 0 4px 20px rgba(229, 62, 62, 0.1); /* Красноватая тень */ } /* Заголовки h1 (шапка) */ h1 { color: #ffffff; background-color: #48bb78; /* Зелёный фон */ font-size: 1.75rem; font-weight: 700; margin-bottom: 1.5rem; padding: 0.75rem 1.5rem; border-radius: 8px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); transition: transform 0.2s ease; } h1:hover { transform: translateY(-2px); } /* Заголовки h2 */ h2 { color: #e53e3e; /* Красный для названий блоков */ font-size: 1.25rem; font-weight: 600; margin-top: 2rem; margin-bottom: 0.75rem; border-bottom: 2px solid #e53e3e; /* Красная подчёркивающая линия */ padding-bottom: 0.25rem; } /* Заголовки h3 */ h3 { color: #e53e3e; /* Красный для названий блоков */ font-size: 1.1rem; font-weight: 500; } /* Секция поиска */ #searchSection { margin-bottom: 1.5rem; display: flex; gap: 1rem; align-items: center; } /* Поле ввода */ #searchInput { width: 100%; padding: 0.75rem 1rem; border: 1px solid #e53e3e; /* Красная обводка */ border-radius: 8px; font-size: 1rem; color: #d1d5db; /* Бледно-серый текст, когда пустое */ background-color: #fafafa; transition: border-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease; } #searchInput:not(:placeholder-shown) { color: #000000; /* Чёрный текст при вводе */ } #searchInput:focus { outline: none; border-color: #48bb78; /* Зелёная обводка при фокусе */ box-shadow: 0 0 8px rgba(72, 187, 120, 0.2); color: #000000; /* Чёрный текст при фокусе */ } #searchInput::placeholder { color: #d1d5db; /* Бледно-серый placeholder */ } /* Кнопка поиска */ #searchButton { padding: 0.75rem 1.5rem; background-color: #48bb78; color: #ffffff; border: none; border-radius: 8px; cursor: pointer; font-size: 1rem; font-weight: 500; transition: background-color 0.3s ease, transform 0.2s ease; } #searchButton:hover { background-color: #38a169; transform: translateY(-2px); } /* Ссылки */ a { color: #48bb78; text-decoration: none; font-weight: 500; transition: color 0.3s ease; } a:hover { color: #38a169; text-decoration: underline; } /* Контентные блоки */ #customerContent, #purchaseContent { background-color: #ffffff; padding: 1.5rem; border-radius: 12px; border: 1px solid #e5e7eb; /* Серая рамка */ box-shadow: 0 4px 12px rgba(229, 62, 62, 0.08); margin-bottom: 1.5rem; } /* Списки */ #purchasesList, #pricesContent, #datesContent, #customersContent { margin-top: 0.75rem; } #purchasesList > *, #pricesContent > *, #datesContent > *, #customersContent > * { margin-top: 0.75rem; padding: 1rem; border: 1px solid #e5e7eb; /* Еле заметная серая рамка */ border-radius: 8px; background-color: #ffffff; box-shadow: 0 2px 6px rgba(229, 62, 62, 0.05); transition: transform 0.2s ease, box-shadow 0.2s ease; color: #000000; /* Чёрный текст для элементов списков */ } #purchasesList > *:hover, #pricesContent > *:hover, #datesContent > *:hover, #customersContent > *:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(229, 62, 62, 0.1); } /* Карточки */ .card { text-decoration: none; color: #000000; /* Чёрный текст для карточек */ display: block; padding: 1rem; border: 1px solid #e5e7eb; border-radius: 8px; transition: transform 0.2s ease, box-shadow 0.2s ease; } .card:hover { color: #000000; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(229, 62, 62, 0.1); } /* Переопределение Tailwind-классов */ .text-gray-500, .text-gray-600, .text-gray-700, .text-gray-800, .text-gray-900 { color: #000000; /* Чёрный вместо красного */ } .text-red-500 { color: #e53e3e; /* Красный для акцентов */ } .text-green-500 { color: #48bb78; /* Зелёный для акцентов */ } .shadow-md { box-shadow: 0 4px 6px rgba(229, 62, 62, 0.1); } .mb-6 { margin-bottom: 1.5rem; } .p-6 { padding: 1.5rem; } .grid { display: grid; } .grid-cols-1 { grid-template-columns: 1fr; } .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .gap-4 { gap: 1rem; } .transition { transition: all 0.3s ease; } .status-select { min-width: 150px; } .flex { display: flex; } .justify-between { justify-content: space-between; } .items-center { align-items: center; } .ml-4 { margin-left: 1rem; } /* Добавить в конец style.css */ .delete-btn { min-width: 100px; background-color: #e53e3e; /* Красный цвет */ color: white; border: none; border-radius: 8px; cursor: pointer; transition: background-color 0.3s ease; } .delete-btn:hover { background-color: #c53030; /* Темно-красный при наведении */ } /* Стили для формы добавления закупки */ #add-purchase-form { display: flex; flex-direction: column; gap: 1rem; } #add-purchase-form label { font-weight: 600; color: #4a5568; /* Темно-серый */ } #add-purchase-form input { padding: 0.75rem; border: 1px solid #cbd5e0; /* Светло-серый */ border-radius: 8px; font-size: 1rem; color: #4a5568; /* Темно-серый */ background-color: #f7fafc; /* Светло-серый фон */ transition: border-color 0.3s ease, box-shadow 0.3s ease; } #add-purchase-form input:focus { outline: none; border-color: #48bb78; /* Зелёная обводка при фокусе */ box-shadow: 0 0 8px rgba(72, 187, 120, 0.2); } #add-purchase-form button { padding: 0.75rem 1.5rem; background-color: #48bb78; color: #ffffff; border: none; border-radius: 8px; cursor: pointer; font-size: 1rem; font-weight: 500; transition: background-color 0.3s ease, transform 0.2s ease; } #add-purchase-form button:hover { background-color: #38a169; transform: translateY(-2px); } /* Добавить в конец style.css */ /* Добавить в конец style.css или заменить существующие стили для .status-select */ /* Стили для выпадающего списка */ .status-select { min-width: 150px; padding: 8px; border: 2px solid #e2e8f0; border-radius: 8px; background-color: #f7fafc; cursor: pointer; transition: border-color 0.3s ease, box-shadow 0.3s ease; } .status-select:hover { border-color: #a0aec0; box-shadow: 0 0 5px rgba(0, 0, 0, 0.1); } .status-select:focus { outline: none; border-color: #4a90e2; box-shadow: 0 0 5px rgba(74, 144, 226, 0.3); } /* Стили для пунктов выпадающего списка с более яркими цветами */ .status-select option[value=""] { color: #a0aec0; /* Серый для "Выберите статус" */ } .status-select option[value="Интересно"] { color: #2f855a; /* Яркий зеленый */ background-color: #c6f6d5; } .status-select option[value="Участвую"] { color: #b7791f; /* Яркий желтый/оранжевый */ background-color: #fef08a; } .status-select option[value="Выиграл"] { color: #2b6cb0; /* Яркий синий */ background-color: #bee3f8; } .status-select option[value="Проиграл"] { color: #c53030; /* Яркий красный */ background-color: #fed7d7; } .status-select option[value="Анализ"] { color: #6b46c1; /* Яркий фиолетовый */ background-color: #e9d8fd; } .status-select option[value="Нейинтересно"] { color: #4a5568; /* Более темный серый */ background-color: #e2e8f0; } .status-select option[value="Скрыто"] { color: #1a202c; /* Темный серый/черный */ background-color: #cbd5e0; } /* Стили для кнопки "Добавить закупку" */ #add-purchase-btn, .search-button { padding: 0.75rem 1.5rem; background-color: #48bb78; color: #ffffff; border: none; border-radius: 8px; cursor: pointer; font-size: 1rem; font-weight: 500; transition: background-color 0.3s ease, transform 0.2s ease; } #add-purchase-btn:hover, .search-button:hover { background-color: #38a169; transform: translateY(-2px); }