Sha256: 002196cd7e40554b48c97bf89c7164ea654dd6a56ef63ec74f00d99140adac5d

Contents?: true

Size: 932 Bytes

Versions: 121

Compression:

Stored size: 932 Bytes

Contents

/* =logger

Sass debugging and inspection tools
---------------------------------------------------------------------------- */

$verbose: false;

@function logger($message) {
  @if $verbose {
    @debug $message;
  }
  @return $verbose;
}

@function inspect($list, $type: false, $root: true) {
  $line-break: "\A ";
  $result: if($type,
    "(list:#{length($list)})[ "+ $line-break,
    "[ " + $line-break
  );
  $space: if($root,
    "",
    "  "
  );

  @each $item in $list {
    $result: $result + "  ";

    @if length($item) > 1 {
      $result: $result + inspect($item, $type, false);
    }

    @else {
      $result: if($type,
        $result + $space + "(" + type-of($item) + ") " + $item,
        $result + $space + $item
      );
    }

    @if index($list, $item) != length($list) {
      $result: $result + ", " + $line-break;
    }
  }

  $result: $result + $line-break + $space + "]";
  @return quote($result);
}


Version data entries

121 entries across 121 versions & 1 rubygems

Version Path
forever_style_guide-3.2.0 app/assets/stylesheets/forever_style_guide/utils/_logger.scss
forever_style_guide-3.1.5 app/assets/stylesheets/forever_style_guide/utils/_logger.scss
forever_style_guide-3.1.4 app/assets/stylesheets/forever_style_guide/utils/_logger.scss
forever_style_guide-3.1.3 app/assets/stylesheets/forever_style_guide/utils/_logger.scss
forever_style_guide-3.1.2 app/assets/stylesheets/forever_style_guide/utils/_logger.scss
forever_style_guide-3.1.1 app/assets/stylesheets/forever_style_guide/utils/_logger.scss
forever_style_guide-3.1.0 app/assets/stylesheets/forever_style_guide/utils/_logger.scss
forever_style_guide-3.0.41 app/assets/stylesheets/forever_style_guide/utils/_logger.scss
forever_style_guide-3.0.40 app/assets/stylesheets/forever_style_guide/utils/_logger.scss
forever_style_guide-3.0.39 app/assets/stylesheets/forever_style_guide/utils/_logger.scss
forever_style_guide-3.0.38 app/assets/stylesheets/forever_style_guide/utils/_logger.scss
forever_style_guide-3.0.37 app/assets/stylesheets/forever_style_guide/utils/_logger.scss
forever_style_guide-3.0.36 app/assets/stylesheets/forever_style_guide/utils/_logger.scss
forever_style_guide-3.0.35 app/assets/stylesheets/forever_style_guide/utils/_logger.scss
forever_style_guide-3.0.34 app/assets/stylesheets/forever_style_guide/utils/_logger.scss
forever_style_guide-3.0.33 app/assets/stylesheets/forever_style_guide/utils/_logger.scss
forever_style_guide-3.0.32 app/assets/stylesheets/forever_style_guide/utils/_logger.scss
forever_style_guide-3.0.31 app/assets/stylesheets/forever_style_guide/utils/_logger.scss
forever_style_guide-3.0.30 app/assets/stylesheets/forever_style_guide/utils/_logger.scss
forever_style_guide-3.0.29 app/assets/stylesheets/forever_style_guide/utils/_logger.scss