PHP Classes

File: engine/modules/contrib/foundation/source/_vendor/sassy-lists/stylesheets/functions/_purge.scss

Recommend this page to a friend!
  Classes of Aldo Tripiciano   Quanta CMS   engine/modules/contrib/foundation/source/_vendor/sassy-lists/stylesheets/functions/_purge.scss   Download  
File: engine/modules/contrib/foundation/source/_vendor/sassy-lists/stylesheets/functions/_purge.scss
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Quanta CMS
Manage content that works without a database
Author: By
Last change:
Date: 6 years ago
Size: 713 bytes
 

Contents

Class file image Download
/// 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); }