Sha256: e5f6c8fc594c1394c3c0c7536692ae8169ebfacb508f11e0952685e3e793bc0c

Contents?: true

Size: 816 Bytes

Versions: 25

Compression:

Stored size: 816 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

25 entries across 25 versions & 1 rubygems

Version Path
govuk_publishing_components-39.2.5 node_modules/govuk-frontend/govuk/tools/_px-to-rem.scss.map
govuk_publishing_components-39.2.4 node_modules/govuk-frontend/govuk/tools/_px-to-rem.scss.map
govuk_publishing_components-39.2.3 node_modules/govuk-frontend/govuk/tools/_px-to-rem.scss.map
govuk_publishing_components-39.2.2 node_modules/govuk-frontend/govuk/tools/_px-to-rem.scss.map
govuk_publishing_components-39.2.1 node_modules/govuk-frontend/govuk/tools/_px-to-rem.scss.map
govuk_publishing_components-39.2.0 node_modules/govuk-frontend/govuk/tools/_px-to-rem.scss.map
govuk_publishing_components-39.1.0 node_modules/govuk-frontend/govuk/tools/_px-to-rem.scss.map
govuk_publishing_components-39.0.0 node_modules/govuk-frontend/govuk/tools/_px-to-rem.scss.map
govuk_publishing_components-38.4.2 node_modules/govuk-frontend/govuk/tools/_px-to-rem.scss.map
govuk_publishing_components-38.1.1 node_modules/govuk-frontend/govuk/tools/_px-to-rem.scss.map
govuk_publishing_components-38.1.0 node_modules/govuk-frontend/govuk/tools/_px-to-rem.scss.map
govuk_publishing_components-38.0.1 node_modules/govuk-frontend/govuk/tools/_px-to-rem.scss.map
govuk_publishing_components-38.0.0 node_modules/govuk-frontend/govuk/tools/_px-to-rem.scss.map
govuk_publishing_components-37.10.0 node_modules/govuk-frontend/govuk/tools/_px-to-rem.scss.map
govuk_publishing_components-37.9.1 node_modules/govuk-frontend/govuk/tools/_px-to-rem.scss.map
govuk_publishing_components-37.9.0 node_modules/govuk-frontend/govuk/tools/_px-to-rem.scss.map
govuk_publishing_components-37.8.1 node_modules/govuk-frontend/govuk/tools/_px-to-rem.scss.map
govuk_publishing_components-37.8.0 node_modules/govuk-frontend/govuk/tools/_px-to-rem.scss.map
govuk_publishing_components-37.7.1 node_modules/govuk-frontend/govuk/tools/_px-to-rem.scss.map
govuk_publishing_components-37.7.0 node_modules/govuk-frontend/govuk/tools/_px-to-rem.scss.map