Sha256: 54eb076326d7cb9f1551a2912f16ffd2271cdc3d8ad5b807f5fcdafc727ef63b
Contents?: true
Size: 969 Bytes
Versions: 6
Compression:
Stored size: 969 Bytes
Contents
/** * Prints debug properties * * @access private * * @param {String} $calc-key - breakpoint key to search for instance */ @mixin flint-debug-instance($calc-key) { @if flint-get-value("settings", "debug-mode") { // Lets clean up the selector a bit... $selector: nth(&, 1); // Append key to selector $print-selector: "#{$selector}" + "::" + "#{$calc-key}"; @include flint-print-instance(map-get($flint__instances, unquote($print-selector))); } } /** * Prints all contents of instance map * * @access private * * @param {Map} $instance - 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 $prop, $val in $value { -flint-output-#{$prop}: #{$val}; } // Else, print values as flagged comments } @else { -flint-#{$property}: #{$value}; } } }
Version data entries
6 entries across 6 versions & 1 rubygems