ChristianPeters / crispy-grid

A Compass-based Grid that strives for lean & sane CSS and supports complex layouts
MIT License
10 stars 2 forks source link

Make $differing-right-padding work without $padding #6

Open ChristianPeters opened 11 years ago

ChristianPeters commented 11 years ago
@function left-and-right-sum($value, $differing-right-value)
  @if type-of($differing-right-value) == number
    @if comparable($value, $differing-right-value)
      @return $value + $differing-right-value
    @else
      @warn "It is not possible to compute the sum of #{$value} and #{$differing-right-value}. Please make them comparable. Meanwhile, the result is set to #{$value * 2}."
  @return $value * 2

This function issues just a warning when $value is not comparable with $differing-right-value but it is okay if $value is not a number to just return $differing-right-value

ChristianPeters commented 11 years ago

Hmm shouldn't be an issue because the default is 0 which should be comparable?

Maybe it didn't work because it's a grid-container?