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