Sha256: 47bd755071bb24f96cb0688b0139938207708104c8af305120686d4a23414edc
Contents?: true
Size: 1.09 KB
Versions: 25
Compression:
Stored size: 1.09 KB
Contents
{"version":3,"sources":["../../../src/govuk/tools/_image-url.scss"],"names":[],"mappings":"AAAA,GAAG;AACH,sBAAsB;AACtB,GAAG;;AAEH,YAAY;AACZ,EAAE;AACF,4EAA4E;AAC5E,wEAAwE;AACxE,8BAA8B;AAC9B,EAAE;AACF,iDAAiD;AACjD,4DAA4D;AAC5D,iBAAiB;;AAEjB;EACE;;kDAEgD;;EAEhD;IACE,gEAAgE;EAClE,EAAE;IACA,2CAA2C;EAC7C;AACF","file":"_image-url.scss","sourcesContent":["////\n/// @group tools/assets\n////\n\n/// Image URL\n///\n/// If a custom image-url handler is defined ($govuk-image-url-function) then\n/// it will be called, otherwise a url will be returned with the filename\n/// appended to the image path.\n///\n/// @param {String} Filename for the image to load\n/// @return {String} URL for the filename, wrapped in `url()`\n/// @access public\n\n@function govuk-image-url($filename) {\n $use-custom-function: variable-exists(\"govuk-image-url-function\")\n and $govuk-image-url-function\n and function-exists($govuk-image-url-function);\n\n @if $use-custom-function {\n @return call(get-function($govuk-image-url-function), $filename);\n } @else {\n @return url($govuk-images-path + $filename);\n }\n}\n"]}
Version data entries
25 entries across 25 versions & 1 rubygems