obsidian-style-settings
obsidian-style-settings copied to clipboard
Setting variables do not work inside `@media print`
Other than class-toggle
-type settings, all the variable settings do not work inside of a @media print
query. I have tried:
-
variable-text
-
variable-number
-
variable-color
Note that these variables work when I set them within my CSS file in body{}
even if it's outside of @media print
.
Separately, this may provide a hint (?): The only time I couldn't make a variable work while setting it directly inside the CSS file is inside @page
within @media print
to set the page margin (but if the variable is within @page
itself then it works). In this case, I did use margin: calc(var(--margin-in) * 1in);
.