/
AlexanderMalenkov
/
geobook
Обзор
Документация
Войти
/
AlexanderMalenkov
/
geobook
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
src/style.css
236 строк
3 KB
Alexander Malenkov
GEOBOOK-1: init
04 июн 2026, 12:57
04 июн 2026, 12:57
44c712a
Код
Авторство
О чём код?
* { margin: 0; padding: 0; box-sizing: border-box; } html, body, #root { height: 100%; width: 100%; font-family: system-ui, sans-serif; } .app { display: flex; height: 100%; } .map-container { flex: 1; height: 100%; } .sidebar { width: 300px; background: #f8f9fa; border-left: 1px solid #dee2e6; padding: 16px; overflow-y: auto; } .sidebar h1 { margin-bottom: 16px; font-size: 1.5rem; } .note-list { display: flex; flex-direction: column; gap: 8px; } .note-list-empty { color: #6c757d; text-align: center; margin-top: 40px; } .note-item { background: white; border: 1px solid #dee2e6; border-radius: 8px; padding: 12px; cursor: pointer; transition: box-shadow 0.2s; } .note-item:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.1); } .note-item-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; } .note-item-content { color: #495057; font-size: 0.875rem; margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .note-item-coords { color: #adb5bd; font-size: 0.75rem; } .delete-btn { background: none; border: none; cursor: pointer; font-size: 1rem; padding: 2px 6px; border-radius: 4px; } .delete-btn:hover { background: #fee2e2; } .fab { position: fixed; bottom: 32px; left: 32px; width: 56px; height: 56px; border-radius: 50%; background: #1971c2; color: white; border: none; font-size: 28px; cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,0.3); z-index: 1000; display: flex; align-items: center; justify-content: center; transition: transform 0.2s; } .fab:hover { transform: scale(1.1); } .modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; z-index: 2000; } .modal { background: white; border-radius: 12px; padding: 32px; width: 400px; max-width: 90vw; position: relative; } .modal h2 { margin-bottom: 16px; } .modal label { display: block; margin-bottom: 12px; font-size: 0.875rem; color: #495057; } .modal input, .modal textarea { width: 100%; padding: 8px; border: 1px solid #dee2e6; border-radius: 6px; margin-top: 4px; font-size: 0.875rem; } .form-actions { display: flex; gap: 8px; margin-top: 16px; } .form-actions button { flex: 1; padding: 10px; border: none; border-radius: 6px; cursor: pointer; font-size: 0.875rem; } .form-actions button[type="submit"] { background: #1971c2; color: white; } .form-actions button[type="button"] { background: #e9ecef; color: #495057; } .form-actions button:disabled { opacity: 0.6; cursor: not-allowed; } .close-btn { position: absolute; top: 12px; right: 12px; background: none; border: none; font-size: 1.2rem; cursor: pointer; color: #6c757d; } .close-btn:hover { color: #212529; } .marker { background: none; } .note-info-content { margin: 16px 0; line-height: 1.5; color: #495057; } .note-info-meta { display: flex; flex-direction: column; gap: 4px; font-size: 0.8rem; color: #868e96; margin-bottom: 16px; } .btn-primary { width: 100%; padding: 10px; background: #1971c2; color: white; border: none; border-radius: 6px; cursor: pointer; font-size: 0.875rem; } .btn-primary:hover { background: #1864ab; }