aboutsummaryrefslogtreecommitdiffstats
path: root/www/css/fms.css
diff options
context:
space:
mode:
Diffstat (limited to 'www/css/fms.css')
-rw-r--r--www/css/fms.css24
1 files changed, 24 insertions, 0 deletions
diff --git a/www/css/fms.css b/www/css/fms.css
index 9ed3fd0..de94e95 100644
--- a/www/css/fms.css
+++ b/www/css/fms.css
@@ -423,6 +423,9 @@
-webkit-filter: blur(3px);
opacity: 0.9;
}
+ #map_box.background-map .olControlAttribution{
+ display: none;
+ }
#map{
opacity: 0.85;
@@ -952,3 +955,24 @@
.ui-content.hidden {
visibility: hidden;
}
+
+/* iPhone X has an 'unsafe' area occupied by the home
+indicator at the bottom of screen, which we need to stop UI controls
+clashing with. */
+body.iphone-x {
+ /* iOS 11–11.1 use constant(), 11.2 uses env() - assign whatever one is valid
+ to a CSS variable as this makes things simpler (e.g. with calc()) */
+ --safe-area-inset-bottom: constant(safe-area-inset-bottom);
+ --safe-area-inset-bottom: env(safe-area-inset-bottom);
+}
+
+/* The OpenLayers attribution control */
+body.iphone-x .olControlAttribution {
+ padding-bottom: var(--safe-area-inset-bottom);
+}
+
+/* The "new report here" button */
+body.iphone-x .map-bottom-btn {
+ /* Can't use env() inside calc(), so assign value to a CSS variable instead */
+ bottom: calc(20px + var(--safe-area-inset-bottom));
+}