Importing CSS and overwriting does not work
Hi everyone,
I'm working on 2022.0.346. I have a css file for my HTML output (file.css) which I am importing into my css for PDF output using
@1552174 url("file.css");Afterwards, I want to change some minor things. For example, in my file.css, Heading 2 is defined with a gray background and font-size 18. For my PDF output, I do not want a background color and a different size. So, after my import syntax, I set the background color to transparent and the size to 13:
h2 {
font-size: 13pt;
background-color: transparent;
}I thought CSS would use the last definition, ergo I expected size 13 and transparent background as this is set after the import syntax. However, my heading remained size 18 and still has a gray background.
If I add "!important" to my attributes, e.g.
background-color: transparent !important;it is working as intended. However, I don't want to add this to every single attribute in order to get it working, if I can avoid it.
Am I making a mistake here? How do I define this properly?
