Skip to content

Commit

Permalink
Replace background image on /alert/by-postcode
Browse files Browse the repository at this point in the history
  • Loading branch information
zarino committed Jul 5, 2024
1 parent ccc444c commit 445a9ea
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 2 deletions.
Binary file removed www/docs/images/person-sitting-in-light.jpg
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 17 additions & 2 deletions www/docs/style/sass/pages/_alert.scss
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
.alerts-header {
position: relative;
text-align: center;
padding: 1em 0;
color: #000; // improve contrast against light background image

background-image: url(/images/person-sitting-in-light.jpg);
background-image: url(/images/pmqs-flickr-53754559691-by-nc-nd.jpg);
background-size: cover;
background-repeat: no-repeat;
background-position: 50% 70%;
Expand Down Expand Up @@ -49,6 +50,20 @@
p.lead {
line-height: 1.4em; // down from default 1.6em
}

.image-attribution {
position: absolute;
bottom: 1em;
right: 1em;
font-size: 0.625em;
margin: 0;
opacity: 0.5;
line-height: 1.2em;

a {
color: inherit;
}
}
}

// An extra big header, designed for pages where all
Expand Down Expand Up @@ -89,7 +104,7 @@
}

input[type="text"] {
border: #999;
border-color: #999;
margin: 0;
height: auto; // allow input to be sized by content's default height
font-size: 1.4em;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,5 @@

</div>
</div>
<p class="image-attribution">Image <a href="https://www.flickr.com/photos/uk_parliament/53754559691/in/datetaken/">© House of Commons</a></p>
</div>

0 comments on commit 445a9ea

Please sign in to comment.