View Single Post
Old 01-29-2020, 06:05 PM   #9
rjwse@aol.com
Addict
rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.
 
rjwse@aol.com's Avatar
 
Posts: 333
Karma: 2228060
Join Date: Dec 2013
Location: LaVernia, Texas
Device: kindle epub readers on android
"Remove unused rules"

Quote:
Originally Posted by Brett Merkey View Post
I think I may have already posted this, but you can unstack those selectors in the CSS with a regular expression:

--unstack selectors so Calibre "Remove unused rules" tool can be used:
Search: ([.]?[^ ]+),\s([^{]+)(\{[^}]+\})
Replace: \1 \3\n\n\2\3

'Replace All' until 0 returns.
That is slick! I will copy and save to calibre's snipets. After the dead-wood is deleted, can you again regroup the ones which are identical? Best regards, Pop
rjwse@aol.com is offline   Reply With Quote