Sha256: 42272c50f502491d3299437202f9162115af9bb82b4fa90c3a57464b2c1e964f

Contents?: true

Size: 953 Bytes

Versions: 12

Compression:

Stored size: 953 Bytes

Contents

// Prefix properties and values 
// ----------------------------------------

$default-prefixes: -webkit, -moz, -o, -khtml, -ms;

@mixin prefix($property, $value, $prefixes: $default-prefixes) {
	
	// Unquote the values
	$property : unquote($property);
	$value    : unquote($value);
	
	// Loop through the prefixes given
	@each $prefix in $prefixes {
		#{$prefix}-#{$property}:$value;
	}
}

@mixin prefix-value($property, $value, $prefixes: $default-prefixes) {
	
	// Unquote the values
	$property : unquote($property);
	$value    : unquote($value);
	
	// Loop through the prefixes given
	@each $prefix in $prefixes {
		#{$property}:#{$prefix}-#{$value};
	}
}

// Allows you to import a file only once
// @param $name string File to import
$imported-once-files: ();
@function import-once($name) {
    @if index($imported-once-files, $name) {
        @return false;
    }
    $imported-once-files: append($imported-once-files, $name);
    @return true;
}

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
stitch-0.1.7.beta.3 stylesheets/stitch/_utilities.scss
stitch-0.1.7.beta.2 stylesheets/stitch/_utilities.scss
stitch-0.1.7.beta.1 stylesheets/stitch/_utilities.scss
stitch-0.1.6 stylesheets/stitch/_utilities.scss
stitch-0.1.5 stylesheets/stitch/_utilities.scss
stitch-0.1.4 stylesheets/stitch/_utilities.scss
stitch-0.1.4.beta.2 stylesheets/stitch/_utilities.scss
stitch-0.1.4.beta.1 stylesheets/stitch/_utilities.scss
stitch-0.1.3.2 stylesheets/stitch/_utilities.scss
stitch-0.1.3.1 stylesheets/stitch/_utilities.scss
stitch-0.1.3 stylesheets/stitch/_utilities.scss
stitch-0.1.2 stylesheets/stitch/_utilities.scss