bdkjones / CodeKit-1-Old

146 stars 1 forks source link

Dynamic LESS variables failing since version 1.7.1 #650

Closed tomyates closed 11 years ago

tomyates commented 11 years ago

On updating to version 1.7.1 I have the following problem:

// Layout
@maxContainerWidth:     1240px;
@numberColumns:         10; 
@colWidth:              @maxContainerWidth / @numberColumns;
@width1:                @colWidth*10;

If I use the varible @width1 in a media query such as:

@media (max-width: @width1) {

The result is

@media (max-width: 1240px / 10*10) {

Rather than the expected:

@media (max-width: 1240px) {
bdkjones commented 11 years ago

Hi Tom,

Please see lesscss.org --- there are some syntax changes for math operations in Less 1.4+ and you'll need to tweak your code to be compatible. Cheers!

-Bryan

Sent from my iPhone

On Jul 23, 2013, at 4:53, Tom Yates notifications@github.com wrote:

On updating to version 1.7.1 I have the following:

// Layout @maxContainerWidth: 1240px; @numberColumns: 10; @colWidth: @maxContainerWidth / @numberColumns; @width1: @colWidth*10; If I use the varible @width1 in a media query such as:

@media (max-width: @width1) { The result is

@media (max-width: 1240px / 10*10) { Rather than the expected:

@media (max-width: ) { — Reply to this email directly or view it on GitHub.

tomyates commented 11 years ago

Thanks!