Notice: The devs are no longer actively involved in the forum, so any bug reports regarding the Stylish extension or this website should be sent to them directly at contact@userstyles.org.

Why is my Stylish editor telling me to not use ID selectors, adjoining classes and other things ?

So It has been a lot since I last touched something related to CSS so I'm not aware if there are any changes but today I wanted to use stylish to edit and old code that made 2 years ago and I was shocked with all the issues that the editor signaled.
The use of ID selectors ?
The use of adjoining classes ?
The use of !important ?
The use of Attribute selectors with ^= ?
And what's this message ?
Fallback background-color (hex or RGB) should precede RGBA background-color.
Is this normal ? Should I just ignore this ? If no then what should I do because of course I need ID selectors, they exist for a reason.
251 x 256 - 26K

Comments

  • edited July 2018 Firefox

    These are just warnings from the CSS validator (="linter"). You can ignore them.

    If you want to use another linter, use Stylus instead of Stylish. There you can choose different linters and customize the rules or deactivate at all.

    /edit
    Here are the explanations of some rules / why they think you should correct something:
    https://github.com/CSSLint/csslint/wiki/Rules

  • These are just warnings from the CSS validator (="linter"). You can ignore them.

    If you want to use another linter, use Stylus instead of Stylish. There you can choose different linters and customize the rules or deactivate at all.

    /edit

    Here are the explanations of some rules / why they think you should correct something:

    https://github.com/CSSLint/csslint/wiki/Rules


    Thanks that was very helpful.
Sign In or Register to comment.