Skip to content Skip to sidebar Skip to footer

Overriding Class Definitions With Less

I'm trying to customize a Joomla template, which is based on Bootstrap. Specifically, I'm trying to make a 'hardcoded' .span4 have the width of a .span3. Sure, it would be much eas

Solution 1:

#grid > .fluid > .span(3);

gives me:

.row-fluid #top1.span4 {
  width: 23.40425532%;
  *width: 23.35106383%;
  background: red;
}

and NOT width: * 3 * 2;

Tested with less.php, less v1.4, v1.7.3. Notice that Less v2 do not compile BS2 at all.

Less v2 fails on #grid > .core > .span(@gridColumns); in navbar.less


Post a Comment for "Overriding Class Definitions With Less"