Ensure the heading text appears above the illustration

The easiest way to do this is to make the text a child of the div
with the background image. The change to min-size is so that if
the text wraps often enough on narrow screens, the header expands
vertically rather than the text spilling over.

Fixes #3259
This commit is contained in:
Andy Allan 2021-07-21 15:07:24 +01:00
parent 2443e7dd65
commit 2a885c2cce
5 changed files with 21 additions and 20 deletions

View file

@ -1035,15 +1035,11 @@ tr.turn:hover {
/* Overrides for pages that use new layout conventions */
.header-illustration-heading {
height: 200px;
}
.header-illustration {
background-position: 0 0;
background-repeat: no-repeat;
position: absolute;
height: 200px;
position: relative;
min-height: 200px;
width: 100%;
left: 0;
bottom: 0;
@ -1063,9 +1059,10 @@ tr.turn:hover {
&.new-user-arm {
height: 110px;
width: 130px;
left: 260px;
top: 160px;
left: 280px;
top: 180px;
background-image: image-url("sign-up-illustration-arm.png");
position: absolute;
z-index: 100;
}
}