Skip to content

Remove generic selectors from rules using !importantΒ #80

@AfroThundr3007730

Description

@AfroThundr3007730

Generally speaking, we should not be applying !important to generic selectors like div or span (the two biggest pain points in this style), as this causes cascading !important rules all over the style, creating an unmaintainable mess.

This is even more problematic when said selectors have multiple :not() pesudoclasses appended, increasing their specificity beyond the capability to be overridden.

I've already (mostly) remedied the div problem, but we still need to deal with span, among others. Even after this is fixed, the majority of the existing rules will still be using an unnecessary !important flag, and it will be difficult to weed out the cases where it's no longer needed.

Perhaps the long-term solution to this might be a rewrite of the desktop style.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions