Skip to content

Commit

Permalink
Replace image-url asset helper instances
Browse files Browse the repository at this point in the history
Replace instances with CSS url() function. See rails/dartsass-rails#18.

Co-Authored-By: Martin Jones <[email protected]>
  • Loading branch information
jon-kirwan and MartinJJones committed Dec 11, 2023
1 parent b07eb3b commit 1150402
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/assets/stylesheets/components/_subscribe.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@
@include govuk-font($size: 19, $weight: bold);

display: block;
background: image-url("calendars/icon-calendar.png") no-repeat scroll 0 0;
background: url("calendars/icon-calendar.png") no-repeat scroll 0 0;
min-height: 2.5em;
padding: 0 0 0 3em;

@include govuk-device-pixel-ratio {
background-image: image-url("calendars/icon-calendar-2x.png");
background-image: url("calendars/icon-calendar-2x.png");
background-size: 29px 24px;
}
}
4 changes: 2 additions & 2 deletions app/assets/stylesheets/views/_calendars.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
}

.app-bunting__triangles {
background-image: image-url("calendars/bunting-grey-string.svg");
background-image: url("calendars/bunting-grey-string.svg");
background-color: transparent;
background-repeat: repeat-x;
background-position: center center;
Expand All @@ -38,7 +38,7 @@
}

.app-bunting__tinsel {
background-image: image-url("calendars/tinsel.png");
background-image: url("calendars/tinsel.png");
background-color: transparent;
background-repeat: repeat-x;
background-position: center top;
Expand Down

0 comments on commit 1150402

Please sign in to comment.