Sha256: 2e90ad6e8448815880cb80f1dbf83e6304f4b0e68a8e1026688a0c9418c28851

Contents?: true

Size: 899 Bytes

Versions: 15

Compression:

Stored size: 899 Bytes

Contents

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

@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

15 entries across 15 versions & 1 rubygems

Version Path
flint-gs-1.3.5 stylesheets/flint/functions/lib/_get-instance-value.scss
flint-gs-1.3.4 stylesheets/flint/functions/lib/_get-instance-value.scss
flint-gs-1.3.3 stylesheets/flint/functions/lib/_get-instance-value.scss
flint-gs-1.3.2 stylesheets/flint/functions/lib/_get-instance-value.scss
flint-gs-1.3.1 stylesheets/flint/functions/lib/_get-instance-value.scss
flint-gs-1.3.0 stylesheets/flint/functions/lib/_get-instance-value.scss
flint-gs-1.2.0 stylesheets/flint/functions/lib/_get-instance-value.scss
flint-gs-1.1.0 stylesheets/flint/functions/lib/_get-instance-value.scss
flint-gs-1.0.9 stylesheets/flint/functions/lib/_get-instance-value.scss
flint-gs-1.0.8 stylesheets/flint/functions/lib/_get-instance-value.scss
flint-gs-1.0.7 stylesheets/flint/functions/lib/_get-instance-value.scss
flint-gs-1.0.6 stylesheets/flint/functions/lib/_get-instance-value.scss
flint-gs-1.0.5 stylesheets/flint/functions/lib/_get-instance-value.scss
flint-gs-1.0.4 stylesheets/flint/functions/lib/_get-instance-value.scss
flint-gs-1.0.3 stylesheets/flint/functions/lib/_get-instance-value.scss