aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2023-06-18 06:22:09 +0200
committerGitHub <noreply@github.com>2023-06-18 04:22:09 +0000
commit61e0827f42cc90044944c5c0342527a2f0c2bf7d (patch)
tree633521d41e94ea4a06a4c4ef028cda6416e5bac1
parent95ab48549033e19bb9567b5b238c342e022d1d10 (diff)
downloadgitea-61e0827f42cc90044944c5c0342527a2f0c2bf7d.tar.gz
gitea-61e0827f42cc90044944c5c0342527a2f0c2bf7d.zip
Add `stylelint-declaration-block-no-ignored-properties` (#25284)
Add [stylelint-declaration-block-no-ignored-properties](https://github.com/kristerkari/stylelint-declaration-block-no-ignored-properties) and fix discovered issue. There is no visual difference in these markup code blocks.
-rw-r--r--.stylelintrc.yaml2
-rw-r--r--package-lock.json13
-rw-r--r--package.json1
-rw-r--r--web_src/css/markup/content.css3
4 files changed, 16 insertions, 3 deletions
diff --git a/.stylelintrc.yaml b/.stylelintrc.yaml
index 6939a2074b..69d23a01db 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 923a4a10d5..ab488c6af7 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 87a80e939c..69f9134a7b 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 e300995b31..5905657e1c 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;