Sha256: 69e4c0952e82c7360ab9b63136e3719ccd76d5c68f13b5658498855e7a4c48fe
Contents?: true
Size: 1.26 KB
Versions: 6
Compression:
Stored size: 1.26 KB
Contents
// Prints debug properties // ------------------------------------------------------------------------------- // @dependence `printInstance()` // ------------------------------------------------------------------------------- // @param $calcKey [Breakpoint] : breakpoint key to search for instance // ------------------------------------------------------------------------------- // @output [Properties...] @mixin debugPrintInstance($calcKey) { @if get-value(settings, debug-mode) == true { $printKey: "#{selector_string()}" + "::" + "#{$calcKey}"; @include printInstance( map-get( $flint__instances, unquote($printKey) ) ); } } // Prints all contents of instance // ------------------------------------------------------------------------------- // @param $instance [Map] : instance // ------------------------------------------------------------------------------- // @output [Properties...] @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
6 entries across 6 versions & 1 rubygems