Jonathan Kamens<
j...@kamens.brookline.ma.us> wrote:
> What can I do to force my add-on's styles to override the odd
> vs. even styles in the theme?
Hi Jonathan,
I'm can't offer an authoritative response -- I'm just a guy who's futzed
around with the Tbird CSS and managed (through trial and error) to get
it to do what I wanted it to do.
Below is the custom CSS I use to override the defaults for displaying
rows in the folder pane. Much of it is irrelevant for your purposes,
but maybe this can give you some hints to work with.
#threadTree treechildren {
font-size: 12px; font-family: "Helvetica Neue";
}
#threadTree treechildren::-moz-tree-row {
height: 22px !important;
color: #000000;
}
#threadTree treechildren::-moz-tree-row(even) {
background-color: #FFFFFF !important;
}
#threadTree treechildren::-moz-tree-row(odd) {
background-color: #F2F3F6 !important;
}
#threadTree treechildren::-moz-tree-row(selected),
#threadTree treechildren::-moz-tree-row(selected, focus) {
background-color: #D2D3D6 !important;
}
#threadTree treechildren::-moz-tree-cell {
background-color: transparent !important;
}
#threadTree treechildren::-moz-tree-cell(unread) {
background-color: #E6E6FF !important;
}
#threadTree treechildren::-moz-tree-cell(unread, selected) {
background-color: transparent !important;
}
treechildren::-moz-tree-cell-text(container, closed, hasUnread, read) {
background-color: #E6E6FF !important;
text-decoration: none !important;
font-weight: bold !important;
}
#threadTree treechildren::-moz-tree-cell-text(selected),
#threadTree treechildren::-moz-tree-cell-text(selected, focus),
#threadTree treechildren::-moz-tree-cell-text(unread, selected, focus) {
color: #222222 !important;
font-weight: bold !important;
background-color: transparent !important;
}
Good luck and cheers,
Pete Farmer
Menlo Park, CA