You are here

function sassy_compass__is_position in Sassy 7.3

Same name and namespace in other branches
  1. 7.2 extensions/compass/functions/constants.inc \sassy_compass__is_position()

File

sassy_compass/functions/constants.inc, line 3

Code

function sassy_compass__is_position($position) {
  if (is_object($position)) {
    $position = $position->value;
  }
  return new SassBoolean(in_array($position, array(
    'top',
    'left',
    'bottom',
    'right',
  )));
}