Sha256: a6a4adfdf397d09145cf72a2ec7efb58916efcd0096ea2f60f57c4ec352d886d
Contents?: true
Size: 817 Bytes
Versions: 50
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
50 entries across 50 versions & 2 rubygems