diff --git a/.stylelintrc.yaml b/.stylelintrc.yaml index 6939a2074bc..69d23a01db7 100644 --- a/.stylelintrc.yaml +++ b/.stylelintrc.yaml @@ -1,5 +1,6 @@ plugins: - stylelint-declaration-strict-value + - stylelint-declaration-block-no-ignored-properties - stylelint-stylistic ignoreFiles: @@ -93,6 +94,7 @@ rules: no-unknown-animations: null no-unknown-custom-properties: null number-max-precision: null + plugin/declaration-block-no-ignored-properties: true property-allowed-list: null property-disallowed-list: null property-no-unknown: true diff --git a/package-lock.json b/package-lock.json index 923a4a10d53..ab488c6af76 100644 --- a/package-lock.json +++ b/package-lock.json @@ -75,6 +75,7 @@ "markdownlint-cli": "0.34.0", "postcss-html": "1.5.0", "stylelint": "15.7.0", + "stylelint-declaration-block-no-ignored-properties": "2.7.0", "stylelint-declaration-strict-value": "1.9.2", "stylelint-stylistic": "0.4.2", "svgo": "3.0.2", @@ -9777,6 +9778,18 @@ "url": "https://opencollective.com/stylelint" } }, + "node_modules/stylelint-declaration-block-no-ignored-properties": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/stylelint-declaration-block-no-ignored-properties/-/stylelint-declaration-block-no-ignored-properties-2.7.0.tgz", + "integrity": "sha512-44SpI9+9Oc1ICuwwRfwS/3npQ2jPobDSTnwWdNgZGryGqQCp17CgEIWjCv1BgUOSzND3RqywNCNLKvO1AOxbfg==", + "dev": true, + "engines": { + "node": ">=6" + }, + "peerDependencies": { + "stylelint": "^7.0.0 || ^8.0.0 || ^9.0.0 || ^10.0.0 || ^11.0.0 || ^12.0.0 || ^13.0.0 || ^14.0.0 || ^15.0.0" + } + }, "node_modules/stylelint-declaration-strict-value": { "version": "1.9.2", "resolved": "https://registry.npmjs.org/stylelint-declaration-strict-value/-/stylelint-declaration-strict-value-1.9.2.tgz", diff --git a/package.json b/package.json index 87a80e939c5..69f9134a7b9 100644 --- a/package.json +++ b/package.json @@ -75,6 +75,7 @@ "markdownlint-cli": "0.34.0", "postcss-html": "1.5.0", "stylelint": "15.7.0", + "stylelint-declaration-block-no-ignored-properties": "2.7.0", "stylelint-declaration-strict-value": "1.9.2", "stylelint-stylistic": "0.4.2", "svgo": "3.0.2", diff --git a/web_src/css/markup/content.css b/web_src/css/markup/content.css index e300995b31f..5905657e1ce 100644 --- a/web_src/css/markup/content.css +++ b/web_src/css/markup/content.css @@ -481,10 +481,7 @@ .markup pre code, .markup pre tt { display: inline; - max-width: initial; padding: 0; - margin: 0; - overflow: initial; line-height: inherit; word-wrap: normal; background-color: transparent;