Re:Spectre.css – A Lightweight, Responsive and Modern CSS Fr...
by pbhjpbhj on Thursday November 08, 2018 @09:05AM
(#18406289)
<a href="" disabled="disabled" ...>
is selectable with
[disabled] { }
or [disabled="disabled"] { }
And [disabled]:not(.greyButtonStyle) { }
does the last example if you classed that style, doesn't it? I've only done a little CSS, not very recent ... unless you're recruiting, then I'm an expert ;o).I imagine though there are times when you want to class (some) button tags as .button.
Especially in a javascript driven web application you may want to select all "buttons that are disabled". But you never want to select elements that "have a rounded border of 2 px and a grey background and italic font style and....". This takes class names ad absurdum.