![]() |
#1 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 681
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
|
"unused stylesheet class" is actually used
In this ePub I used this pair of style definitions:
Code:
.letter, .letter1 { display: block; margin-bottom: 0; margin-left: 2em; margin-right: 1em; margin-top: 0em; text-align: left; text-indent: 2em; } .letter1 { margin-top: 2em; text-indent: 0; } Code:
<p class="letter1">Dear Mr. Wells,</p> <p class="letter">Your attendance is requested in an investigation of grave importance to the Royal Family of the Nederlands. Please consult S. Holmes posthaste regarding your willingness to participate.</p> <p class="letter">Sec. to H.M. Emma of Waldeck-Pyrmont</p> The idea being to have the first line of a letter with a top margin and no indent, otherwise the same as the "body" of the letter. This looked as expected and validated with epubcheck. But running Sigil's "Delete Unused Stylesheet Classes" and it includes "letter1" as unused. Is this a bug in that function, or is this kind of CSS invalid? |
![]() |
![]() |
![]() |
#2 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,490
Karma: 5703586
Join Date: Nov 2009
Device: many
|
Which version of Sigil? There was a similar bug fixed in an earlier but recent version of Sigil but I am not sure which one.
If the latest version, 0.9.8 then most probably a bug in Sigil that I will track down and fix. Last edited by KevinH; 06-18-2017 at 01:21 PM. |
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,687
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
Last edited by Doitsu; 06-18-2017 at 01:49 PM. |
|
![]() |
![]() |
![]() |
#4 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,490
Karma: 5703586
Join Date: Nov 2009
Device: many
|
|
![]() |
![]() |
![]() |
#5 |
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,313
Karma: 20171571
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
The only consistent issue I've seen with the remove unused stylesheet classes tool is that it still doesn't recognize when pseudo-element selectors have been used in the document.
eg. p.first:first-letter p.first:first-line Even when <p class="first"> is used in the document they are still tagged for deletion. It is easy enough to uncheck the box, but only if you know to look for it. |
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 41
Karma: 467802
Join Date: Apr 2016
Device: none
|
Quote:
Just in case new users lost it... ![]() You fixed that bug before releasing v0.9.6 (I remember testing it...). I don't use Sigil anymore as much as I'd like, but it's always a pleasure to read and see the great work that maintainers and active users do. |
|
![]() |
![]() |
![]() |
#7 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,369
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
![]() |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
SVG images marked as "unused media" | AlanHK | Sigil | 5 | 09-02-2016 12:36 PM |
Class action: "sale" royalties on "licensed" ebooks | drjenkins | News | 2 | 06-02-2016 08:44 AM |
Is it possible to reject some changes after using "Remove unused CSS tool"? | bowlins | Editor | 7 | 09-02-2014 04:22 AM |
New "remove unused css" tool | BobC | Editor | 4 | 01-25-2014 09:06 PM |
Ended "Unused" BN Nook Color. | Waba | Flea Market | 3 | 01-14-2011 10:21 AM |