mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-05 15:28:25 -04:00
15 lines
439 B
SCSS
15 lines
439 B
SCSS
|
|
// Copy of _url-helpers.scss in govuk_frontend_toolkit
|
||
|
|
// to allow us to use gulp-base64-inline on all our images
|
||
|
|
// gulp-base64-inline requires you to specify which of your
|
||
|
|
// images you want encoded by using the `inline()` function
|
||
|
|
// see https://github.com/goschevski/gulp-base64-inline
|
||
|
|
@function file-url($file) {
|
||
|
|
$url: '';
|
||
|
|
@if $path {
|
||
|
|
$url: inline($path + $file);
|
||
|
|
} @else {
|
||
|
|
$url: image-url($file);
|
||
|
|
}
|
||
|
|
@return $url;
|
||
|
|
}
|