You can useHow do I refer to these font sizes in extra.less?
@xf- followed by the name of the property, for example @xf-fontSizeNormal.html
{
font-size: @xf-fontSizeNormal;
}
rem font sizes in the style properties and then set your base font size on the html element accordingly (using media queries to make the base size larger on mobile). I haven't tested this approach though so YMMV.extra.less:html
{
font-size: 16px;
@media (max-width: @xf-responsiveNarrow)
{
font-size: 18px;
}
}
rem units in the style properties. These units are proportional (multipliers) to the sizes set above:1rem.875rem.75rem.625rem1.125rem1.25rem1.375remWe use essential cookies to make this site work, and optional cookies to enhance your experience.