Closed (duplicate)
Project:
Less CSS Preprocessor
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
29 Apr 2011 at 09:25 UTC
Updated:
15 Oct 2011 at 19:48 UTC
I'd like to use some of the mixins from Bootstrap.less http://markdotto.com/bootstrap/
But I'm receiving a parse error on the .button and .gradient mixin:
LESS ERROR: parse error: failed at `.button(@color: #f5f5f5, @text_color: #333, @text_shadow: 0 1px 1px rgba(255,255,255,.75), @font_size: 13px, @padding: 9px 15px 10px, @rounded: 6px) {` line: 177, sites/vtm.be/themes/vtmcleanup/css/layout-fixed.css.less
LESS ERROR: parse error: failed at `filter: e(%("progid:DXImageTransform.Microsoft.Gradient(StartColorStr='%d', EndColorStr='%d', GradientType=1)",@startColor,@endColor));` line: 215, sites/vtm.be/themes/vtmcleanup/css/layout-fixed.css.less
Comments
Comment #1
corey.aufang commentedTry the dev version and see if that fixes the problem for you.
Comment #2
corey.aufang commentedOh also, I think when you used mix-ins you're supposed to separate the arguments with semi-colons not commas.
So the first one would be like:
Comment #3
corey.aufang commentedClosing since I haven't gotten further feedback.
Comment #4
bryan kennedy commentedI just tried this with the latest dev here and ran into exactly the same error.
I am using the latest bootstrap less files and the 7.x-2.x-dev LESS CSS Preprocessor module. I have no special variables set, just the default setup for both the Drupal Module and Bootstrap less files.
Comment #5
bforchhammer commentedThe less compiler bundled with the module requires commas instead of semicolons, and afaik does not support the
eescape function. For a possible solution see #1302132-2: @import "mixins.less" and using mixins doesn't work.