Sha256: 0af5c2e5c48a19e85283310850dc732268a7b3f7980e325b582aad6794cde423

Contents?: true

Size: 713 Bytes

Versions: 37

Compression:

Stored size: 713 Bytes

Contents

/// Removes all false and null values from `$list`.
///
/// @ignore Documentation: http://at-import.github.io/SassyLists/documentation/#function-sl-purge
///
/// @requires sl-is-true
/// @requires sl-to-list
///
/// @param {List} $list - list to purge
///
/// @example
/// sl-purge(null a false b)
/// // a b
///
/// @return {List}
///

@function sl-purge($list) {
  $_: sl-missing-dependencies('sl-is-true', 'sl-to-list');
  
  $result: ();

  @each $item in $list {
    @if sl-is-true($item) {
      $result: append($result, $item, list-separator($list));
    }
  }

  @return sl-to-list($result);
}

///
/// @requires sl-purge
/// @alias sl-purge
///
 
@function sl-clean($list) {
  @return sl-purge($list);
}

Version data entries

37 entries across 37 versions & 7 rubygems

Version Path
foundation-rails-6.9.0.0 vendor/assets/_vendor/sassy-lists/stylesheets/functions/_purge.scss
foundation-rails-6.6.2.0 vendor/assets/_vendor/sassy-lists/stylesheets/functions/_purge.scss
bedrock_sass-0.2.2 assets/_vendor/foundation/_vendor/sassy-lists/stylesheets/functions/_purge.scss
foundation-rails-6.6.1.0 vendor/assets/_vendor/sassy-lists/stylesheets/functions/_purge.scss
foundation-rails-6.5.3.0 vendor/assets/_vendor/sassy-lists/stylesheets/functions/_purge.scss
bedrock_sass-0.2.1 assets/_vendor/foundation/_vendor/sassy-lists/stylesheets/functions/_purge.scss
foundation-rails-6.5.1.0 vendor/assets/_vendor/sassy-lists/stylesheets/functions/_purge.scss
locomotivecms_wagon-2.4.1 generators/foundation/public/stylesheets/foundation6/vendor/sassy-lists/stylesheets/functions/_purge.scss
bedrock_sass-0.2.0 assets/_vendor/foundation/_vendor/sassy-lists/stylesheets/functions/_purge.scss
locomotivecms_wagon-2.4.0 generators/foundation/public/stylesheets/foundation6/vendor/sassy-lists/stylesheets/functions/_purge.scss
foundation-rails-6.4.3.0 vendor/assets/_vendor/sassy-lists/stylesheets/functions/_purge.scss
bedrock_sass-0.1.9 assets/_vendor/foundation/_vendor/sassy-lists/stylesheets/functions/_purge.scss
bedrock_sass-0.1.8 assets/_vendor/foundation/_vendor/sassy-lists/stylesheets/functions/_purge.scss
bedrock_sass-0.1.7 assets/_vendor/foundation/_vendor/sassy-lists/stylesheets/functions/_purge.scss
bedrock_sass-0.1.6 assets/_vendor/foundation/_vendor/sassy-lists/stylesheets/functions/_purge.scss
bedrock_sass-0.1.5 assets/_vendor/foundation/_vendor/sassy-lists/stylesheets/functions/_purge.scss
bedrock_sass-0.1.4 assets/_vendor/foundation/_vendor/sassy-lists/stylesheets/functions/_purge.scss
bedrock_sass-0.1.3 assets/_vendor/foundation/_vendor/sassy-lists/stylesheets/functions/_purge.scss
bedrock_sass-0.1.2 assets/_vendor/foundation/_vendor/sassy-lists/stylesheets/functions/_purge.scss
foundation-rails-6.4.1.3 vendor/assets/_vendor/sassy-lists/stylesheets/functions/_purge.scss