12-08-2019, 11:00 PM | #1 |
Zealot
Posts: 138
Karma: 13776
Join Date: Jan 2007
Location: semi-north Ontario, Canada (N 45.41 W -79.67)
Device: iPad Air 5, Samsung Galaxy S20 FE
|
find missing classes
This is probably already answered, but I cannot find it.
How do I find classes missing in the stylesheet? That is, I have <p class="NoIndent">, but .noindent { } in the stylesheet. So NoIndent does not exist. |
12-08-2019, 11:56 PM | #2 |
creator of calibre
Posts: 43,835
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Use the remove unused css rules tools with remove unused classes enabled and then see what was removed using the see what changed button, then undo the changes.
|
Advert | |
|
12-09-2019, 04:42 PM | #3 |
Wizard
Posts: 1,071
Karma: 412718
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
|
I use the Report tool, anything with [0] is undefined in a CSS
|
12-09-2019, 08:57 PM | #4 |
Bibliophagist
Posts: 35,257
Karma: 145277352
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
As an alternate, Sigil's Report tool will return Style classes in HTML files and Style classes in CSS files. In the report, you will see either a matching selector (HTML files page) or an used in HTML file (CSS files page) -- if that section is blank, you have problems.
Edit: Added images of the two reports. They show one of the reasons I abhor Vellum as an epub editor. What sort of editor has over 60 classes used in the HTML files but not defined in a CSS file? Last edited by DNSB; 12-09-2019 at 09:03 PM. |
12-10-2019, 08:16 PM | #5 |
Zealot
Posts: 138
Karma: 13776
Join Date: Jan 2007
Location: semi-north Ontario, Canada (N 45.41 W -79.67)
Device: iPad Air 5, Samsung Galaxy S20 FE
|
Thanks phossler. That's exactly what I was looking for.
Keith |
Advert | |
|
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
HTML to EPUB, how to keep classes? | MistaPrime | Conversion | 27 | 07-30-2019 10:33 AM |
Pseudo classes to be deleted as unused classes | Leonatus | Sigil | 2 | 09-23-2018 09:12 AM |
Pseudo classes with classes | Macsurfcat | ePub | 4 | 01-07-2016 04:00 AM |
Multiple classes compatibility | senhal | ePub | 5 | 11-23-2015 08:00 PM |
How to find books with missing metadata? | kaufman | Library Management | 1 | 01-04-2014 12:32 AM |