Moins mixin avec des paramètres optionnels

J'ai un Less mixin défini comme:

.fontStyle(@family, @size, @weight: normal, @style: normal, @color: #ffffff, @letter-spacing: normal) {
  font-family: @family;
  font-size: @size;
  color: @color;
  font-weight: @weight;
  font-style: @style;
 letter-spacing: @letter-spacing;
}

Comment puis-je définir les utilisations telles que:

.fontStyle('NimbusSansNovCon-Reg', 12px, , , , 0.1em);

I. E. utiliser les paramètres par défaut pour @weight, @style, @color

InformationsquelleAutor Justin | 2013-06-14