Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace background image on /alert/by-postcode #1807

Merged
merged 1 commit into from
Jul 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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>
Loading