diff --git a/app/assets/stylesheets/location.css b/app/assets/stylesheets/location.css index 024442402f..b5f1ee32ba 100644 --- a/app/assets/stylesheets/location.css +++ b/app/assets/stylesheets/location.css @@ -10,6 +10,98 @@ #map_content .form-group .btn { margin-top: .4rem; } +#map_content .form-group.recent-locations { + /* margin-bottom: 1.2rem; */ +} +#map_content .recent-locations label { + margin-bottom: 0; +} +#map_content .slide-container label { + margin: 0; +} + +#blurred-location-modal .small-description { + font-size: 0.9rem; + color: #808080; +} + +#blurred-location-modal .modal-header { + border-bottom: 0; + padding-bottom: 0; +} +#blurred-location-modal .modal-header .close { + padding-bottom: 0.5rem; +} + +#blurred-location-modal .modal-content .badge-group { + margin-left: -6px; +} + +#blurred-location-modal .modal-content .badge.badge-info { + background-color: #337ab7; + margin-left: 7px; + margin-bottom: 2px; + padding: 3px; +} +#blurred-location-modal .modal-content .badge { + background-color: white; + color: #337ab7; + margin: 0; +} +#blurred-location-modal .modal-footer { + justify-content: space-between; + flex-wrap: wrap; +} +#blurred-location-modal #place_name { + display: flex; + flex-wrap: wrap; + align-items: center; +} +#blurred-location-modal .modal-footer .location-box { + flex: 0 1 100%; +} +#blurred-location-modal #placenameDisplay { + flex: 0 1 100%; +} +#blurred-location-modal .modal-footer label { + flex: 0 1 100%; + margin: 0; +} +#blurred-location-modal .modal-footer .button-box { + flex: 0 1 100%; + display: flex; + justify-content: center; + margin: 0.5rem 0 0 0; +} + +@media (min-width: 576px) { + #blurred-location-modal .modal-footer { + justify-content: space-between; + flex-wrap: nowrap; + } + #blurred-location-modal .modal-footer .button-box { + flex: 0 0 10%; + display: inline; + margin: 0 0 0 3rem; + } +} + +@media (min-width: 992px) { + #blurred-location-modal #place_name { + flex-wrap: nowrap; + } + #blurred-location-modal .modal-footer .location-box { + flex: 1 1 50%; + } + #blurred-location-modal #placenameDisplay { + flex: 1 1 60%; + } + #blurred-location-modal .modal-footer label { + flex: 1 1 40%; + margin: 0; + padding-left: 0.5rem; + } +} a:not([href]):not([tabindex]).btn-location, .btn-location { @@ -25,4 +117,8 @@ a:not([href]):not([tabindex]).btn-outline-secondary.btn-location:hover i, .btn-outline-secondary.btn-location:hover, .btn-outline-secondary.btn-location:hover i { color: white; -} \ No newline at end of file +} + +#coord_button { + text-decoration: underline; +} diff --git a/app/views/editor/rich.html.erb b/app/views/editor/rich.html.erb index 13a7874586..ccd57a5532 100644 --- a/app/views/editor/rich.html.erb +++ b/app/views/editor/rich.html.erb @@ -34,10 +34,6 @@ margin: 0 auto; } - #coord_button { - text-decoration: underline; - } - button i.fa-map-marker { color: #c40; } diff --git a/app/views/locations/_form.html.erb b/app/views/locations/_form.html.erb index 67b5da172a..5226035ac2 100644 --- a/app/views/locations/_form.html.erb +++ b/app/views/locations/_form.html.erb @@ -2,70 +2,100 @@ <%= javascript_include_tag('/lib/leaflet-spin/example/spin/dist/spin.min.js') %> <%= javascript_include_tag('/lib/leaflet-spin/example/leaflet.spin.min.js') %> -
-
- - -
+