diff options
| author | Alexandre Flament <alex@al-f.net> | 2022-01-16 18:44:09 +0100 |
|---|---|---|
| committer | Alexandre Flament <alex@al-f.net> | 2022-01-16 18:50:19 +0100 |
| commit | 2084d7b1ed9704ca5de5e9491a1e84c11ad5d7ed (patch) | |
| tree | 7bb093faa78ce129bed56e2cf9b42bbbd831fc2c /searx | |
| parent | 32874dbf7f1a538112345e604bc3f898e4c62734 (diff) | |
[mod] simple theme: change stylelint configuration
* disable declaration-empty-line-before
https://stylelint.io/user-guide/rules/list/declaration-empty-line-before/
this change allows to mix CSS declarations and LESS mixins without empty lines:
#something {
display: flex;
.ltr-left(60rem); // no mandatory empty line before this one
}
* disable no-invalid-position-at-import-rule
https://stylelint.io/user-guide/rules/list/no-invalid-position-at-import-rule/
this change allows to declare some mixins and then import another .less file:
for example:
.ltr-left(@offset) {
left: @offset;
}
@import "style.less";
Diffstat (limited to 'searx')
| -rw-r--r-- | searx/static/themes/simple/.stylelintrc.json | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/searx/static/themes/simple/.stylelintrc.json b/searx/static/themes/simple/.stylelintrc.json index 40db42c66..be082eeb4 100644 --- a/searx/static/themes/simple/.stylelintrc.json +++ b/searx/static/themes/simple/.stylelintrc.json @@ -1,3 +1,7 @@ { - "extends": "stylelint-config-standard" + "extends": "stylelint-config-standard", + "rules": { + "declaration-empty-line-before": null, + "no-invalid-position-at-import-rule": null + } } |