/
amesk
/
gitlab-analyzer
Обзор
Документация
Войти
/
amesk
/
gitlab-analyzer
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
jquery
styles.css
307 строк
8 KB
amesk
Cosmetics.
15 фев 2025, 20:24
15 фев 2025, 20:24
97f3c78
Код
Авторство
О чём код?
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; /* Горизонтальная прокрутка, если таблица не помещается */ width: 100%; /* Занимает всю ширину контейнера */ } .table { width: 100%; /* Таблица занимает всю ширину контейнера */ min-width: 800px; /* Минимальная ширина таблицы */ table-layout: fixed; /* Фиксированная ширина колонок */ } /* Стили для ячеек таблицы */ .table th, .table td { white-space: nowrap; /* Запрет на перенос текста */ overflow: hidden; /* Скрытие избыточного текста */ text-overflow: ellipsis; /* Добавление "..." если текст не помещается */ padding: 8px; /* Отступы внутри ячеек */ } /* Стили для заголовка таблицы */ .table th { position: sticky; top: 0px; /* Высота header (300px) + отступы */ z-index: 2000; /* Убедитесь, что заголовок находится поверх других элементов */ } /* Ширина колонок */ .table th:nth-child(1), .table td:nth-child(1) { width: 20px; /* Ширина для чекбокса */ } .table th:nth-child(2), .table td:nth-child(2) { width: 30px; /* Ширина для номера пункта */ } .table th:nth-child(3), .table td:nth-child(3) { width: 200px; /* Ширина для заголовка */ } .table th:nth-child(4), .table td:nth-child(4) { width: 150px; /* Ширина для меток */ } .table th:nth-child(5), .table td:nth-child(5) { width: 120px; /* Ширина для исполнителя */ } .table th:nth-child(6), .table td:nth-child(6) { width: 120px; /* Ширина для майлстоуна */ } .table th:nth-child(7), .table td:nth-child(7) { width: 60px; /* Ширина для возраста */ } .table th:nth-child(8), .table td:nth-child(8) { width: 60px; /* Ширина для давности обновления */ } .table th:nth-child(9), .table td:nth-child(9) { width: 60px; /* Ширина для оценки времени */ } .table th:nth-child(10), .table td:nth-child(10) { width: 60px; /* Ширина для затраченного времени */ } #fixedForm { min-width: 300px; 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 { text-align: center; margin-top: 20px; } .alert-danger .alert-success { z-index: 9999; min-width: 300px; text-align: center; position: fixed; top: 50%; left: 50%; transform: translateX(-50%); animation: fadeOut 3s forwards; animation-delay: 2s; } .alert-success { z-index: 9999; min-width: 300px; text-align: center; position: fixed; top: 50%; 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-color: #fadfe1 !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; z-index: 9999; } .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; /* Добавление отступа справа для кнопок, кроме последней */ } /* Стили для bootstrap-select */ .bootstrap-select .dropdown-toggle { border: 1px solid #ced4da; border-radius: 4px; padding: 0.375rem 0.75rem; } .bootstrap-select .dropdown-menu { max-height: 200px; overflow-y: auto; } .bootstrap-select .bs-searchbox input { width: 100%; padding: 0.375rem 0.75rem; border: 1px solid #ced4da; border-radius: 4px; } .select2-container { width: 100% !important; /* Принудительно задаёт ширину 100% */ } /* Стили для модального окна */ .modal-colums-selection { 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; z-index: 1000; } .modal-columns-selection-content { background-color: white; padding: 20px; border-radius: 8px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); width: 300px; } /* Стили для скрытия колонок */ .hidden-column { display: none; }