You are here

function sassy_compass__prefix in Sassy 7.2

Same name and namespace in other branches
  1. 7.3 sassy_compass/functions/cross_browser_support.inc \sassy_compass__prefix()
8 calls to sassy_compass__prefix()
sassy_compass___css2 in extensions/compass/functions/cross_browser_support.inc
sassy_compass___moz in extensions/compass/functions/cross_browser_support.inc
sassy_compass___ms in extensions/compass/functions/cross_browser_support.inc
sassy_compass___o in extensions/compass/functions/cross_browser_support.inc
sassy_compass___owg in extensions/compass/functions/cross_browser_support.inc

... See full list

File

extensions/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));
}