wordpress - Less css parse error on mixin -
i'm using wp-less wordpress , twitter bootstrap plugin icontrolwp.
the mixin taken bootstrap grid docs add grid style elements http://getbootstrap.com/css/#grid-less:
// generate small columns .make-xs-column(@columns; @gutter: @grid-gutter-width) { position: relative; // prevent columns collapsing when empty min-height: 1px; // inner gutter via padding padding-left: (@gutter / 2); padding-right: (@gutter / 2); // calculate width based on number of columns available @media (min-width: @grid-float-breakpoint) { float: left; width: percentage((@columns / @grid-columns)); } }
when load wordpress receive error:
parse error: failed @
.make-xs-column(@columns; @gutter: @grid-gutter-width) {
if cancel code block error pass next similar mixin function .make-sm-column(@columns; @gutter: @grid-gutter-width) {
strangely enough, if pass code http://lesstester.com/ shows no error.
what's going on?
.make-xs-column(@columns; @gutter: @grid-gutter-width)
change to:
.make-xs-column(@columns, @gutter: @grid-gutter-width)
Comments
Post a Comment