/
amesk
/
gitlab-analyzer
Обзор
Документация
Войти
/
amesk
/
gitlab-analyzer
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
styles.css
183 строки
5 KB
amesk
UI improvements.
06 фев 2025, 17:08
06 фев 2025, 17:08
e9c6785
Код
Авторство
О чём код?
body { margin: 0; padding: 0; font-family: Arial, sans-serif; display: flex; flex-direction: column; height: 100vh; overflow: hidden; } #pagetitle { background-color: #292961; /* Цвет фона, похожий на GitLab */ border: 1px solid rgba(255, 255, 255, 0.1); /* Легкая граница */ box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Тень */ } #pagetitle .bi-gitlab { color: #e24329; /* Цвет иконки, похожий на GitLab */ } #pagetitle h1 { font-weight: 600; /* Жирный шрифт для заголовка */ } #pagetitle small { font-size: 0.875rem; /* Размер текста для подзаголовка */ } #header { position: fixed; top: 0; left: 0; right: 0; background-color: #fff; padding: 20px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); border-bottom: 1px solid #ccc; z-index: 1000; height: 300px; /* Фиксированная высота header */ } #mainContent { flex: 1; margin-top: 300px; /* Отступ сверху равен высоте header */ margin-bottom: 20px; /* Отступ снизу для fixedForm */ overflow: hidden; padding: 20px; display: flex; gap: 20px; position: relative; z-index: 1; } .scrollable-container { height: calc(100vh - 340px); /* Высота контейнера с учетом header */ overflow-y: auto; /* Вертикальная прокрутка */ padding-right: 15px; flex: 1; } .scrollable-container-help { height: calc(100vh); /* Высота контейнера с учетом header и fixedForm */ overflow-y: auto; padding-right: 15px; flex: 1; } .table-responsive { overflow-x: auto; /* Горизонтальная прокрутка */ -webkit-overflow-scrolling: touch; /* Плавная прокрутка на мобильных устройствах */ width: 100%; /* Ширина контейнера */ } .table { min-width: 800px; /* Минимальная ширина таблицы */ width: 100%; /* Ширина таблицы */ } .table-header { position: sticky; top: 0; background-color: #292961; /* Цвет фона, совпадающий с заголовком страницы */ color: #fff; /* Белый цвет текста для контраста */ z-index: 100; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); } #fixedForm { width: 300px; height: calc(100vh - 340px); /* Высота контейнера с учетом header */ bottom: 0; background-color: #fff; padding: 20px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); border: 1px solid #ccc; border-radius: 8px; position: sticky; display: flex; flex-direction: column; } #fixedForm .row { margin-bottom: 10px; } #fixedForm .row:last-child { margin-bottom: 0; } .loading-spinner { display: none; text-align: center; margin-top: 20px; } .alert-danger { z-index: 2000; min-width: 300px; text-align: center; position: fixed; top: 20px; left: 50%; transform: translateX(-50%); animation: fadeOut 3s forwards; animation-delay: 2s; } @keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } } .is-invalid { border-color: #dc3545 !important; 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); } /* Кастомизация полосы прокрутки */ .scrollable-container::-webkit-scrollbar { width: 10px; background-color: #f8f9fa; } .scrollable-container::-webkit-scrollbar-thumb { background-color: #adb5bd; border-radius: 5px; } .scrollable-container::-webkit-scrollbar-thumb:hover { background-color: #6c757d; } /* Стили для модального окна ввода API Key */ .modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); justify-content: center; align-items: center; } .modal-content { background-color: white; padding: 20px; border-radius: 8px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); width: 300px; /* Фиксированная ширина */ max-width: 90%; /* Максимальная ширина (на случай маленьких экранов) */ text-align: center; /* Центрируем текст */ } .modal-content input { width: 100%; padding: 10px; margin-bottom: 10px; border: 1px solid #ccc; border-radius: 4px; box-sizing: border-box; /* Учитываем padding в ширине */ } .modal-content button { padding: 10px 20px; background-color: #007bff; color: white; border: none; border-radius: 4px; cursor: pointer; width: 100%; /* Кнопка на всю ширину */ } .modal-content button:hover { background-color: #0056b3; } #logoutButton { color: #dc3545; } .small-space { margin-right: 10px; /* Добавление отступа справа для кнопок, кроме последней */ }