Sudhakar Chandra wrote:
Hi,

My extension, a news aggregator, uses trees (actually, everything under one folder in the bookmarks) to store the subscriptions of the user.

I currently style the rows in the trees like so:

treechildren::-moz-tree-cell-text(rss, hxnew) {
  font-weight: bold !important;
}

treechildren::-moz-tree-cell-text(rss, hxold) {
  font-weight: normal !important;
}

Thus, if the description field of the bookmark (i.e. row in the tree) contains the word 'hxnew', it is shown as bold. If it has the term 'hxold', it shows the row as normal (unbolded).

I would also like to extend this to be able to bold or unbold the parent of this tree row. I.e., if one of the rows inside a tree folder contains the word 'hxnew', I want the parent folder to be bolded. How do I style my tree to do this?

Try using the 'container' e.g.

treechildren::-moz-tree-cell-text(container, rss, hxnew) {
  font-weight: bold !important;
}

You may have to set the hxnew property by script though, because I'm not sure if it propagates up the tree hierarchy.

--
Brian King
www.mozdev.org - free project hosting for the Mozilla community
_______________________________________________
Project_owners mailing list
[email protected]
http://mozdev.org/mailman/listinfo/project_owners

Reply via email to