Is it possible to change CSS dynamically?
I want to apply class=sheet padding-top: 28mm; when the size of $anArray is less than 30.
When this array is more than 30 then padding-top: 28 * 2 mm;
and when this array is more than 60 padding-top: 28 * 3 mm;
Do I have to make
.sheet2 {
padding-top: 56mm;
}
.sheet3 {
padding-top: 84mm;
}
And change the class selector by Javascript?
I would like to use a smarter way. :(
<section class="sheet">
{{ $anArray }}
if(anArray)
another.css
.sheet {
box-sizing: border-box;
page-break-after: always;
padding-top: 28mm;
}