aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--web/cobrands/sass/_base.scss17
-rw-r--r--web/cobrands/sass/_layout.scss13
2 files changed, 17 insertions, 13 deletions
diff --git a/web/cobrands/sass/_base.scss b/web/cobrands/sass/_base.scss
index 276db90ae..8348dfcd7 100644
--- a/web/cobrands/sass/_base.scss
+++ b/web/cobrands/sass/_base.scss
@@ -1768,6 +1768,23 @@ img.pin {
height: 10em; // eg: at the top of individual report pages
}
+#map_sidebar {
+ // Chrome/Safari count padding-bottom as part of the scrollable content in
+ // an overflow:scroll element (technically in contravention of the spec),
+ // whereas Firefox/IE render the padding outside the scrollable area.
+ // In desktop mode, we need padding at the bottom of the sidebar, to stop
+ // .shadow-wrap from obscuring content at the bottom of the sidebar. So we
+ // use an :after pseudo-element instead of padding.
+ // In mobile mode, the extra space here still helps differentiate the page
+ // content on report/reporting pages, from the nav immediately below.
+ // https://bugzilla.mozilla.org/show_bug.cgi?id=748518
+ &:after {
+ content: "";
+ display: block;
+ height: 4em;
+ }
+}
+
// When you're in the reporting flow on mobile, we hide the site-header
// and make the map full screen to reduce distractions. JavaScript also
// tweaks the text content of some of the map-related elements, to make
diff --git a/web/cobrands/sass/_layout.scss b/web/cobrands/sass/_layout.scss
index 8735da4f5..7d2b99c9b 100644
--- a/web/cobrands/sass/_layout.scss
+++ b/web/cobrands/sass/_layout.scss
@@ -268,19 +268,6 @@ body.mappage.admin {
width: $mappage-sidebar-width--medium + $mappage-actions-width--medium;
}
}
-
- // Chrome/Safari count padding-bottom as part of the scrollable content in
- // an overflow:scroll element (technically in contravention of the spec),
- // whereas Firefox/IE render the padding outside the scrollable area.
- // We need padding at the bottom of the sidebar, to stop .shadow-wrap from
- // obscuring content at the bottom of the sidebar. So we use an :after
- // pseudo-element instead of padding.
- // https://bugzilla.mozilla.org/show_bug.cgi?id=748518
- &:after {
- content: "";
- display: block;
- height: 4em;
- }
}
// This goes inside #map_sidebar, and establishes a flex container allowing