Sha256: 3705fa9e14599513a04dc9637b399f9e5e196476aea4a561b24f4660f0c2657d
Contents?: true
Size: 722 Bytes
Versions: 6
Compression:
Stored size: 722 Bytes
Contents
/** * Steal breakpoint key by index * * @access private * * @param {Number} $index - index of key * * @return {String | False} */ @function flint-steal-key($index) { $length: length(map-keys(flint-get-value("breakpoints"))); @if not flint-is-number($index) { @if not $flint__development-mode { @error "Passed $index (#{$index}) is not a number. Function takes index number of breakpoint key."; } @else { @return false; } } @if $index > $length { @if not $flint__development-mode { @error "Passed $index (#{$index}) is greater than the length of the config map."; } @else { @return false; } } @return if($index != 0, nth(map-keys(flint-get-value("breakpoints")), $index), false); }
Version data entries
6 entries across 6 versions & 1 rubygems