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

Version Path
govuk_publishing_components-51.1.0 node_modules/govuk-frontend/dist/govuk/tools/_image-url.scss.map
govuk_publishing_components-51.0.0 node_modules/govuk-frontend/dist/govuk/tools/_image-url.scss.map
govuk_publishing_components-50.0.1 node_modules/govuk-frontend/dist/govuk/tools/_image-url.scss.map
govuk_publishing_components-50.0.0 node_modules/govuk-frontend/dist/govuk/tools/_image-url.scss.map
govuk_publishing_components-49.1.0 node_modules/govuk-frontend/dist/govuk/tools/_image-url.scss.map
govuk_publishing_components-49.0.0 node_modules/govuk-frontend/dist/govuk/tools/_image-url.scss.map
govuk_publishing_components-48.0.0 node_modules/govuk-frontend/dist/govuk/tools/_image-url.scss.map
govuk_publishing_components-47.0.0 node_modules/govuk-frontend/dist/govuk/tools/_image-url.scss.map
govuk_publishing_components-46.4.0 node_modules/govuk-frontend/dist/govuk/tools/_image-url.scss.map
govuk_publishing_components-46.3.1 node_modules/govuk-frontend/dist/govuk/tools/_image-url.scss.map
govuk_publishing_components-46.3.0 node_modules/govuk-frontend/dist/govuk/tools/_image-url.scss.map
govuk_publishing_components-46.2.0 node_modules/govuk-frontend/dist/govuk/tools/_image-url.scss.map
govuk_publishing_components-46.1.0 node_modules/govuk-frontend/dist/govuk/tools/_image-url.scss.map
govuk_publishing_components-46.0.0 node_modules/govuk-frontend/dist/govuk/tools/_image-url.scss.map
govuk_publishing_components-45.10.0 node_modules/govuk-frontend/dist/govuk/tools/_image-url.scss.map
govuk_publishing_components-45.9.0 node_modules/govuk-frontend/dist/govuk/tools/_image-url.scss.map
govuk_publishing_components-45.8.0 node_modules/govuk-frontend/dist/govuk/tools/_image-url.scss.map
govuk_publishing_components-45.7.0 node_modules/govuk-frontend/dist/govuk/tools/_image-url.scss.map
govuk_publishing_components-45.6.1 node_modules/govuk-frontend/dist/govuk/tools/_image-url.scss.map
govuk_publishing_components-45.6.0 node_modules/govuk-frontend/dist/govuk/tools/_image-url.scss.map