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