obsidian-style-settings icon indicating copy to clipboard operation
obsidian-style-settings copied to clipboard

Setting variables do not work inside `@media print`

Open ttecon opened this issue 2 years ago • 0 comments

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);.

ttecon avatar Jun 27 '22 13:06 ttecon