Sha256: 89650e38da5ca2d7b11cc82dc93ebcd7851b5e497ed4a6f067cdcd88c711fbb8
Contents?: true
Size: 1017 Bytes
Versions: 7
Compression:
Stored size: 1017 Bytes
Contents
//// /// @group Internal Mixins //// /// /// 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
7 entries across 7 versions & 1 rubygems