I'm modifying the CSS of an existing WordPress theme. The theme has a lot of special styles for lists, attached to the <li>
element. Because of this, there is a generic list-style:none
rule applied to the <li>
element.
I want to update the CSS to reinstitute the list-style
defaults on <li>
elements that don't have a class attached (i.e. those that don't have a special style applied). This needs to be selective to keep from ruining the fancy effects.
I am aware of the :not() pseudo-selector, and may end up using it to specifically exclude each possible class; however, there are a dozen of them and this seems like a maintenance nightmare.
Is there any way, either using CSS or jQuery, to select an element by specifying that it has no class set?