From f2de44f8d28e2c39fb66481abc96ff508c34d3f1 Mon Sep 17 00:00:00 2001 From: Benjamin Staneck Date: Mon, 7 Sep 2020 19:04:26 +0200 Subject: [PATCH] Fixed stylelint errors (#1913) --- .stylelintrc | 6 +++--- src/assets/stylesheets/main/_reset.scss | 8 ++------ src/assets/stylesheets/main/layout/_base.scss | 2 +- src/assets/stylesheets/main/layout/_search.scss | 4 ---- 4 files changed, 6 insertions(+), 14 deletions(-) diff --git a/.stylelintrc b/.stylelintrc index 5696fd514..f71aff2d3 100644 --- a/.stylelintrc +++ b/.stylelintrc @@ -30,12 +30,12 @@ "function-url-quotes": "always", "no-descending-specificity": null, "no-unknown-animations": true, - "property-no-vendor-prefix": true, + "property-no-vendor-prefix": [true, {"ignoreProperties": ["line-clamp", "box-orient"]}], "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": ["px", "em", "deg", "ms", "%", "mm", "vh", "vw", "dppx"], + "unit-allowed-list": ["px", "em", "deg", "ms", "%", "mm", "vh", "vw", "dppx"], "value-keyword-case": "lower", - "value-no-vendor-prefix": true + "value-no-vendor-prefix": [true, {"ignoreValues": ["box"]}] } } diff --git a/src/assets/stylesheets/main/_reset.scss b/src/assets/stylesheets/main/_reset.scss index a87f30682..8fda40b70 100644 --- a/src/assets/stylesheets/main/_reset.scss +++ b/src/assets/stylesheets/main/_reset.scss @@ -26,9 +26,10 @@ // Rules // ---------------------------------------------------------------------------- -// Enforce correct box model +// Enforce correct box model and prevent adjustments of font size after orientation changes in IE and iOS html { box-sizing: border-box; + text-size-adjust: none; } // All elements shall inherit the document default @@ -38,11 +39,6 @@ html { box-sizing: inherit; } -// Prevent adjustments of font size after orientation changes in IE and iOS -html { - text-size-adjust: none; -} - // Remove margin in all browsers body { margin: 0; diff --git a/src/assets/stylesheets/main/layout/_base.scss b/src/assets/stylesheets/main/layout/_base.scss index ef9c79892..10245844c 100644 --- a/src/assets/stylesheets/main/layout/_base.scss +++ b/src/assets/stylesheets/main/layout/_base.scss @@ -69,7 +69,7 @@ body { min-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; // stylelint-disable-line unit-whitelist + font-size: 0.5rem; // stylelint-disable-line unit-allowed-list background-color: var(--md-default-bg-color); // [tablet portrait -]: Lock body to disable scroll bubbling diff --git a/src/assets/stylesheets/main/layout/_search.scss b/src/assets/stylesheets/main/layout/_search.scss index b2bff4af2..665cec560 100644 --- a/src/assets/stylesheets/main/layout/_search.scss +++ b/src/assets/stylesheets/main/layout/_search.scss @@ -629,8 +629,6 @@ $md-toggle__search--checked: line-height: 1.4; } - // stylelint-disable value-no-vendor-prefix, property-no-vendor-prefix - // Teaser &__teaser { display: -webkit-box; @@ -657,8 +655,6 @@ $md-toggle__search--checked: } } - // stylelint-enable value-no-vendor-prefix, property-no-vendor-prefix - // Search term highlighting em { font-weight: 700;