Sha256: 29aaff12e7e70058b2f05078659e6d3d3a9afef4f8d33ac15807ed78d6db16d8
Contents?: true
Size: 522 Bytes
Versions: 67
Compression:
Stored size: 522 Bytes
Contents
//// /// @group tools/unit-conversion //// /// Convert pixels to rem /// /// The $govuk-root-font-size (defined in settings/_typography-responsive.scss) /// must be configured to match the font-size of your root (html) element /// /// @param {Number} $value - Length in pixels /// @return {Number} Length in rems /// @access public @function govuk-px-to-rem($value) { @if unitless($value) { $value: $value * 1px; } @return $value / $govuk-root-font-size * 1rem; } /*# sourceMappingURL=_px-to-rem.scss.map */
Version data entries
67 entries across 65 versions & 4 rubygems