Skip to content

Commit

Permalink
Merge pull request #86 from xzyfer/patch-1
Browse files Browse the repository at this point in the history
Always define compact
  • Loading branch information
xzyfer committed May 14, 2016
2 parents 8d93bef + 7dc37c2 commit e3d7d67
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions lib/compass/css3/_transition.scss
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,9 @@ $transitionable-prefixed-values: transform, transform-origin !default;
// Keep a list of delays in case one is specified
$delays: append($delays, if($delay, $delay, 0s));

$webkit-value: append($webkit-value, compact(prefixed-for-transition(-webkit, $property) $duration $timing-function));
$moz-value: append( $moz-value, compact(prefixed-for-transition( -moz, $property) $duration $timing-function $delay));
$o-value: append( $o-value, compact(prefixed-for-transition( -o, $property) $duration $timing-function $delay));
$webkit-value: append($webkit-value, compact((prefixed-for-transition(-webkit, $property) $duration $timing-function)...));
$moz-value: append( $moz-value, compact((prefixed-for-transition( -moz, $property) $duration $timing-function $delay)...));
$o-value: append( $o-value, compact((prefixed-for-transition( -o, $property) $duration $timing-function $delay)...));
}

@if $experimental-support-for-webkit { -webkit-transition : $webkit-value;
Expand Down
18 changes: 9 additions & 9 deletions lib/compass/functions/_lists.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
// compass_list can't be implemented in sass script

@function -compass-space-list($item1, $item2:null, $item3:null, $item4:null, $item5:null, $item6:null, $item7:null, $item8:null, $item9:null) {
$items: ();
// Support for polymorphism.
@if type-of($item1) == 'list' {
// Passing a single array of properties.
Expand Down Expand Up @@ -77,14 +78,13 @@
@return nth($list, 1);
}

@if not(function-exists(compact)) {
@function compact($vars...) {
$list: ();
@each $var in $vars {
@if $var {
$list: append($list, $var, comma);
}
}
@return $list;
@function compact($vars...) {
$separator: list-separator($vars);
$list: ();
@each $var in $vars {
@if $var {
$list: append($list, $var, $separator);
}
}
@return $list;
}

0 comments on commit e3d7d67

Please sign in to comment.