Is it possible to adjust variables in SCSS specifically for printing purposes?
Here are some current variables I have:
$baseFontSize : 12px;
$defaultSansSerif: "Helvetica Neue", Helvetica, Arial, sans-serif;
$defaultSerif : Times, "Times New Roman", serif;
I would like to change these variables for print styles. For instance:
$baseFontSize : 10pt;
$defaultSansSerif: "Courier New", Courier, monospace;
$defaultSerif : Georgia, Serif;
In the case of font families, I could create a separate variable like $defaultPrintSansSerif and redefine the CSS for printing. However, when it comes to font size, it is not feasible to rewrite every class for print styles in the CSS.
I am searching for a way to modify my $baseFontSize from 12px to 10pt automatically for print styles. For example:
Calculation SCREEN CSS PRINT CSS
$baseFontSize 12px 10pt
$baseFontSize * 2 24px 20pt
$baseFontSize * 3/2 18px 15pt