1

Simple question. I just started looking at less for CSS building, I stumbled upon this dilemma:

.fontcase (@family:'helvetica',@size:1em,@fontweight:300,@color:#ffffff) {   
    font-family: @family Arial  sans-serif;   
    font-size:@size;   
    font-weight:@fontweight;   
    color:@color; 
}

#ex-topnav-items {
     .fontcase(@fontweight:700);

     margin:5px;   
     line-height: 1.5em;
     letter-spacing: 1px; 
}

I just want to override some of one parameter from the mixins, but it seems this is not the proper syntax.

Harry
  • 87,580
  • 25
  • 202
  • 214
Mr A
  • 1,345
  • 4
  • 22
  • 51

1 Answers1

1

That format is correct and is supported, but only in the main branch of less.js (to be included in the release after 1.3.0) and in dotless (from a much earlier version - dotless is a c# port).

So, wait, use the main branch of less.js or use dotless..

Luke Page
  • 8,136
  • 1
  • 20
  • 22