From 8f7cd60cdd2efed0c4c0d929f5c6c1e3257649b6 Mon Sep 17 00:00:00 2001 From: Alex Tomlins Date: Wed, 11 Dec 2013 15:55:34 +0000 Subject: [PATCH] Use image-url scss helper. A few images weren't using this. This means that they were using the non-digest variant in production, which will get shorter cache times, and also won't pick up changes as quickly because the filename won't change when the contents change. --- app/assets/stylesheets/_buttons.scss | 2 +- app/assets/stylesheets/_header.scss | 4 ++-- app/assets/stylesheets/organisations.scss | 24 +++++++++++------------ 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/app/assets/stylesheets/_buttons.scss b/app/assets/stylesheets/_buttons.scss index 3c2a4f2ff..d5c3f6ffc 100644 --- a/app/assets/stylesheets/_buttons.scss +++ b/app/assets/stylesheets/_buttons.scss @@ -53,7 +53,7 @@ } @include ie(6) { - background-image: url('icon-pointer-indexed.png'); + background-image: image-url('icon-pointer-indexed.png'); } @include device-pixel-ratio() { diff --git a/app/assets/stylesheets/_header.scss b/app/assets/stylesheets/_header.scss index 060eb7660..1dd0528b4 100644 --- a/app/assets/stylesheets/_header.scss +++ b/app/assets/stylesheets/_header.scss @@ -59,7 +59,7 @@ overflow: hidden; text-indent: -5000px; background-color: $light-blue; - background-image: url("search-button.png"); + background-image: image-url("search-button.png"); background-repeat: no-repeat; background-position: 0 50%; @@ -161,7 +161,7 @@ color: $white; background-color: $mainstream-brand; - background-image: url("search-button.png"); + background-image: image-url("search-button.png"); background-repeat: no-repeat; background-position: 0 50%; diff --git a/app/assets/stylesheets/organisations.scss b/app/assets/stylesheets/organisations.scss index 86d823e23..6983ba0bc 100644 --- a/app/assets/stylesheets/organisations.scss +++ b/app/assets/stylesheets/organisations.scss @@ -125,7 +125,7 @@ @include organisation-logo-image('crests/bis_crest_18px.png'); @include media-down(mobile) { - background-image: url('crests/bis_crest_13px.png') + background-image: image-url('crests/bis_crest_13px.png') } } @@ -135,7 +135,7 @@ @include organisation-logo-image('crests/coastguard_18px.png'); @include media-down(mobile) { - background-image: url('crests/coastguard_13px.png') + background-image: image-url('crests/coastguard_13px.png') } } @@ -143,7 +143,7 @@ @include organisation-logo-image('crests/hmrc_crest_18px.png'); @include media-down(mobile) { - background-image: url('crests/hmrc_crest_13px.png') + background-image: image-url('crests/hmrc_crest_13px.png') } } @@ -153,7 +153,7 @@ @include organisation-logo-image('crests/ho_crest_18px.png'); @include media-down(mobile) { - background-image: url('crests/ho_crest_13px.png') + background-image: image-url('crests/ho_crest_13px.png') } } @@ -163,7 +163,7 @@ @include organisation-logo-image('crests/mod_crest_18px.png'); @include media-down(mobile) { - background-image: url('crests/mod_crest_13px.png') + background-image: image-url('crests/mod_crest_13px.png') } } @@ -177,7 +177,7 @@ @include organisation-logo-image('crests/org_crest_18px.png'); @include media-down(mobile) { - background-image: url('crests/org_crest_13px.png') + background-image: image-url('crests/org_crest_13px.png') } } @@ -185,7 +185,7 @@ @include organisation-logo-image('crests/portcullis_18px.png'); @include media-down(mobile) { - background-image: url('crests/portcullis_crest_13px.png') + background-image: image-url('crests/portcullis_crest_13px.png') } } @@ -193,7 +193,7 @@ @include organisation-logo-image('crests/so_crest_18px.png'); @include media-down(mobile) { - background-image: url('crests/so_crest_13px.png') + background-image: image-url('crests/so_crest_13px.png') } } @@ -201,7 +201,7 @@ @include organisation-logo-image('crests/org_crest_18px.png'); @include media-down(mobile) { - background-image: url('crests/org_crest_13px.png') + background-image: image-url('crests/org_crest_13px.png') } } @@ -209,7 +209,7 @@ @include organisation-logo-image('crests/ukaea_crest_18px.png'); @include media-down(mobile) { - background-image: url('crests/ukaea_crest_13px.png') + background-image: image-url('crests/ukaea_crest_13px.png') } } @@ -219,7 +219,7 @@ @include organisation-logo-image('crests/ukho_18px.png'); @include media-down(mobile) { - background-image: url('crests/ukho_13px.png') + background-image: image-url('crests/ukho_13px.png') } } @@ -229,6 +229,6 @@ @include organisation-logo-image('crests/wales_crest_18px.png'); @include media-down(mobile) { - background-image: url('crests/wales_crest_13px.png') + background-image: image-url('crests/wales_crest_13px.png') } }