Sha256: 38e43719071740ba6295f64de0b8cc4ff218374cac25df5e53863476e544c113

Contents?: true

Size: 872 Bytes

Versions: 1

Compression:

Stored size: 872 Bytes

Contents

// Joins all elements of $list with $glue
// -------------------------------------------------------------------------------
// @documentation http://sassylists.com/documentation/#to-string
// -------------------------------------------------------------------------------
// @param $list [list] : list
// @param $glue [string] : value to use as a join string
// -------------------------------------------------------------------------------
// @return [string]

@function flint-list-to-string($list, $glue: "", $is-nested: false) {
	$result: null;
	$length: length($list);

	@for $i from 1 through $length {
		$n: nth($list, $i);

		@if flint-is-list($n) {
			$result: $result#{flint-list-to-string($n, $glue, true)};
		} @else {
			$result: if($i != length($list) or $is-nested, $result#{$n}#{$glue}, $result#{$n});
		}
	}

	@return $result;
}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
flint-gs-1.7.1 stylesheets/flint/functions/lib/_list-to-string.scss