View Single Post
Old 07-03-2018, 07:59 PM   #18
slowsmile
Witchman
slowsmile ought to be getting tired of karma fortunes by now.slowsmile ought to be getting tired of karma fortunes by now.slowsmile ought to be getting tired of karma fortunes by now.slowsmile ought to be getting tired of karma fortunes by now.slowsmile ought to be getting tired of karma fortunes by now.slowsmile ought to be getting tired of karma fortunes by now.slowsmile ought to be getting tired of karma fortunes by now.slowsmile ought to be getting tired of karma fortunes by now.slowsmile ought to be getting tired of karma fortunes by now.slowsmile ought to be getting tired of karma fortunes by now.slowsmile ought to be getting tired of karma fortunes by now.
 
Posts: 628
Karma: 788808
Join Date: May 2013
Location: Philippines
Device: Android S5
@theducks
"BTW couldn't the display: none be done with the CSS? (I hate inline styles)"

Although I appreciate that you dislike inline styles, there is no harm in using them in your code -- you will not get errors from doing this. Also, if you want the plugin to automatically add a class and add the class to the stylesheet then what if your epub has more than one stylesheet(which is very possible)? This would mean that, to make your desired change, I would also have to implement a dropdown selection somewhere in the dialog to capture the correct stylesheet for the new 'invisible' class entry. This would unnecessarily complicate plugin usage(which is complicated enough already!!). And it is for these reasons that I won't be implementing your suggestion.

But all is not lost! If you want to quickly implement a class in your chapter headings that makes all the chapter headings invisible then all you would have to do is just define that class once in the relevant css and then just add that class to your chapter headings using the new add class plugin option. And just in case you were wondering -- although I haven't added it yet, I am intending that that the new add class facility on the plugin should also be capable of adding more than one class per entry to all chapter headings. I'm hoping that this simple solution will ease your mind a wee bit at least.

Last edited by slowsmile; 07-03-2018 at 10:57 PM.
slowsmile is offline