View Single Post
Old 11-29-2013, 12:50 PM   #104
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,166
Karma: 60406498
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by kovidgoyal View Post
That seems rather simple minded. What happens if there are multiple classes or if some other type of css rule affects the element? If I do implement this feature it will popup a list of all rules that affect the element and allow you to choose which one to go to. However, I dont know how simple it will be to implement. Finding which rules affect an element is trivial, finding the position of those rules in the stylesheet is not, since the css parser calibre uses does not preserve that information, but let's see if I can hack something together.
Simple is good
The property inspector is what you might usse to discover what the cascade does.

Using this is in CV allow you to jump to the indicated, selected class which is extremely useful in over sized stylesheets as it allows you to leave your Search/Replace intact (before this was added to Sigil, I would have to do a Find in the CSS)
theducks is offline