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-4.2.5 app/assets/stylesheets/forever_style_guide/utils/_logger.scss
forever_style_guide-4.2.4 app/assets/stylesheets/forever_style_guide/utils/_logger.scss
forever_style_guide-4.2.3 app/assets/stylesheets/forever_style_guide/utils/_logger.scss
forever_style_guide-4.2.2 app/assets/stylesheets/forever_style_guide/utils/_logger.scss
forever_style_guide-4.2.1 app/assets/stylesheets/forever_style_guide/utils/_logger.scss
forever_style_guide-4.2.0 app/assets/stylesheets/forever_style_guide/utils/_logger.scss
forever_style_guide-4.1.14 app/assets/stylesheets/forever_style_guide/utils/_logger.scss
forever_style_guide-4.1.13 app/assets/stylesheets/forever_style_guide/utils/_logger.scss
forever_style_guide-4.1.12 app/assets/stylesheets/forever_style_guide/utils/_logger.scss
forever_style_guide-4.1.11 app/assets/stylesheets/forever_style_guide/utils/_logger.scss
forever_style_guide-4.0.0 app/assets/stylesheets/forever_style_guide/utils/_logger.scss
forever_style_guide-3.7.2 app/assets/stylesheets/forever_style_guide/utils/_logger.scss
forever_style_guide-3.7.1 app/assets/stylesheets/forever_style_guide/utils/_logger.scss
forever_style_guide-3.7.0 app/assets/stylesheets/forever_style_guide/utils/_logger.scss
forever_style_guide-3.6.1 app/assets/stylesheets/forever_style_guide/utils/_logger.scss
forever_style_guide-3.6.0 app/assets/stylesheets/forever_style_guide/utils/_logger.scss
forever_style_guide-3.5.0 app/assets/stylesheets/forever_style_guide/utils/_logger.scss
forever_style_guide-3.4.17 app/assets/stylesheets/forever_style_guide/utils/_logger.scss
forever_style_guide-3.4.16 app/assets/stylesheets/forever_style_guide/utils/_logger.scss
forever_style_guide-3.4.15 app/assets/stylesheets/forever_style_guide/utils/_logger.scss