aboutsummaryrefslogtreecommitdiffstats
path: root/.stylelintrc.yaml
Commit message (Collapse)AuthorAgeFilesLines
* Update JS deps (#23853)silverwind2023-04-021-0/+1
| | | | | - Update all JS dependencies - Regenerate svgs - Tested heatmap, swagger, citation
* Replace Less with CSS (#23481)silverwind2023-03-141-2/+0
| | | | | | | | | | | | Ran most of the Less files through the Less compiler and Prettier and then followed up with a round of manual fixes. The Less compiler had unfortunately stripped all `//` style comments that I had to restore (It did preserve `/* */` comments). Other fixes include duplicate selector removal which were revealed after the transpilation and which weren't caught by stylelint before but now are. Fixes: https://github.com/go-gitea/gitea/issues/15565
* Fix broken Chroma CSS styles (#23174)wxiaoguang2023-03-091-0/+6
| | | | | | | | | | | | | | | | | | | 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>
* Upgrade to stylelint 15 (#22944)silverwind2023-02-211-13/+102
| | | | | | | | - Upgrade stylelint and plugin - Change ruleset to a explicit one, with all deprecated rules removed - Fix new issues detected by value validation For `overflow: overlay` see https://github.com/stylelint/stylelint/issues/6667
* Move all remaining colors into CSS variables (#21903)silverwind2022-11-231-0/+11
| | | | | This should eliminate all non-variable color usage in the styles, making gitea fully themeable via CSS variables. Also, it adds a linter to enforce variables for colors.
* Update JS dependencies and misc tweaks (#21583)silverwind2022-10-281-0/+1
| | | | | | | | | | | - Update all JS dependencies to latest version - Disable two redundant eslint rules - Adapt stylelint config to codebase - Regenerate SVGs - Make file editor spinner "reserve" height so page does not shift - Tested katex, swagger, monaco Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: 6543 <6543@obermui.de>
* Move eslintrc/stylelintrc to non-deprecated extensions (#20110)silverwind2022-06-241-0/+32