Skip to content

Commit

Permalink
Fix percentage problems in image-map-item
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Wei committed May 27, 2016
1 parent d7614ea commit 79d4daf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "minuet",
"version": "0.8.2",
"version": "0.8.3",
"description": "An experimental stylesheet library.",
"homepage": "http://VARIANTE.github.io/minuet",
"license": "MIT",
Expand Down
6 changes: 3 additions & 3 deletions src/sass/mixins/media.scss
Original file line number Diff line number Diff line change
Expand Up @@ -172,10 +172,10 @@ $device-thresholds: (
$x: 0;
$y: 0;

@if $num-cols > 1 { $x: ((100 / ($num-cols - 1)) * $col-index); }
@if $num-rows > 1 { $y: ((100 / ($num-rows - 1)) * $row-index); }
@if $num-cols > 1 { $x: ((1 / ($num-cols - 1)) * $col-index); }
@if $num-rows > 1 { $y: ((1 / ($num-rows - 1)) * $row-index); }

background-size: percentage($num-cols * 100) percentage($num-rows * 100);
background-size: percentage($num-cols) percentage($num-rows);
background-position: percentage($x) percentage($y);
}

Expand Down

0 comments on commit 79d4daf

Please sign in to comment.