Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 09-23-2018, 06:21 AM   #1
Leonatus
Fanatic
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: 582
Karma: 6814034
Join Date: Mar 2013
Location: Berlin, Germany
Device: Kobo Touch
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:	40
Size:	163.2 KB
ID:	166452  
Leonatus is offline   Reply With Quote
Old 09-23-2018, 07:09 AM   #2
Doitsu
Wizard
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: 4,274
Karma: 14242649
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
Old 09-23-2018, 09:12 AM   #3
Leonatus
Fanatic
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: 582
Karma: 6814034
Join Date: Mar 2013
Location: Berlin, Germany
Device: Kobo Touch
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

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 04:25 AM.


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