Files
notifications-admin/app/assets/stylesheets/_url-helpers.scss
T

15 lines
439 B
SCSS
Raw Normal View History

2019-04-05 13:16:12 +01:00
// 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;
}