Sha256: 7c10baf465c92e1ddf5960a58e27915c29a8429ea786b2bc875c5216012cd10b
Contents?: true
Size: 1.29 KB
Versions: 13
Compression:
Stored size: 1.29 KB
Contents
// @category utilities/debug // check if debug is enabled // @function is-debug-enabled // @param $if {Bool} optional override for $CONFIG_DEBUG // @return {Bool} whether or not debug is enabled @function is-debug-enabled($if: nil) { // debug is only available in DEV environments, so check that first // then check if the debug flag/override is truthy @return (index($CONFIG_DEBUG_ENVS, archetype-env()) and if($if == nil, $CONFIG_DEBUG, $if)); } // a debug helper, print out a message // @mixin debug-message // @param $message {String} the message to output // @param $if {Bool} override $CONFIG_DEBUG @mixin debug-message($message, $if: nil) { @if(is-debug-enabled($if)) { @if archetype-version('sass >= 3.2') { /* #{$message} */ } @else { -archetype-debug: quote($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 $if {Bool} override $CONFIG_DEBUG @mixin debug-hover-box($color: rgb(0, 255, 255), $opacity: 0.9, $if: nil) { @if(is-debug-enabled($if)) { &:hover { @include opacity($opacity); @include box-shadow(0 0 3px 0 $color); } } }
Version data entries
13 entries across 13 versions & 1 rubygems