Less @media
can be nested in a rule so you can define such .print
mixin as:
.print() {
@media print {
background: @heading-background-color !important;
-webkit-print-color-adjust: exact;
}
}
// usage:
.header-month {
.print();
background: @heading-background-color;
font-weight: bold;
}
Also see "Passing Rulesets to Mixins" for a more complex stuff.