Sha256: 7c7d39d5422354b851bbcafaccc699036c440e98698d23853195a59b9f872819

Contents?: true

Size: 697 Bytes

Versions: 413

Compression:

Stored size: 697 Bytes

Contents

// Return vendor-prefixed property names if appropriate
// Example: transition-property-names((transform, color, background), moz) -> -moz-transform, color, background
//************************************************************************//
@function transition-property-names($props, $vendor: false) {
	$new-props: ();
	
	@each $prop in $props {
		$new-props: append($new-props, transition-property-name($prop, $vendor), comma);
	}

	@return $new-props;
}

@function transition-property-name($prop, $vendor: false) {
	// put other properties that need to be prefixed here aswell
	@if $vendor and $prop == transform {
		@return unquote('-'+$vendor+'-'+$prop);
	}
	@else {
		@return $prop;
	}
}

Version data entries

413 entries across 402 versions & 17 rubygems

Version Path
smock-0.1.260 app/assets/stylesheets/thirdparty/bourbon/functions/_transition-property-name.scss
smock-0.1.259 app/assets/stylesheets/thirdparty/bourbon/functions/_transition-property-name.scss
smock-0.1.258 app/assets/stylesheets/thirdparty/bourbon/functions/_transition-property-name.scss
smock-0.1.256 app/assets/stylesheets/thirdparty/bourbon/functions/_transition-property-name.scss
smock-0.1.255 app/assets/stylesheets/thirdparty/bourbon/functions/_transition-property-name.scss
smock-0.1.254 app/assets/stylesheets/thirdparty/bourbon/functions/_transition-property-name.scss
smock-0.1.253 app/assets/stylesheets/thirdparty/bourbon/functions/_transition-property-name.scss
smock-0.1.252 app/assets/stylesheets/thirdparty/bourbon/functions/_transition-property-name.scss
smock-0.1.251 app/assets/stylesheets/thirdparty/bourbon/functions/_transition-property-name.scss
smock-0.1.250 app/assets/stylesheets/thirdparty/bourbon/functions/_transition-property-name.scss
smock-0.1.249 app/assets/stylesheets/thirdparty/bourbon/functions/_transition-property-name.scss
wrgem-0.0.48 lib/generators/wrstart/template/vendor/assets/components/bourbon/dist/functions/_transition-property-name.scss
wrgem-0.0.47 lib/generators/wrstart/template/vendor/assets/components/bourbon/dist/functions/_transition-property-name.scss
wrgem-0.0.46 lib/generators/wrstart/template/vendor/assets/components/bourbon/dist/functions/_transition-property-name.scss
wrgem-0.0.45 lib/generators/wrstart/template/vendor/assets/components/bourbon/dist/functions/_transition-property-name.scss
wrgem-0.0.44 lib/generators/wrstart/template/vendor/assets/components/bourbon/dist/functions/_transition-property-name.scss
thesis-0.1.3 app/assets/stylesheets/thesis/base/bourbon/functions/_transition-property-name.scss
smock-0.1.247 app/assets/stylesheets/thirdparty/bourbon/functions/_transition-property-name.scss
smock-0.1.246 app/assets/stylesheets/thirdparty/bourbon/functions/_transition-property-name.scss
smock-0.1.245 app/assets/stylesheets/thirdparty/bourbon/functions/_transition-property-name.scss