at-import / breakpoint

Really simple media queries in Sass
MIT License
2.09k stars 142 forks source link

Performing math operations on breakpoint arguments #136

Closed tehtrav closed 9 years ago

tehtrav commented 9 years ago

I find myself doing something like this often:

@include breakpoint($lake - 1) {
  ...
}

Which works, perfectly, but if I want to use a variable for min & max I have to do something like this:

$newLake: $lake - 1;
@include breakpoint($puddle $newLake) {
  ...
}

Is there a way to do the math operation inside the mixin? I know this is probably a SASS question rather than a Breakpoint question but I had trouble finding an answer elsewhere.

Snugug commented 9 years ago

Per our README, general questions should be asked on Stack Overflow