Sha256: 2713c2c2a2faba48f4a87b1783e537605504903d149be2445ff905bab4c6c174

Contents?: true

Size: 527 Bytes

Versions: 4

Compression:

Stored size: 527 Bytes

Contents

// Gets the index of the passed key
// -------------------------------------------------------------------------------
// @dependence `steal-key()`
// -------------------------------------------------------------------------------
// @param $key [string] : breakpoint key
// -------------------------------------------------------------------------------
// @return [number]

@function get-index($key) {
  	@for $i from 1 through (length(map-fetch($flint, "config")) - 1) {
		@if steal-key($i) == $key {
			@return $i;
		}
	}
}

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
flint-gs-1.6.2 stylesheets/flint/functions/lib/_get-index.scss
flint-gs-1.6.0 stylesheets/flint/functions/lib/_get-index.scss
flint-gs-1.5.0 stylesheets/flint/functions/lib/_get-index.scss
flint-gs-1.4.0 stylesheets/flint/functions/lib/_get-index.scss