Return main content area to position: static

Was set to `position: relative` to solve an issue
on the produce page. This introduced other issues
with the sticky JS and the fix is only needed for
the product page so this moves it to that CSS.

The previous fix was applied here:

https://github.com/alphagov/notifications-admin/commit/9441dd0b375ecb26dd42949a14fb41dad5a1bebb
This commit is contained in:
Tom Byers
2019-11-28 11:32:32 +00:00
parent dea3f296ad
commit f05f7b2661
2 changed files with 5 additions and 8 deletions
@@ -2,6 +2,11 @@
&-intro {
// The GOV.UK Frontend header component wraps content that is `position: relative`
// This changes its z-index position, putting it above the `<main>` section in the stacking order
// We need the `<main>` section to be above it, like the default order, so when we apply the
// negative margin-top it overlaps the theme bar at the bottom of the header
position: relative;
margin: -10px 0 $gutter * 1.5 0;
padding: 0 0 $gutter * 2 0;
background: $govuk-blue;