Skip to content

Commit

Permalink
Remove flex-shrink from box displays
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Wei committed May 9, 2016
1 parent 7b0cb18 commit 66bf29f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 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.7.7",
"version": "0.7.8",
"description": "An experimental stylesheet library.",
"homepage": "http://VARIANTE.github.io/minuet",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion src/sass/mixins/boxes.scss
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@
white-space: normal;

> * {
flex-shrink: 1;
flex-shrink: if(str-index($type, 'box') != null, 0, 1);
}
} @else if (str-index($type, 'grid') != null) {
$_props: str-slice($type, str-index($type, 'grid') + 4, if(str-index($type, ')'), str-length($type) - 1, str-length($type)));
Expand Down
2 changes: 1 addition & 1 deletion src/stylus/mixins/boxes.styl
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ display($type, $align1=null, $align2=null)
white-space: normal

> *
flex-shrink: 1
flex-shrink: ((match('box', $type) != null) ? 0 : 1)

else if match('grid', $type) != null
$_dregex = match('\^|>|v|<', $type) or '>'
Expand Down

0 comments on commit 66bf29f

Please sign in to comment.