/
Medvedev
/
ReservoirAdmin
Обзор
Документация
Войти
/
Medvedev
/
ReservoirAdmin
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
src/App.css
206 строк
3 KB
Medvedev Anton
реализована вёрстка с макета
31 май 2025, 07:51
31 май 2025, 07:51
96a0aa6
Код
Авторство
О чём код?
/* Base styles */ @font-face { font-family: 'Roboto'; src: url('/public/fonts/Roboto-Regular.ttf') format('truetype'); font-weight: 400; font-style: normal; } * { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Roboto', sans-serif; font-weight: 400; color: white; } /* Общие стили */ .button { min-width: 160px; height: 40px; padding: 0 16px; border-radius: 4px; border: none; cursor: pointer; font-size: 13px; background-color: #303549; transition: background-color 0.2s; white-space: nowrap; } .button:hover { background-color: #383d47; } /* Стили приложения */ .app { min-height: 100vh; background-color: #1a1d24; display: flex; flex-direction: column; padding: 16px; gap: 10px; } /* Стили шапки */ .header { display: flex; align-items: center; padding: 0 24px; background-color: #272A38; height: 64px; gap: 24px; } .header-icon { width: 20px; height: 20px; cursor: pointer; } .header-title { font-size: 14px; display: flex; align-items: center; gap: 45px; } .header-button { margin-left: auto; } /* Стили main */ .main { display: flex; flex: 1; gap: 16px; } /* Стили боковой панели */ .sidebar { width: 370px; background-color: #232532; box-shadow: 0 0 10px rgba(0, 0, 0, 0.25); display: flex; flex-direction: column; border-radius: 4px; } .sidebar-header { background-color: #272A38; padding: 15px; display: flex; align-items: center; justify-content: space-between; border-radius: 4px; } .sidebar-title { color: #FFFFFF; font-size: 14px; font-weight: 500; margin-left: 15px; cursor: pointer; transition: opacity 0.2s ease; } .sidebar-search { height: 35px; background-color: #303549; border: none; border-radius: 2px; color: #FFFFFF; font-size: 14px; padding: 0 10px; margin-left: 15px; flex: 1; opacity: 0; pointer-events: none; transition: opacity 0.2s ease; } .sidebar-search:focus { outline: none; } .sidebar-search-visible { opacity: 1; pointer-events: all; } .sidebar-search-button { width: 35px; height: 35px; background-color: #303549; border: none; border-radius: 2px; display: flex; align-items: center; justify-content: center; cursor: pointer; margin-left: auto; } /* Стили списка резервуаров */ .reservoir-list { display: flex; flex-direction: column; background-color: #232532; } .reservoir-list-item { height: 45px; background-color: #272A38; display: flex; align-items: center; padding: 0 15px; cursor: pointer; font-size: 18px; color: #FFFFFF; border-left: 2px solid transparent; transition: background-color 0.2s ease; border-top: 2px solid #232532; } .reservoir-list-item-active { background-color: #0089FF1C; border-left: 2px solid #0089FF; } .reservoir-list-lock-icon { margin-left: auto; width: 17.28px; height: 24px; filter: brightness(0) invert(1); } /* Пустое место */ .empty-state { height: 100%; display: flex; align-items: center; justify-content: center; color: #a1a7b3; font-size: 1.1rem; text-align: center; padding: 2rem; } /* Стили полосы прокрутки */ ::-webkit-scrollbar { width: 8px; } ::-webkit-scrollbar-track { background: #1a1d24; } ::-webkit-scrollbar-thumb { background: #2f333d; border-radius: 4px; } ::-webkit-scrollbar-thumb:hover { background: #383d47; }