2019-04-05 13:16:12 +01:00
|
|
|
// Copy of _url-helpers.scss in govuk_frontend_toolkit
|
2020-12-29 18:05:07 +00:00
|
|
|
// to prepend the path to where we store images
|
|
|
|
|
|
2019-04-05 13:16:12 +01:00
|
|
|
@function file-url($file) {
|
|
|
|
|
$url: '';
|
|
|
|
|
@if $path {
|
2020-12-29 18:05:07 +00:00
|
|
|
$url: url($path + $file);
|
2019-04-05 13:16:12 +01:00
|
|
|
} @else {
|
2020-12-29 18:05:07 +00:00
|
|
|
$url: url($file);
|
2019-04-05 13:16:12 +01:00
|
|
|
}
|
|
|
|
|
@return $url;
|
|
|
|
|
}
|