diff --git a/nocodb-map-viewer/app/public/css/style.css b/nocodb-map-viewer/app/public/css/style.css index ce80a3d..50dca5c 100644 --- a/nocodb-map-viewer/app/public/css/style.css +++ b/nocodb-map-viewer/app/public/css/style.css @@ -142,6 +142,20 @@ body { background-color: #7f8c8d; } +.btn-sm { + padding: 6px 12px; + font-size: 13px; +} + +.btn-danger { + background-color: var(--danger-color); + color: white; +} + +.btn-danger:hover { + background-color: #c0392b; +} + /* Crosshair for location selection */ .crosshair { position: absolute; @@ -326,6 +340,46 @@ body { padding: 20px; } +/* Edit Footer Form */ +.edit-footer { + position: fixed; + bottom: 0; + left: 0; + right: 0; + background-color: white; + border-top: 2px solid var(--primary-color); + box-shadow: 0 -2px 10px rgba(0,0,0,0.1); + z-index: 1500; + transition: transform 0.3s ease; + max-height: 60vh; + overflow-y: auto; +} + +.edit-footer.hidden { + transform: translateY(100%); +} + +.edit-footer-content { + padding: 20px; + max-width: 800px; + margin: 0 auto; +} + +.edit-footer-header { + display: flex; + justify-content: space-between; + align-items: center; + margin-bottom: 20px; + padding-bottom: 15px; + border-bottom: 1px solid #e0e0e0; +} + +.edit-footer-header h2 { + margin: 0; + font-size: 20px; + color: var(--dark-color); +} + /* Form styles */ .form-group { margin-bottom: 15px; @@ -362,11 +416,46 @@ body { box-shadow: 0 0 0 2px rgba(44, 90, 160, 0.1); } +.form-group input.valid { + border-color: var(--success-color); +} + +.form-group input.invalid { + border-color: var(--danger-color); +} + .form-group input[readonly] { background-color: #f5f5f5; cursor: not-allowed; } +.form-group select { + width: 100%; + padding: 8px 12px; + border: 1px solid #ddd; + border-radius: var(--border-radius); + font-size: 14px; + transition: var(--transition); + background-color: white; + cursor: pointer; +} + +.form-group select:focus { + outline: none; + border-color: var(--primary-color); + box-shadow: 0 0 0 2px rgba(44, 90, 160, 0.1); +} + +.form-group input[type="checkbox"] { + width: auto; + margin-right: 8px; + cursor: pointer; +} + +.form-group label input[type="checkbox"] { + vertical-align: middle; +} + .form-actions { display: flex; gap: 10px; @@ -445,6 +534,42 @@ body { border-top: 1px solid #eee; } +/* Map legend */ +.map-legend { + background-color: white; + padding: 10px 15px; + border-radius: var(--border-radius); + box-shadow: 0 2px 8px rgba(0,0,0,0.15); + font-size: 13px; +} + +.map-legend h4 { + margin: 0 0 10px 0; + font-size: 14px; + font-weight: 600; + color: var(--dark-color); +} + +.legend-item { + display: flex; + align-items: center; + margin-bottom: 5px; +} + +.legend-item:last-child { + margin-bottom: 0; +} + +.legend-color { + display: inline-block; + width: 16px; + height: 16px; + border-radius: 50%; + margin-right: 8px; + border: 1px solid #fff; + box-shadow: 0 1px 3px rgba(0,0,0,0.2); +} + /* Responsive design */ @media (max-width: 768px) { .header h1 { diff --git a/nocodb-map-viewer/app/public/index.html b/nocodb-map-viewer/app/public/index.html index d0ee844..de9a316 100644 --- a/nocodb-map-viewer/app/public/index.html +++ b/nocodb-map-viewer/app/public/index.html @@ -55,6 +55,96 @@
+ + + +