Sha256: 60d2756aca347470ca65ced567b57e3ab3b808b94ad48df3ffb57f7cdeaa5ba8

Contents?: true

Size: 1.53 KB

Versions: 63

Compression:

Stored size: 1.53 KB

Contents

{"version":3,"sources":["../../../src/govuk/tools/_exports.scss"],"names":[],"mappings":"AAAA,GAAG;AACH,eAAe;AACf,GAAG;;AAEH,mDAAmD;AACnD,EAAE;AACF,aAAa;AACb,kBAAkB;;AAElB,qCAAqC;;AAErC,gBAAgB;AAChB,EAAE;AACF,6EAA6E;AAC7E,wEAAwE;AACxE,6CAA6C;AAC7C,EAAE;AACF,8EAA8E;AAC9E,6EAA6E;AAC7E,yCAAyC;AACzC,iBAAiB;;AAEjB;EACE,gEAAgE;EAChE;IACE,6BAA6B;IAC7B,yEAAyE;IACzE,wCAAwC;IACxC,QAAQ;EACV;EACA,6EAA6E;EAC7E,qDAAqD;AACvD","file":"_exports.scss","sourcesContent":["////\n/// @group tools\n////\n\n/// List of modules which have already been exported\n///\n/// @type List\n/// @access private\n\n$_govuk-imported-modules: () !default;\n\n/// Export module\n///\n/// Ensure that the modules of CSS that we define throughout Frontend are only\n/// included in the generated CSS once, no matter how many times they are\n/// imported across the individual components.\n///\n/// @param {String} $name - Name of module - must be unique within the codebase\n/// @content The passed content will only be outputted if a module of the same\n///   $name has not already been outputted\n/// @access public\n\n@mixin govuk-exports($name) {\n  // If the mixin is not in the list of modules already exported...\n  @if not index($_govuk-imported-modules, $name) {\n    // ... then add it to the list\n    $_govuk-imported-modules: append($_govuk-imported-modules, $name) !global;\n    // ... and output the CSS for that module\n    @content;\n  }\n  // The next time exports is called for the module of the same name, it will be\n  // found in the list and so nothing will be outputted.\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/_exports.scss.map
govuk_publishing_components-51.0.0 node_modules/govuk-frontend/dist/govuk/tools/_exports.scss.map
govuk_publishing_components-50.0.1 node_modules/govuk-frontend/dist/govuk/tools/_exports.scss.map
govuk_publishing_components-50.0.0 node_modules/govuk-frontend/dist/govuk/tools/_exports.scss.map
govuk_publishing_components-49.1.0 node_modules/govuk-frontend/dist/govuk/tools/_exports.scss.map
govuk_publishing_components-49.0.0 node_modules/govuk-frontend/dist/govuk/tools/_exports.scss.map
govuk_publishing_components-48.0.0 node_modules/govuk-frontend/dist/govuk/tools/_exports.scss.map
govuk_publishing_components-47.0.0 node_modules/govuk-frontend/dist/govuk/tools/_exports.scss.map
govuk_publishing_components-46.4.0 node_modules/govuk-frontend/dist/govuk/tools/_exports.scss.map
govuk_publishing_components-46.3.1 node_modules/govuk-frontend/dist/govuk/tools/_exports.scss.map
govuk_publishing_components-46.3.0 node_modules/govuk-frontend/dist/govuk/tools/_exports.scss.map
govuk_publishing_components-46.2.0 node_modules/govuk-frontend/dist/govuk/tools/_exports.scss.map
govuk_publishing_components-46.1.0 node_modules/govuk-frontend/dist/govuk/tools/_exports.scss.map
govuk_publishing_components-46.0.0 node_modules/govuk-frontend/dist/govuk/tools/_exports.scss.map
govuk_publishing_components-45.10.0 node_modules/govuk-frontend/dist/govuk/tools/_exports.scss.map
govuk_publishing_components-45.9.0 node_modules/govuk-frontend/dist/govuk/tools/_exports.scss.map
govuk_publishing_components-45.8.0 node_modules/govuk-frontend/dist/govuk/tools/_exports.scss.map
govuk_publishing_components-45.7.0 node_modules/govuk-frontend/dist/govuk/tools/_exports.scss.map
govuk_publishing_components-45.6.1 node_modules/govuk-frontend/dist/govuk/tools/_exports.scss.map
govuk_publishing_components-45.6.0 node_modules/govuk-frontend/dist/govuk/tools/_exports.scss.map