![]() |
#1 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,055
Karma: 11391181
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? |
![]() |
![]() |
![]() |
#2 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,725
Karma: 24031401
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 | |
|
![]() |
#3 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,055
Karma: 11391181
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.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
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 |
Aura HD Micro SD Card - All about Classes | xibalban | Kobo Reader | 7 | 09-18-2014 11:49 AM |