blog.world3.net

Update to Thunderbird userContent.css

My custom userContent.css has been updated. I found a fix for the few remaining stupid HTML mails that failed to display correctly due to using “font: inherit” which picks up the <body>’s text colour (off-white) which is unreadable against the white background. I’m still not entirely sure why the <body>’s font colour is being inherited over the parent <div>’s colour, but regardless of why I have now fixed it by making table > td use black text. It also has the added benefit of filtering out annoying font colours set by the sender.

#viewsource {
color: #f8f8f2 !important;
}

body {
background-color: #272822;
color: #f8f8f2;
border: 0 0 0 0;
padding: 0 0 0 0;
margin: 0 0 0 0;
}

body > pre {
background-color: #272822;
color: #f8f8f2;
}

body > * {
background-color: #fff;
color: #00f;
}

pre {
background-color: #272822;
color: #f8f8f2;
}

pre > a:link {
color: #65ff00;
}

div[class=moz-text-html] {
background-color: #fff;
color: #000;
padding: 10px 10px 10px 10px;
}

div[class=moz-text-html] > table {
background-color: #fff !important;
color: #000 !important;
}

div[class=moz-text-plain] {
background-color: #272822;
color: #f8f8f2;
padding: 10px 10px 10px 10px;
}

*[_moz_dirty] {
color: #f8f8f2;
background-color: #272822;
}

*[_moz_quote=true] {
color: #ffcb00;
}

/* Quote Levels Colors */

blockquote[type=cite] > pre {
color: #ffcb00;
}

blockquote[type=cite] blockquote > pre{
color: #fd6500;
}

blockquote[type=cite] blockquote blockquote > pre {
color: #00a000;
}

blockquote[type=cite] blockquote blockquote blockquote > pre {
color: purple;
}

blockquote[type=cite] blockquote blockquote blockquote blockquote > pre {
color: teal;
}
This entry was written by mojo, posted on 05/02/2010 at 19:03, filed under Internet, software. Bookmark the permalink. Follow any comments here with the RSS feed for this post. Post a comment or leave a trackback: Trackback URL.
« Thunderbird config
Vistaprint can’t print red »

Post a Comment

Your email is never shared. Required fields are marked *

*
*

たとえ溺れても梦はゆめでしかない
  •  

    February 2010
    M T W T F S S
    « Jan   Mar »
    1234567
    891011121314
    15161718192021
    22232425262728
  • Meta

    • Log in
    • Entries RSS
    • Comments RSS
    • WordPress.org
  • Categories

    • audio (1)
    • avr (15)
    • electronics (24)
    • genius (4)
    • hardware (21)
    • idiots (33)
    • Internet (13)
    • law (17)
    • microcontrollers (11)
    • networking (17)
    • politics (27)
    • privacy (18)
    • Retro Adapter (4)
    • security (16)
    • software (27)
    • Uncategorized (16)
    • windows (19)
  • Archives

    • July 2010
    • June 2010
    • May 2010
    • April 2010
    • March 2010
    • February 2010
    • January 2010
    • December 2009
    • November 2009
    • October 2009
    • September 2009
    • August 2009
    • July 2009
    • June 2009
    • May 2009
    • April 2009
    • March 2009
    • February 2009
    • January 2009
    • December 2008
    • November 2008
    • October 2008
    • September 2008
    • August 2008
    • July 2008
    • June 2008
    • May 2008
    • April 2008
    • March 2008
    • February 2008
    • January 2008
    • November 2005
  • Links:

    Main site: world3.net

    Electronics: denki.world3.net

WordPress | Sandbox