Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 09-23-2018, 06:21 AM   #1
Leonatus
Wizard
Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.
 
Leonatus's Avatar
 
Posts: 1,023
Karma: 10963125
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;
}
leaving to a text style as shown in the jpg annex.
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?
Attached Thumbnails
Click image for larger version

Name:	sample.jpg
Views:	269
Size:	163.2 KB
ID:	166452  
Leonatus is offline   Reply With Quote
Old 09-23-2018, 07:09 AM   #2
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,584
Karma: 22735033
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.
Doitsu is offline   Reply With Quote
Advert
Old 09-23-2018, 09:12 AM   #3
Leonatus
Wizard
Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.
 
Leonatus's Avatar
 
Posts: 1,023
Karma: 10963125
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.
Leonatus is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 03:18 PM.


MobileRead.com is a privately owned, operated and funded community.