View Single Post
Old 07-25-2014, 04:18 AM   #39
Rev. Bob
Wizard
Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.
 
Rev. Bob's Avatar
 
Posts: 1,760
Karma: 9918418
Join Date: Feb 2013
Location: Here on the perimeter, there are no stars
Device: Kobo H2O, iPad mini 3, Kindle Touch
Quote:
Originally Posted by kovidgoyal View Post
CSS is a really poor language to modify in any robust fashion, that is one of the reasons that the calibre conversion flattens all css into classes.
Speaking of which, is there any chance of getting the current calibre CSS output switched from this:

.calibre
.calibre1
.calibre10
.calibre2

to this?

.calibre01
.calibre02
.calibre03
.calibre10

(Intermediate classes omitted for brevity.)

The leading zeroes just make it so much easier to make sure one doesn't accidentally catch the wrong target with a regex match; "calibre1" matches that, "calibre10", "calibre11", and so on. "calibre01" is much more solid.
Rev. Bob is offline   Reply With Quote