3 ms·
Out of these, only the last one seems somewhat okish to me. But it would be annoying to add another selector everytime you add a class that uses the rule. If t
by TekMol 4y ago
Out of these, only the last one seems somewhat okish to me. But it would be annoying to add another selector everytime you add a class that uses the rule.
If that is all we have, then I will just stick to css variables:
:root {
--info-font-size: 8px;
}
.info {
font-size: var(--info-font-size);
color: grey;
}
.news {
font-size: var(--info-font-size);
color: black;
}