stylesheets/flint/functions/lib/_calc-width.scss in flint-gs-2.1.4 vs stylesheets/flint/functions/lib/_calc-width.scss in flint-gs-2.2.0

- old
+ new

@@ -14,12 +14,12 @@ /// @function flint-calc-width($key, $span, $context: null, $deduct: null) { $result: (); // Check to see if value has been cached - @if map-has-key($flint__cached-values, "#{$key, $span, $context, $deduct}::width") and $context != "auto" { - @return map-get($flint__cached-values, "#{$key, $span, $context, $deduct}::width"); + @if map-has-key($flint-cached-values, "#{$key, $span, $context, $deduct}::width") and $context != "auto" { + @return map-get($flint-cached-values, "#{$key, $span, $context, $deduct}::width"); } @if $span == "container" { $result: flint-get-value("breakpoints", $key, "breakpoint"); @@ -28,22 +28,22 @@ // // Check if instance maps are enabled // @if not flint-get-value("settings", "instance-maps") { - @if not $flint__development-mode { + @if not $flint-development-mode { @error "Instance maps are disabled. Automatic context is not available. Enable `instance-maps` in the config to continue."; } @else { @warn "Instance maps are disabled. Automatic context is not available. Enable `instance-maps` in the config to continue."; } } @if flint-has-family-instance($key) { $result: map-merge($result, ("target": ((flint-get-instance-value($key, "internal", "width") / flint-get-instance-value($key, "span") * $span) - if($deduct, $deduct, 0)))); $result: map-merge($result, ("context": flint-get-instance-value($key, "internal", "width"))); } @else { - @if not $flint__development-mode { + @if not $flint-development-mode { @error "You set context to `#{$context}`, but a parent instance could not be found for `#{nth(&, 1) + '::' + $key}`"; } @else { @return false; } } @@ -60,10 +60,10 @@ } // Save result to cache @if $context != "auto" { - $flint__cached-values: map-merge($flint__cached-values, ("#{$key, $span, $context, $deduct}::width": $result)); + $flint-cached-values: map-merge($flint-cached-values, ("#{$key, $span, $context, $deduct}::width": $result)); } // Return result @return $result; }