I am trying to make a custom print format and there does not seem to be any way to disable either the standard css template or bootstrap. Some issues I’m facing because of this:
@importcss rule must be defined at the top of the stylesheet, and since the standard css template rules precede the custom css, it is not possible to import fonts using custom css.- The standard rules have used
!importantin some declarations, so even using anall: revertdeclaration with the same selector will not reset those without appending!importantto the revert declaration as well. Which forces you to keep using!importantfurther in your css regardless of how specific your rule is. (Using!importantin css, that is forced on the user, is just a bad idea). - Since it’s not possible to go nuclear with
all: revertdue to point 2, I keep having to think about rules I did not modify and expected to be the browser’s default rules. This rules out “Just use more specific selectors and use!importantwhere needed” as a solution, as it is unreasonable to have to hunt down all rules, even the ones you don’t care about.
Even if I were to work around all of these issues, maybe the next version will change the standard css to be something else? You cannot expect users to keep fighting print formats of all things for every version update.
This is extremely annoying. I just want a clean environment. Is there some way to disable these in the current version (v16)? Maybe a custom app?