Debian Codegraph @

debian/missing-sources/bourbon/app/assets/stylesheets/functions/_transition-property-name.scss

raw
1 // Return vendor-prefixed property names if appropriate
2 // Example: transition-property-names((transform, color, background), moz) -> -moz-transform, color, background
3 //************************************************************************//
4 @function transition-property-names($props, $vendor: false) {
5 @if $output-bourbon-deprecation-warnings == true {
6 @warn "[Bourbon] [Deprecation] `transition-property-names` is deprecated " +
7 "and will be removed in 5.0.0.";
8 }
9
10 $user-deprecation-warnings-setting: $output-bourbon-deprecation-warnings;
11 $output-bourbon-deprecation-warnings: false !global;
12
13 $new-props: ();
14
15 @each $prop in $props {
16 $new-props: append($new-props, transition-property-name($prop, $vendor), comma);
17 }
18
19 $output-bourbon-deprecation-warnings: $user-deprecation-warnings-setting !global;
20
21 @return $new-props;
22 }
23
24 @function transition-property-name($prop, $vendor: false) {
25 @if $output-bourbon-deprecation-warnings == true {
26 @warn "[Bourbon] [Deprecation] `transition-property-name` is deprecated " +
27 "and will be removed in 5.0.0.";
28 }
29
30 // put other properties that need to be prefixed here aswell
31 @if $vendor and $prop == transform {
32 @return unquote('-'+$vendor+'-'+$prop);
33 }
34 @else {
35 @return $prop;
36 }
37 }