searxng/searx/static/themes/simple
Markus Heiser f73a00dcee [stylelint] disable role 'no-descending-specificity'
This patch disables role 'no-descending-specificity'.  IMO it is better to have
this rule active (see below [1]), but it is hard to rewrite the less files to
pass this rule, so for the first I chose to disable this rule.

---

Source order is important in CSS, and when two selectors have the same
specificity, the one that occurs last will take priority. However, the situation
is different when one of the selectors has a higher specificity. In that case,
source order does not matter: the selector with higher specificity will win out
even if it comes first.

The clashes of these two mechanisms for prioritization, source order and
specificity, can cause some confusion when reading stylesheets. If a selector
with higher specificity comes before the selector it overrides, we have to think
harder to understand it, because it violates the source order
expectation. Stylesheets are most legible when overriding selectors always come
after the selectors they override. That way both mechanisms, source order and
specificity, work together nicely.

This rule enforces that practice as best it can, reporting fewer errors than it
should. It cannot catch every actual overriding selector, but it can catch
certain common mistakes.

[1] https://stylelint.io/user-guide/rules/list/no-descending-specificity/

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-06-24 13:27:21 +02:00
..
css Static build 2021-06-22 08:15:17 +02:00
fonts [mod] simple theme: include fonts 2021-06-22 08:15:17 +02:00
img simple theme update 2018-08-14 17:21:30 +02:00
js Static build 2021-06-22 08:15:17 +02:00
src [stylelint] disable role 'no-descending-specificity' 2021-06-24 13:27:21 +02:00
.gitignore [themes] ignore packages-lock.json 2021-06-22 08:17:06 +02:00
.jshintignore [enh] add simple theme (WIP) 2017-08-06 16:04:21 +02:00
.stylelintrc.json [mod] add stylelint process to target themes.simple 2021-06-24 13:27:21 +02:00
gruntfile.js [mod] add stylelint process to target themes.simple 2021-06-24 13:27:21 +02:00
package.json [mod] add stylelint process to target themes.simple 2021-06-24 13:27:21 +02:00