Sha256: 07faeb07cefdef493278634a5b9ade3c7cb97b535fb4f6e6680e0e7d2ba8e773
Contents?: true
Size: 1.35 KB
Versions: 3
Compression:
Stored size: 1.35 KB
Contents
// Prints debug properties // ------------------------------------------------------------------------------- // @param $calc-key [string] : breakpoint key to search for instance // ------------------------------------------------------------------------------- // @output instance map @mixin flint-debug-instance($calc-key) { @if flint-get-value("settings", "debug-mode") { // Lets clean up the selector a bit... $selector-string: selector_string(); $selector-list: flint-string-to-list($selector-string); $selector-cleaned: flint-list-to-string($selector-list, " "); $printKey: "#{$selector-cleaned}" + "::" + "#{$calc-key}"; @include flint-print-instance( map-get( $flint__instances, unquote($printKey) ) ); } } // Prints all contents of instance // ------------------------------------------------------------------------------- // @param $instance [map] : instance // ------------------------------------------------------------------------------- // @output instance map @mixin flint-print-instance($instance) { // Loop through each property in passed instance @each $property, $value in $instance { // Check if value is output map @if flint-is-map($value) { @each $p, $v in $value { -flint-output-#{$p}: #{$v}; } // Else, print values as flagged comments } @else { -flint-#{$property}: #{$value}; } } }
Version data entries
3 entries across 3 versions & 1 rubygems