diff options
author | wxiaoguang | 2023-03-10 11:16:16 +0800 |
---|---|---|
committer | GitHub | 2023-03-09 22:16:16 -0500 |
commit | 0141d1667d4d0e98124c11e179928a42ffe6ab1a (patch) | |
tree | e6784f078cd63c64a38f10ba30b5a6aa57fe74ec /.stylelintrc.yaml | |
parent | 92d3e2a6f899347cfa47221d5b25cdcaf2cce486 (diff) |
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.yaml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/.stylelintrc.yaml b/.stylelintrc.yaml index ca0f16b07..c488d0677 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 |