function sassy_compass__prefix in Sassy 7.3
Same name and namespace in other branches
- 7.2 extensions/compass/functions/cross_browser_support.inc \sassy_compass__prefix()
8 calls to sassy_compass__prefix()
- sassy_compass___css2 in sassy_compass/
functions/ cross_browser_support.inc - sassy_compass___moz in sassy_compass/
functions/ cross_browser_support.inc - sassy_compass___ms in sassy_compass/
functions/ cross_browser_support.inc - sassy_compass___o in sassy_compass/
functions/ cross_browser_support.inc - sassy_compass___owg in sassy_compass/
functions/ cross_browser_support.inc
File
- sassy_compass/
functions/ cross_browser_support.inc, line 57
Code
function sassy_compass__prefix($vendor, $input) {
if (is_object($vendor)) {
$vendor = $vendor->value;
}
$list = sassy_compass__list($input, ',');
$output = '';
foreach ($list as $key => $value) {
$list[$key] = '-' . $vendor . '-' . $value;
}
return new SassString(implode(', ', $list));
}