Sha256: a6a4adfdf397d09145cf72a2ec7efb58916efcd0096ea2f60f57c4ec352d886d

Contents?: true

Size: 817 Bytes

Versions: 48

Compression:

Stored size: 817 Bytes

Contents

{"version":3,"sources":["../../../src/govuk/tools/_px-to-rem.scss"],"names":[],"mappings":"AAAA,GAAG;AACH,+BAA+B;AAC/B,GAAG;;AAEH,wBAAwB;AACxB,EAAE;AACF,8EAA8E;AAC9E,wEAAwE;AACxE,EAAE;AACF,4CAA4C;AAC5C,kCAAkC;AAClC,iBAAiB;;AAEjB;EACE;IACE,oBAAoB;EACtB;;EAEA,6CAA6C;AAC/C","file":"_px-to-rem.scss","sourcesContent":["////\n/// @group tools/unit-conversion\n////\n\n/// Convert pixels to rem\n///\n/// The $govuk-root-font-size (defined in settings/_typography-responsive.scss)\n/// must be configured to match the font-size of your root (html) element\n///\n/// @param {Number} $value - Length in pixels\n/// @return {Number} Length in rems\n/// @access public\n\n@function govuk-px-to-rem($value) {\n  @if unitless($value) {\n    $value: $value * 1px;\n  }\n\n  @return $value / $govuk-root-font-size * 1rem;\n}\n"]}

Version data entries

48 entries across 48 versions & 2 rubygems

Version Path
govuk_publishing_components-41.1.2 node_modules/govuk-frontend/dist/govuk/tools/_px-to-rem.scss.map
govuk_publishing_components-41.1.1 node_modules/govuk-frontend/dist/govuk/tools/_px-to-rem.scss.map
govuk_publishing_components-41.1.0 node_modules/govuk-frontend/dist/govuk/tools/_px-to-rem.scss.map
govuk_publishing_components-41.0.0 node_modules/govuk-frontend/dist/govuk/tools/_px-to-rem.scss.map
govuk_publishing_components-40.1.0 node_modules/govuk-frontend/dist/govuk/tools/_px-to-rem.scss.map
govuk_publishing_components-40.0.0 node_modules/govuk-frontend/dist/govuk/tools/_px-to-rem.scss.map
defra_ruby_template-5.4.1 node_modules/govuk-frontend/dist/govuk/tools/_px-to-rem.scss.map
defra_ruby_template-5.4.0 node_modules/govuk-frontend/dist/govuk/tools/_px-to-rem.scss.map