Sha256: ac049af27dfefefd43b319a8d07494f16f6f791dbc8bf694b5da5c8a27a45bc8
Contents?: true
Size: 1.12 KB
Versions: 63
Compression:
Stored size: 1.12 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,iBAAiB;EACjB;;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 // prettier-ignore\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
63 entries across 63 versions & 2 rubygems