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.0.28 app/assets/stylesheets/forever_style_guide/utils/_logger.scss
forever_style_guide-3.0.27 app/assets/stylesheets/forever_style_guide/utils/_logger.scss
forever_style_guide-3.0.26 app/assets/stylesheets/forever_style_guide/utils/_logger.scss
forever_style_guide-3.0.25 app/assets/stylesheets/forever_style_guide/utils/_logger.scss
forever_style_guide-3.0.24 app/assets/stylesheets/forever_style_guide/utils/_logger.scss
forever_style_guide-3.0.23 app/assets/stylesheets/forever_style_guide/utils/_logger.scss
forever_style_guide-3.0.22 app/assets/stylesheets/forever_style_guide/utils/_logger.scss
forever_style_guide-3.0.21 app/assets/stylesheets/forever_style_guide/utils/_logger.scss
forever_style_guide-3.0.20 app/assets/stylesheets/forever_style_guide/utils/_logger.scss
forever_style_guide-3.0.19 app/assets/stylesheets/forever_style_guide/utils/_logger.scss
forever_style_guide-3.0.18 app/assets/stylesheets/forever_style_guide/utils/_logger.scss
forever_style_guide-3.0.17 app/assets/stylesheets/forever_style_guide/utils/_logger.scss
forever_style_guide-3.0.16 app/assets/stylesheets/forever_style_guide/utils/_logger.scss
forever_style_guide-3.0.15 app/assets/stylesheets/forever_style_guide/utils/_logger.scss
forever_style_guide-3.0.14 app/assets/stylesheets/forever_style_guide/utils/_logger.scss
forever_style_guide-3.0.13 app/assets/stylesheets/forever_style_guide/utils/_logger.scss
forever_style_guide-3.0.12 app/assets/stylesheets/forever_style_guide/utils/_logger.scss
forever_style_guide-3.0.11 app/assets/stylesheets/forever_style_guide/utils/_logger.scss
forever_style_guide-3.0.10 app/assets/stylesheets/forever_style_guide/utils/_logger.scss
forever_style_guide-3.0.9 app/assets/stylesheets/forever_style_guide/utils/_logger.scss