app/assets/stylesheets/functions/_private.scss in neat-1.7.0 vs app/assets/stylesheets/functions/_private.scss in neat-1.7.1

- old
+ new

@@ -1,17 +1,23 @@ +// Not function for Libsass compatibility +// https://github.com/sass/libsass/issues/368 +@function is-not($value) { + @return if($value, false, true); +} + // Checks if a number is even @function is-even($int) { - @return $int % 2 == 0 + @return $int % 2 == 0; } // Checks if an element belongs to a list or not @function belongs-to($tested-item, $list) { - @return not not-belongs-to($tested-item, $list); + @return is-not(not-belongs-to($tested-item, $list)); } @function not-belongs-to($tested-item, $list) { - @return not index($list, $tested-item); + @return is-not(index($list, $tested-item)); } // Contains display value @function contains-display-value($query) { @return belongs-to(table, $query) @@ -47,10 +53,10 @@ @return $parent-columns; } // Generates a striped background @function gradient-stops($grid-columns, $color: $visual-grid-color) { - $transparent: rgba(0,0,0,0); + $transparent: transparent; $column-width: flex-grid(1, $grid-columns); $gutter-width: flex-gutter($grid-columns); $column-offset: $column-width;