Sha256: 306479587ca052e7165151d4a7d0367419ec46de5bf3e51ec93b5a4d986cedd4
Contents?: true
Size: 1.58 KB
Versions: 1
Compression:
Stored size: 1.58 KB
Contents
/** * Keeps count of all instances with arguments, stores in global var * * @access private * * @param {String} $key - computed breakpoint of instance * @param {Number} $span - computed span of instance * @param {Number} $context - computed context of instance * @param {Number} $gutter - computed gutter of instance * @param {Number} $output-width - computed width of instance * @param {Number} $output-margin-right - computed right margin of instance * @param {Number} $output-margin-left - computed left margin of instance * * @return {Map} merged instance map */ @function flint-instance($key, $span, $context, $gutter, $output-width, $output-margin-right, $output-margin-left) { // Increase the instance count $flint__instance-count: $flint__instance-count + 1 !global; // Lets clean up the selector a bit... $selector: nth(&, 1); $flint__instance: ( "#{$selector}::#{$key}": ( "instance-count": $flint__instance-count, "parent-selector": if(flint-has-family-instance($key) != false, flint-has-family-instance($key), none), "key": $key, "breakpoint": flint-get-value("breakpoints", $key, "breakpoint"), "columns": flint-get-value("breakpoints", $key, "columns"), "span": $span, "context": if($context == "auto", flint-get-instance-value($key, "span"), $context), "gutter": $gutter, "internal": ( "width": $output-width, "margin-right": $output-margin-right, "margin-left": $output-margin-left ) ) ); @return map-merge($flint__instance, $flint__instances); }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
flint-gs-2.0.2 | stylesheets/flint/functions/lib/_instance.scss |