summaryrefslogtreecommitdiffstats
path: root/.stylelintrc.yaml
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2023-03-10 11:16:16 +0800
committerGitHub <noreply@github.com>2023-03-09 22:16:16 -0500
commit0141d1667d4d0e98124c11e179928a42ffe6ab1a (patch)
treee6784f078cd63c64a38f10ba30b5a6aa57fe74ec /.stylelintrc.yaml
parent92d3e2a6f899347cfa47221d5b25cdcaf2cce486 (diff)
downloadgitea-0141d1667d4d0e98124c11e179928a42ffe6ab1a.tar.gz
gitea-0141d1667d4d0e98124c11e179928a42ffe6ab1a.zip
Fix broken Chroma CSS styles (#23174)
The CSS styles in Gitea themes are out-of-sync of Chroma's styles. This PR introduces a `chroma-style-diff.go` tool to compare the diff. The missing CSS styles have been added manually. They are left as empty to reduce arguments because there was no color for them before. And this PR fixes #22348, with just 2 lines changed: `.chroma .kt & .n`, these colors are taken from GitHub. It's good enough for #22348 ![image](https://user-images.githubusercontent.com/2114189/221551941-0d27d11d-e71e-498f-8e88-92b558fe4a18.png) --------- Co-authored-by: silverwind <me@silverwind.io>
Diffstat (limited to '.stylelintrc.yaml')
-rw-r--r--.stylelintrc.yaml6
1 files changed, 6 insertions, 0 deletions
diff --git a/.stylelintrc.yaml b/.stylelintrc.yaml
index ca0f16b07b..c488d0677f 100644
--- a/.stylelintrc.yaml
+++ b/.stylelintrc.yaml
@@ -1,12 +1,18 @@
plugins:
- stylelint-declaration-strict-value
+ignoreFiles:
+ - "**/*.go"
+
overrides:
- files: ["**/*.less"]
customSyntax: postcss-less
- files: ["**/chroma/*", "**/codemirror/*", "**/standalone/*", "**/console/*"]
rules:
scale-unlimited/declaration-strict-value: null
+ - files: ["**/chroma/*", "**/codemirror/*"]
+ rules:
+ block-no-empty: null
rules:
alpha-value-notation: null