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.4.14 app/assets/stylesheets/forever_style_guide/utils/_logger.scss
forever_style_guide-3.4.13 app/assets/stylesheets/forever_style_guide/utils/_logger.scss
forever_style_guide-3.4.12 app/assets/stylesheets/forever_style_guide/utils/_logger.scss
forever_style_guide-3.4.11 app/assets/stylesheets/forever_style_guide/utils/_logger.scss
forever_style_guide-3.4.10 app/assets/stylesheets/forever_style_guide/utils/_logger.scss
forever_style_guide-3.4.9 app/assets/stylesheets/forever_style_guide/utils/_logger.scss
forever_style_guide-3.4.8 app/assets/stylesheets/forever_style_guide/utils/_logger.scss
forever_style_guide-3.4.7 app/assets/stylesheets/forever_style_guide/utils/_logger.scss
forever_style_guide-3.4.6 app/assets/stylesheets/forever_style_guide/utils/_logger.scss
forever_style_guide-3.4.5 app/assets/stylesheets/forever_style_guide/utils/_logger.scss
forever_style_guide-3.4.4 app/assets/stylesheets/forever_style_guide/utils/_logger.scss
forever_style_guide-3.4.3 app/assets/stylesheets/forever_style_guide/utils/_logger.scss
forever_style_guide-3.4.2 app/assets/stylesheets/forever_style_guide/utils/_logger.scss
forever_style_guide-3.4.1 app/assets/stylesheets/forever_style_guide/utils/_logger.scss
forever_style_guide-3.4 app/assets/stylesheets/forever_style_guide/utils/_logger.scss
forever_style_guide-3.3.6 app/assets/stylesheets/forever_style_guide/utils/_logger.scss
forever_style_guide-3.3.5 app/assets/stylesheets/forever_style_guide/utils/_logger.scss
forever_style_guide-3.3.4 app/assets/stylesheets/forever_style_guide/utils/_logger.scss
forever_style_guide-3.3.3 app/assets/stylesheets/forever_style_guide/utils/_logger.scss
forever_style_guide-3.3.2 app/assets/stylesheets/forever_style_guide/utils/_logger.scss