From: Tom Hughes Date: Thu, 22 Nov 2012 13:03:49 +0000 (+0000) Subject: Move map controls higher in the small screen view X-Git-Tag: live~6168^2~1 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/d04e3ac9f86d04fbb30a71d5d10f59bd70a25d9e Move map controls higher in the small screen view --- diff --git a/app/assets/stylesheets/common.css.scss b/app/assets/stylesheets/common.css.scss index d3d644801..606cdd47d 100644 --- a/app/assets/stylesheets/common.css.scss +++ b/app/assets/stylesheets/common.css.scss @@ -440,7 +440,11 @@ body.site-export #tabnav a#exportanchor { .site-index .leaflet-top, .site-export .leaflet-top { - margin-top: 40px !important; + top: 40px !important; + + .leaflet-control { + margin-top: 0px !important; + } } /* Rules for edit menu */ diff --git a/app/assets/stylesheets/small.css.scss b/app/assets/stylesheets/small.css.scss index d7600a0d6..70d6dd629 100644 --- a/app/assets/stylesheets/small.css.scss +++ b/app/assets/stylesheets/small.css.scss @@ -96,9 +96,9 @@ h1 { display: none; } -.site-index .leaflet-top .leaflet-control, -.site-export .leaflet-top .leaflet-control { - margin-top: 10px !important; +.site-index .leaflet-top, +.site-export .leaflet-top { + top: 8px !important; } /* Rules for the main content area */