From d52e0f13af95325dc992b1f28e2f8ee60da9f8d2 Mon Sep 17 00:00:00 2001 From: "caillon%redhat.com" Date: Thu, 6 Sep 2007 22:03:25 +0000 Subject: [PATCH] Bug 236973 Add default styles for alternating backgrounds on treerows to the theme. r=ben sr=jst --- suite/themes/modern/global/tree.css | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/suite/themes/modern/global/tree.css b/suite/themes/modern/global/tree.css index fc0db78f92c..d96bf43a525 100644 --- a/suite/themes/modern/global/tree.css +++ b/suite/themes/modern/global/tree.css @@ -304,3 +304,25 @@ treechildren.gridlines::-moz-tree-cell { treechildren.gridlines::-moz-tree-row { border: none; } + +/* ::::: alternating background ::::: */ + +treechildren[alternatingbackground="true"]::-moz-tree-row(odd) { + background-color: #f3f3f3; +} + +treechildren[alternatingbackground="true"]::-moz-tree-row(odd, selected) { + background-color: -moz-Dialog; +} + +treechildren[alternatingbackground="true"]::-moz-tree-cell-text(odd, selected) { + color: -moz-DialogText; +} + +treechildren[alternatingbackground="true"]::-moz-tree-row(odd, selected, focus) { + background-color: Highlight; +} + +treechildren[alternatingbackground="true"]::-moz-tree-cell-text(odd, selected, focus) { + color: HighlightText; +}