Sha256: 7379715af8ab98304676400b0815499fb0bd250539c6164fc5212357b4322896

Contents?: true

Size: 668 Bytes

Versions: 37

Compression:

Stored size: 668 Bytes

Contents

///
/// Checks whether `$functions` exist in global scope.
///
/// @access private
///
/// @param {ArgList} $functions - list of functions to check for
///
/// @return {Bool} Whether or not there are missing dependencies
///
 
@function sl-missing-dependencies($functions...) {
  $missing-dependencies: ();
  
  @each $function in $functions {
    @if not function-exists($function) {
      $missing-dependencies: append($missing-dependencies, $function, comma);
    }
  }
  
  @if length($missing-dependencies) > 0 {
    @error 'Unmet dependencies! The following functions are required: #{$missing-dependencies}.';
  }

  @return length($missing-dependencies) > 0;
}

Version data entries

37 entries across 37 versions & 7 rubygems

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