aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG.md1
-rw-r--r--web/cobrands/sass/_base.scss22
-rw-r--r--web/cobrands/sass/_layout.scss13
3 files changed, 21 insertions, 15 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 8c7675f81..7528ee46a 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -24,6 +24,7 @@
- Add per-report OpenGraph images. #2394
- Display GPS marker on /around map. #2359
- Use nicer default photo upload message. #2358
+ - Remove pan control from mobile widths. #2865
- Admin improvements:
- Add new roles system, to group permissions and apply to users. #2483
- Contact form emails now include user admin links.
diff --git a/web/cobrands/sass/_base.scss b/web/cobrands/sass/_base.scss
index db2a016a8..a9e0da128 100644
--- a/web/cobrands/sass/_base.scss
+++ b/web/cobrands/sass/_base.scss
@@ -1698,15 +1698,18 @@ html.js #map .noscript {
display: none;
}
-// OpenLayers fix for navigation being top right
-// Left and right so that zoom can be left, pan right.
#fms_pan_zoom {
- top: 0.5em; // This will be overridden in JS if there's a full screen map with banner
- #{$left}: 0.5em;
+ top: 0.5em;
#{$right}: 0.5em;
}
-// Openlayers map controls (overrides)
+#fms_pan_zoom_panup,
+#fms_pan_zoom_pandown,
+#fms_pan_zoom_panleft,
+#fms_pan_zoom_panright {
+ display: none;
+}
+
#fms_pan_zoom_panup,
#fms_pan_zoom_pandown,
#fms_pan_zoom_panleft,
@@ -1754,13 +1757,13 @@ html.js #map .noscript {
#fms_pan_zoom_zoomin {
background-position: -84px 0;
padding-top: 44px;
- #{$left}: 0;
+ #{$right}: 0;
top: 0;
}
#fms_pan_zoom_zoomout {
background-position: -120px 100%;
padding-top: 44px;
- #{$left}: 0;
+ #{$right}: 0;
top: 44px;
}
@@ -2070,10 +2073,9 @@ img.pin {
background-color: #333;
border-radius: 0.25em;
padding: 0.25em;
- // Offset from top same as fms_pan_zoom, from left so as not
- // to appear on top of zoom buttons (0.5em, 36px, 0.5em)
+ // Offset from top and left same as fms_pan_zoom
top: 0.5em;
- #{$left}: 3.25em;
+ #{$left}: 0.5em;
.map-reporting & {
// Same as fms_pan_zoom above, leaving space for the top bar when reporting
top: 2.75em;
diff --git a/web/cobrands/sass/_layout.scss b/web/cobrands/sass/_layout.scss
index 2d3592e77..fcbb193bc 100644
--- a/web/cobrands/sass/_layout.scss
+++ b/web/cobrands/sass/_layout.scss
@@ -553,6 +553,13 @@ body.authpage {
#fms_pan_zoom_panup,
#fms_pan_zoom_pandown,
#fms_pan_zoom_panleft,
+#fms_pan_zoom_panright {
+ display: block;
+}
+
+#fms_pan_zoom_panup,
+#fms_pan_zoom_pandown,
+#fms_pan_zoom_panleft,
#fms_pan_zoom_panright,
#fms_pan_zoom_zoomin,
#fms_pan_zoom_zoomout,
@@ -563,14 +570,12 @@ body.authpage {
}
}
-// push zoom back over to right
+// indent zoom to line up with pan
#fms_pan_zoom_zoomin {
- #{$left}: auto;
#{$right}: 30px;
top: 130px;
}
#fms_pan_zoom_zoomout {
- #{$left}: auto;
#{$right}: 30px;
top: 174px;
}
@@ -724,8 +729,6 @@ body.authpage {
height: 64px;
width: 64px;
background-color: rgba(0, 0, 0, 0.7);
- // Reset the base left, as zoom buttons now elsewhere
- #{$left}: 0.5em;
}
.big-green-banner {