Sha256: 3cb55b9bc2e82333671602e14e5bd8f0b84e320cfe17d5e848cb67fba25daa37

Contents?: true

Size: 785 Bytes

Versions: 3

Compression:

Stored size: 785 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 `to-number()`
// -------------------------------------------------------------------------------
// @param $key [string] : key
// @param $value [number] : value
// @param $deep [number] : fetch deep value
// -------------------------------------------------------------------------------
// @return [string]

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
flint-gs-1.6.5 stylesheets/flint/functions/lib/_get-instance-value.scss
flint-gs-1.6.4 stylesheets/flint/functions/lib/_get-instance-value.scss
flint-gs-1.6.3 stylesheets/flint/functions/lib/_get-instance-value.scss