You are here

function sassy_compass__append_selector in Sassy 7.2

Same name and namespace in other branches
  1. 7.3 sassy_compass/functions/selectors.inc \sassy_compass__append_selector()

File

extensions/compass/functions/selectors.inc, line 22

Code

function sassy_compass__append_selector($initial, $new) {
  $list = explode(',', $initial);
  foreach ($list as $k => $selector) {
    $list[$k] = trim($selector) . $new;
  }
  return new SassString(implode(', ', $list));
}