Sha256: f07ed8e5add40d8bde3d6a32ba3c656f4387cd0d0efe9aa53bdf6c8bbe89dbb7

Contents?: true

Size: 815 Bytes

Versions: 63

Compression:

Stored size: 815 Bytes

Contents

{"version":3,"sources":["../../../src/govuk/tools/_px-to-em.scss"],"names":[],"mappings":"AAAA,GAAG;AACH,+BAA+B;AAC/B,GAAG;;AAEH,uBAAuB;AACvB,EAAE;AACF,4CAA4C;AAC5C,4DAA4D;AAC5D,iCAAiC;AACjC,iBAAiB;;AAEjB;EACE;IACE,oBAAoB;EACtB;EACA;IACE,4CAA4C;EAC9C;EACA,yCAAyC;AAC3C","file":"_px-to-em.scss","sourcesContent":["////\n/// @group tools/unit-conversion\n////\n\n/// Convert pixels to em\n///\n/// @param {Number} $value - Length in pixels\n/// @param {Number} $context-font-size - Font size of element\n/// @return {Number} Length in ems\n/// @access public\n\n@function govuk-em($value, $context-font-size) {\n  @if unitless($value) {\n    $value: $value * 1px;\n  }\n  @if unitless($context-font-size) {\n    $context-font-size: $context-font-size * 1px;\n  }\n  @return $value / $context-font-size * 1em;\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/_px-to-em.scss.map
govuk_publishing_components-51.0.0 node_modules/govuk-frontend/dist/govuk/tools/_px-to-em.scss.map
govuk_publishing_components-50.0.1 node_modules/govuk-frontend/dist/govuk/tools/_px-to-em.scss.map
govuk_publishing_components-50.0.0 node_modules/govuk-frontend/dist/govuk/tools/_px-to-em.scss.map
govuk_publishing_components-49.1.0 node_modules/govuk-frontend/dist/govuk/tools/_px-to-em.scss.map
govuk_publishing_components-49.0.0 node_modules/govuk-frontend/dist/govuk/tools/_px-to-em.scss.map
govuk_publishing_components-48.0.0 node_modules/govuk-frontend/dist/govuk/tools/_px-to-em.scss.map
govuk_publishing_components-47.0.0 node_modules/govuk-frontend/dist/govuk/tools/_px-to-em.scss.map
govuk_publishing_components-46.4.0 node_modules/govuk-frontend/dist/govuk/tools/_px-to-em.scss.map
govuk_publishing_components-46.3.1 node_modules/govuk-frontend/dist/govuk/tools/_px-to-em.scss.map
govuk_publishing_components-46.3.0 node_modules/govuk-frontend/dist/govuk/tools/_px-to-em.scss.map
govuk_publishing_components-46.2.0 node_modules/govuk-frontend/dist/govuk/tools/_px-to-em.scss.map
govuk_publishing_components-46.1.0 node_modules/govuk-frontend/dist/govuk/tools/_px-to-em.scss.map
govuk_publishing_components-46.0.0 node_modules/govuk-frontend/dist/govuk/tools/_px-to-em.scss.map
govuk_publishing_components-45.10.0 node_modules/govuk-frontend/dist/govuk/tools/_px-to-em.scss.map
govuk_publishing_components-45.9.0 node_modules/govuk-frontend/dist/govuk/tools/_px-to-em.scss.map
govuk_publishing_components-45.8.0 node_modules/govuk-frontend/dist/govuk/tools/_px-to-em.scss.map
govuk_publishing_components-45.7.0 node_modules/govuk-frontend/dist/govuk/tools/_px-to-em.scss.map
govuk_publishing_components-45.6.1 node_modules/govuk-frontend/dist/govuk/tools/_px-to-em.scss.map
govuk_publishing_components-45.6.0 node_modules/govuk-frontend/dist/govuk/tools/_px-to-em.scss.map