mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-21 21:05:34 +03:00
ee21d5453f
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.
44 lines
1.3 KiB
YAML
44 lines
1.3 KiB
YAML
extends: stylelint-config-standard
|
|
|
|
plugins:
|
|
- stylelint-declaration-strict-value
|
|
|
|
overrides:
|
|
- files: ["**/*.less"]
|
|
customSyntax: postcss-less
|
|
- files: ["**/*.less"]
|
|
rules:
|
|
scale-unlimited/declaration-strict-value: [color, {
|
|
ignoreValues: /^(inherit|transparent|unset|initial)$/
|
|
}]
|
|
- files: ["**/chroma/*", "**/codemirror/*", "**/standalone/*", "**/console/*"]
|
|
rules:
|
|
scale-unlimited/declaration-strict-value: null
|
|
|
|
rules:
|
|
alpha-value-notation: null
|
|
at-rule-empty-line-before: null
|
|
block-closing-brace-empty-line-before: null
|
|
color-function-notation: null
|
|
color-hex-length: null
|
|
comment-empty-line-before: null
|
|
declaration-block-no-redundant-longhand-properties: null
|
|
declaration-block-single-line-max-declarations: null
|
|
declaration-empty-line-before: null
|
|
function-no-unknown: null
|
|
hue-degree-notation: null
|
|
import-notation: string
|
|
indentation: 2
|
|
max-line-length: null
|
|
no-descending-specificity: null
|
|
no-invalid-position-at-import-rule: null
|
|
number-leading-zero: never
|
|
number-max-precision: null
|
|
property-no-vendor-prefix: null
|
|
rule-empty-line-before: null
|
|
selector-class-pattern: null
|
|
selector-id-pattern: null
|
|
selector-pseudo-element-colon-notation: double
|
|
shorthand-property-no-redundant-values: true
|
|
string-quotes: null
|
|
value-no-vendor-prefix: null
|