comparison default/assets/scss/vendors/bourbon/library/_value-prefixer.scss @ 0:1d038bc9b3d2 default tip

Up:default
author Liny <dev@neowd.com>
date Sat, 31 May 2025 09:21:51 +0800
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:1d038bc9b3d2
1 @charset "UTF-8";
2
3 /// Generates vendor prefixes for values.
4 ///
5 /// @argument {string} $property
6 /// Property to use.
7 ///
8 /// @argument {string} $value
9 /// Value to prefix.
10 ///
11 /// @argument {list} $prefixes
12 /// Vendor prefixes to output.
13 ///
14 /// @example scss
15 /// .element {
16 /// @include value-prefixer(cursor, grab, ("webkit", "moz"));
17 /// }
18 ///
19 /// // CSS Output
20 /// .element {
21 /// cursor: -webkit-grab;
22 /// cursor: -moz-grab;
23 /// cursor: grab;
24 /// }
25 ///
26 /// @author Matthew Tobiasz
27
28 @mixin value-prefixer(
29 $property,
30 $value,
31 $prefixes: ()
32 ) {
33
34 @each $prefix in $prefixes {
35 #{$property}: #{"-" + $prefix + "-" + $value};
36 }
37 #{$property}: $value;
38 }