I'am new with LESS and i'm trying to sort things out. This is my question for example i have a less file that looks like this
style.less
.FontAttr(@f-color: red, @f-weight: bold, @f-size: 12px) {
color: @f-color;
font-weight: @f-weight;
font-size: @f-size;
}
from what i know i can use this like this in style.less
.fakelinkfont {
.FontAttr(red, bold, 14px);
}
then use .fakelinkfont like this in my actual page
<div class="fakelinkfont">Some Characters</div>
my question is can i use .FontAttr() {...} in my actual page and not in style.less or do i even doing everything correct. BTW i'm new with this so bear with me thank in advance.