Skip to content
This repository has been archived by the owner on Nov 3, 2020. It is now read-only.

Commit

Permalink
fix division by 0
Browse files Browse the repository at this point in the history
  • Loading branch information
ezekg committed Sep 16, 2014
1 parent 33849ca commit d3a1ff3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Change Log

### 2.0.0.rc.2 - 9/16/14
* Fixed issue with `$context` modifiers calling a division by 0.

### 2.0.0.rc.1 - 9/12/14
* Revamped codebase considerably.
* Modified layout of `$flint` configuration map. Breakpoints are now housed in their own separate section.
Expand Down
2 changes: 1 addition & 1 deletion lib/flint.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
end

module Flint
VERSION = "2.0.0.rc.2"
VERSION = "2.0.0.rc.3"
DATE = "2014-09-16"
end

Expand Down
4 changes: 2 additions & 2 deletions stylesheets/flint/mixins/lib/_calculate.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@

@if flint-get-value("settings", "grid") == "fluid" {
width: flint-fluid-width(map-get($width, "target"), map-get($width, "context"));
margin-right: flint-fluid-width($margin-right, map-get($width, "context"));
margin-left: flint-fluid-width($margin-left, map-get($width, "context"));
margin-right: if($margin-right != 0, flint-fluid-width($margin-right, map-get($width, "context")), 0);
margin-left: if($margin-left != 0, flint-fluid-width($margin-left, map-get($width, "context")), 0);
} @else {
width: map-get($width, "target");
margin-right: $margin-right;
Expand Down

0 comments on commit d3a1ff3

Please sign in to comment.