diff --git a/.stylelintrc b/.stylelintrc index 1315c0350..6fdccda5c 100644 --- a/.stylelintrc +++ b/.stylelintrc @@ -185,7 +185,7 @@ "selector-class-pattern": "^[a-z0-9]+(-[a-z0-9]+)*(__[a-z]+)?(--[a-z]+)?$", "selector-descendant-combinator-no-non-space": null, "string-quotes": "double", - "unit-whitelist": ["rem", "em", "deg", "s", "%", "mm", "vh"], + "unit-whitelist": ["px", "em", "deg", "s", "%", "mm", "vh"], "value-keyword-case": "lower", "value-no-vendor-prefix": true } diff --git a/src/assets/stylesheets/helpers/_px2em.scss b/src/assets/stylesheets/helpers/_px2em.scss index 2bbd0951a..0647c09ab 100644 --- a/src/assets/stylesheets/helpers/_px2em.scss +++ b/src/assets/stylesheets/helpers/_px2em.scss @@ -20,6 +20,8 @@ /// DEALINGS //// +// stylelint-disable unit-whitelist + // ---------------------------------------------------------------------------- // Helpers // ---------------------------------------------------------------------------- diff --git a/src/assets/stylesheets/layout/_base.scss b/src/assets/stylesheets/layout/_base.scss index 5a1a7eedc..aa77ecd83 100644 --- a/src/assets/stylesheets/layout/_base.scss +++ b/src/assets/stylesheets/layout/_base.scss @@ -66,7 +66,7 @@ body { height: 100%; // Hack: reset font-size to 10px, so the spacing for all inline elements is // correct again. Otherwise the spacing would be based on 20px. - font-size: 0.5rem; + font-size: 0.5rem; // stylelint-disable-line unit-whitelist // [tablet portrait -]: Lock body to disable scroll bubbling @include break-to-device(tablet portrait) {