Logo
Explore Help
Sign In
darkhelm/notifications-admin
1
0
Fork 0
You've already forked notifications-admin
mirror of https://github.com/GSA/notifications-admin.git synced 2026-09-05 19:08:26 -04:00
Code Issues Packages Projects Releases Wiki Activity
Files
19fd89a2eee448ceb0a5b32b71ed82dc89ba3913
notifications-admin/app/assets/stylesheets/_url-helpers.scss

15 lines
439 B
SCSS
Raw Normal View History

Replace gulp-base64 with gulp-base64-inline The gulp-base64 package has 11 dependencies with vulnerabilities listed against them as of this time. It also doesn't seem to be maintained any more. The last commit was in 2015 and there are issues and pull requests up to bump the dependencies. This replaces it with gulp-base64-inline. gulp-base64-inline takes a single path, which it prepends to any image paths it finds. Our image paths are actually URLs, not filesystem paths so we need to send it a relative path to repoint the URL. This commit includes changes that remove a few `@import`s from one of our sass partials. They aren't needed as those files are imported further up the stack and `_typography.scss` has an import in it that overwrites the new `_url-helpers.scss` we added here.
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;
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.0 Page: 679ms Template: 43ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API