/
petrhlam
/
project_moon
Обзор
Документация
Войти
/
petrhlam
/
project_moon
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
client/src/index.css
272 строки
4 KB
Andrey Sukhikh
Added laravel backend
18 май 2025, 23:08
18 май 2025, 23:08
83488a7
Код
Авторство
О чём код?
@tailwind base; @tailwind components; @tailwind utilities; /* styles.css */ * { margin: 0; padding: 0; box-sizing: border-box } html, body, #root { height: 100%; margin: 0; padding: 0; } .app { display: flex; flex-direction: row; /* height: 100vh */ } .button_sidebar { Border: none; outline: none; } .menu-icon { width: 1.8rem; height: 1.8rem; object-fit: contain; } .header { font-size: 14pt; margin-bottom: 15px; /* margin-left: 5px; */ } .menu-icon_sidebar { width: 1.8rem; height: 1.4rem; object-fit: contain; margin-right: 10px; } .main-content { overflow: hidden; height: 100vh; overflow-y: auto; flex: 1; } .map-container { width: 100%; height: 100%; display: flex; flex-direction: row; background-color: #e0e0e0; position: relative; } .map-container>div:first-child { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; /* карта должна быть под элементами управления */ } .controls { position: absolute; top: 20px; right: 20px; display: flex; gap: 10px; } .layer-controls { position: absolute; top: 20px; left: 20px; z-index: 1000; } .layer-icons { display: flex; gap: 8px; margin-bottom: 8px; } .layer-icon { width: 40px; height: 40px; background: white; padding: 8px; border-radius: 4px; cursor: pointer; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); } .layer-menu { background: white; border-radius: 4px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); width: 200px; } .layer-header { padding: 12px 16px; background: #f5f5f5; border-radius: 4px 4px 0 0; font-weight: 500; } .layer-items { padding: 8px 0; } .layer-item { padding: 8px 16px; cursor: pointer; } .layer-item:hover { background: #f5f5f5; } .map-controls { position: absolute; right: 20px; display: flex; flex-direction: column; gap: 10px; } .zoom-controls { position: absolute; right: 1%; top: 50%; transform: translateY(350%); display: flex; flex-direction: column; gap: 10px; z-index: 10; /* padding: 20px 10px; */ margin-right: auto; } /* position: relative; right: unset; top: unset; transform: none; display: flex; flex-direction: column; gap: 10px; padding: 20px 10px; margin-right: auto; margin-left: 0em;; */ .map-button { @apply bg-white rounded flex items-center justify-center cursor-pointer shadow-md hover:bg-gray-50 text-sm; } .home-button { /* position: fixed; */ /* right: 20px; bottom: 20px; */ width: 40px; height: 40px; background: white; border: 1px solid rgba(0, 0, 0, 0.1); border-radius: 4px; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); padding: 8px; } .home-button img { width: 100%; height: 100%; object-fit: contain; } .zoom-button:hover, .home-button:hover { background: #f5f5f5; } .module { background: white; border: 1px solid #ccc; padding: 10px; margin: 5px; } .connection { stroke: #333; stroke-width: 2; } .grid { stroke: #ddd; stroke-width: 0.5; } .button { font-size: 14px; padding: 10px 10px; background: white; border: 1px solid #ccc; cursor: pointer; } .layer-selector { margin: 20px 0 0 20px; z-index: 10; } .spectral-analysis { display: flex; height: 100%; } .analysis-map { flex: 1; position: relative; } .analysis-section { margin-top: 20px; } .analysis-section .button { margin: 5px; } .right-panel { display: flex; flex-direction: row; align-items: center; margin-left: auto; height: 100%; z-index: 10; } .zoom-controls-spectral { position: relative; right: unset; top: unset; transform: none; display: flex; flex-direction: column; gap: 10px; padding: 20px 10px; margin-right: auto; margin-left: 0em; ; } .ol-zoom.ol-unselectable.ol-control { @apply hidden; }