Skip navigation.

Log in | Sign up

J. King Log

A Web log of indeterminate permanence

Stylesheet waste

One thing that has bugged me about vanilla Opera for a while (since 8.0, maybe?) is the colouring of quoted text in e-mail, which changed at some point from 7.0's pleasant colours which I have grown disturbingly accustomed to, to wishy-washy colours largely reversed from what I'd come to know (a disorienting experience, to be sure).

Apparently this was changed for accessibility reasons. Fine, but I don't have to like them! I don't have to use them, either! :smile: For a while (ie. several years) I've been toting around a (modified) MIME stylesheet from Opera 7.2, but when doing a manual upgrade to Opera 9.5, I lost the stylesheet due to my own negligence.

Therefore I sat down today, grabbed a stylesheet from a Linux .tar.gz package of Opera 7.5, and started tweaking. Changing the colours of the text was trivial enough, but this resulted in a curious visual artefact:



This fun little mix-up is caused by the following style rules being used in Opera 9.5's MIME stylesheet:

omf|ql.L1, omf|ql.L7, omf|ql.L13, omf|ql.L19, omf|ql.L25, omf|ql.L31 
 {color: hsl(218,49%,43%);}
#flowed omf|ql.L1, #flowed omf|ql.L7, #flowed omf|ql.L13, #flowed omf|ql.L19, #flowed omf|ql.L25, #flowed omf|ql.L31 
 {border-left-color: hsl(218,49%,43%);}

... as well as a number of similar rules which define the other cascading colours. That the text and border colours are defined in separate rules is fine; that I would need to change a whole bunch because of the different colours is fine, too, except that I don't need to! Indeed, this one rule will do the trick regardless of quoting depth:

#flowed omf|ql {border-left-color: currentColor;}

What's in the stylesheet right now is a pain and a waste. Is there a good reason I'm not aware of why it should remain as-is?

IE=fu^2Retaining one's sanity, or removing lightboxes with user JavaScript

Write a comment

You must be logged in to write a comment. If you're not a registered member, please sign up.