/*  Ff & Tb - list box alternating row bg colors  */

/* ========== info start ========== */
/*
- sets background colors for alternating rows in tree-based list boxes
- works on virtually ALL such lists, so a more narrowly defined version is recommended
- works in Firefox 1.5.0.x/2.0.0.x
- works in Firefox 3.5.x ONLY for the search box
- works in Thunderbird 1.5.0.x/2.0.0.x/3.0.x

- source = http://forums.mozillazine.org/viewtopic.php?p=1890035#1890035

- history
= 2006-04-17, Monday
added hover check [only works on hover-able items]
= 2006-04-18, Tuesday
reined in over-agressive hover behavior
moved tweaks to follow code
= 2007-04-22, Sunday
confirmed works in ff2/tb2 & updated version compat info 
= 2009-07-06, Monday 
tested with ff35 & updated version compat info
= 2010-01-16, Saturday
tested with tb30 & updated version compat info
= 2010-02-19, Friday 
tested with ff36 & updated version compat info
*/
/* ========== info end ========== */


/* ========== code start ========== */
@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);
treechildren::-moz-tree-row(even),
treechildren:hover::-moz-tree-row(even) {
	background-color: #CCFFCC !important;
	}

treechildren::-moz-tree-row(selected),
treechildren:hover::-moz-tree-row(selected) {
		background-color: -moz-Dialog !important;
	}
treechildren::-moz-tree-cell-text(selected),
treechildren:hover::-moz-tree-cell-text(selected) {
	color: -moz-DialogText !important;
	}

treechildren::-moz-tree-row(selected, focus),
treechildren:hover::-moz-tree-row(selected, focus) {
	background-color: Highlight !important;
	}
treechildren::-moz-tree-cell-text(selected, focus),
treechildren:hover::-moz-tree-cell-text(selected, focus) {
	color: HighlightText !important;
	}
/*  ========== code end ========== */


/* ========== tweaks start ========== */
/*
-- color:
--- in this case it refers to text color
http://www.w3schools.com/css/css_text.asp
http://www.w3schools.com/css/pr_text_color.asp

-- background-color:
#CCFFCC = very pale green that works well for a "green-bar" effect
http://www.w3schools.com/css/css_background.asp
http://www.w3schools.com/css/pr_background-color.asp

== colors can be rgb, hex, named
http://www.w3schools.com/css/css_colorsfull.asp
http://www.w3schools.com/css/css_colornames.asp

-- font-family:
[one or more specific font family-names with best first, followed by a font generic-family name]
ex - font family names = arial, "lucida console"
ex - font generic-family for the above fonts = sans-serif
ex - font-family: arial, "lucida console", sans-serif
http://www.w3schools.com/css/pr_font_font-family.asp

-- font-size:
[xx-small, x-small, small, medium, large, x-large, xx-large, smaller, larger, length, %]
http://www.w3schools.com/css/pr_font_font-size.asp

-- font-style:
[normal, italic, oblique]
http://www.w3schools.com/css/pr_font_font-style.asp

-- font-weight:
bold [normal, bold, bolder, lighter]
http://www.w3schools.com/css/css_font.asp
http://www.w3schools.com/css/pr_font_weight.asp

-- font-variant:
[normal, small-caps]
http://www.w3schools.com/css/pr_font_font-variant.asp

-- text-decoration:
[none, underline, overline, line-through, blink]
blink doesn't appear to work in tb15
http://www.w3schools.com/css/pr_text_text-decoration.asp

-- text-transform:
[none, capitalize, uppercase, lowercase]
http://www.w3schools.com/css/pr_text_text-transform.asp

- a painfully visible group of settings is ...
color: red !important;
background-color: yellow !important;
font-style: italic !important;
font-weight: bolder !important;
text-decoration: underline overline !important;
*/
/* ========== tweaks end ========== */