I am trying to define custom mixin in Less, but it seems doesn't work right for me.
It looks like this
.font-face(@font-family, @filepath){
@font-face {
font-family: @font-family;
src: url('../fonts/@{filepath}.ttf') format('truetype');
}
}
I think I'll add some more properties to it, but this is just for the start. Then I'm applying it
.header {
.font-face(Rubik, Rubik);
}
And it doesn't work. It doesn't give any error and isn't showed at the Dev Tools.
What can cause the problem? And how to fix this?