Sha256: 7867d3ab4e31f8c8f78aa7898e39746790e7215ed1db2e2ad04c51ae6b764895

Contents?: true

Size: 905 Bytes

Versions: 5

Compression:

Stored size: 905 Bytes

Contents

// @category  utilities/debug

// throw an error if archetype/core has not been registered
$a-blackhole: require-archetype-modules(archetype/util);

// a debug helper, print out a message
// @mixin     debug-message
// @param     $message {String} the message to output
// @param     $iff {Boolean} override $CONFIG_DEBUG
@mixin debug-message($message, $iff: null) {
  @if(is-debug-enabled($iff)) {
    /* #{$message} */
  }
}

// a debug helper, draws a "border" around the container when hovered and change opacity
// @mixin     debug-hover-box
// @param     $color {String} the color to draw the border
// @param     $opacity {Number}
// @param     $iff {Boolean} override $CONFIG_DEBUG
@mixin debug-hover-box($color: rgb(0, 255, 255), $opacity: 0.9, $iff: null) {
  @if(is-debug-enabled($iff)) {
    &:hover {
      @include opacity($opacity);
      @include box-shadow(0 0 3px 0 $color);
    }
  }
}

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
archetype-1.0.0.alpha.5 stylesheets/archetype/util/_debug.scss
archetype-1.0.0.alpha.4 stylesheets/archetype/util/_debug.scss
archetype-1.0.0.alpha.3 stylesheets/archetype/util/_debug.scss
archetype-1.0.0.alpha.2 stylesheets/archetype/util/_debug.scss
archetype-1.0.0.alpha.1 stylesheets/archetype/util/_debug.scss