09-23-2018, 07:21 AM | #1 |
Wizard
Posts: 1,035
Karma: 11227259
Join Date: Mar 2013
Location: Guben, Brandenburg, Germany
Device: Kobo Clara 2E, Tolino Shine 3
|
Pseudo classes to be deleted as unused classes
I worked out a book using a pseudo-class of this type:
Code:
.initial:first-letter { font-family: FoglihtenNo04; font-size: 55px; line-height: 40px; color: #FFF; background-color: #8342F4; float: left; padding: 20px 20px 10px 15px; margin: 4px 10px 0 0; } Choosing "Tools"->"Delete unused stylesheet-classes", shows the above mentioned stye as unused and to be deleted. This will eventually delete the whole style. If I run epubcheck and w3c css validator, my style is not rejected, however, and the style also works on my reader. Is this a bug in Sigil? |
09-23-2018, 08:09 AM | #2 |
Grand Sorcerer
Posts: 5,640
Karma: 23191067
Join Date: Dec 2010
Device: Kindle PW2
|
AFAIK, Delete Unused Stylesheet Classes can't handle pseudo selectors. You might want to you use the cssRemoveUnusedSelectors plugin instead, which won't delete pseudo selectors.
|
Advert | |
|
09-23-2018, 10:12 AM | #3 |
Wizard
Posts: 1,035
Karma: 11227259
Join Date: Mar 2013
Location: Guben, Brandenburg, Germany
Device: Kobo Clara 2E, Tolino Shine 3
|
Thank you! I didn't even know about this plugin. For the moment, my problem is already solved by simply letting the css untouched. My guess was that I might commit an undue action by using the style.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Pseudo classes with classes | Macsurfcat | ePub | 4 | 01-07-2016 05:00 AM |
Multiple classes compatibility | senhal | ePub | 5 | 11-23-2015 09:00 PM |
Aura HD Micro SD Card - All about Classes | xibalban | Kobo Reader | 7 | 09-18-2014 12:49 PM |