mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-05 23:08:25 -04:00
Progressively enhance the proposition illustration
When users with Javascript enabled request it we can show a higher quality SVG image which will look better in certain circumstances.
This commit is contained in:
@@ -12,13 +12,14 @@ $button-shadow-size: $govuk-border-width-form-element;
|
||||
// negative margin-top it overlaps the theme bar at the bottom of the header
|
||||
position: relative;
|
||||
margin: -10px 0 govuk-spacing(6) * 1.5 0;
|
||||
padding: 0 0 govuk-spacing(9) 0;
|
||||
background: $product-page-blue;
|
||||
color: $white;
|
||||
|
||||
&-wrapper {
|
||||
|
||||
@include govuk-width-container;
|
||||
user-select: none;
|
||||
padding: 0 0 govuk-spacing(9) 0;
|
||||
|
||||
@include media(desktop) {
|
||||
background-image: file-url('product/proposition-illustration.png');
|
||||
@@ -27,6 +28,11 @@ $button-shadow-size: $govuk-border-width-form-element;
|
||||
background-position: right -6px top 100px;
|
||||
}
|
||||
|
||||
&--alternative {
|
||||
background-image: file-url('product/proposition-alternative.svg');
|
||||
background-position: right 10px bottom 0;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
h1 {
|
||||
|
||||
Reference in New Issue
Block a user