Sha256: 8cab89a37487933ce3434a3f02b7eccd606ec00b0d53e73dd521584afe047f04

Contents?: true

Size: 820 Bytes

Versions: 5

Compression:

Stored size: 820 Bytes

Contents

// Get single value from key in instance map based on $selector::$key
// -------------------------------------------------------------------------------
// @warning : all values returned are strings and must be converted with `flint-to-number()`
// -------------------------------------------------------------------------------
// @param $key [string] : key
// @param $value [number] : value
// @param $deep [number] : fetch deep value
// -------------------------------------------------------------------------------
// @return [string]

@function flint-get-instance-value($key, $value, $deep: null) {
	@if $deep == null {
		@return flint-map-fetch($flint__instances, flint-has-family-instance($key) $value);
	} @else {
		@return flint-map-fetch($flint__instances, flint-has-family-instance($key) $value $deep);
	}
}

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
flint-gs-1.10.0 stylesheets/flint/functions/lib/_get-instance-value.scss
flint-gs-1.9.1 stylesheets/flint/functions/lib/_get-instance-value.scss
flint-gs-1.8.0 stylesheets/flint/functions/lib/_get-instance-value.scss
flint-gs-1.7.2 stylesheets/flint/functions/lib/_get-instance-value.scss
flint-gs-1.7.0 stylesheets/flint/functions/lib/_get-instance-value.scss