public function CompassColourStop::toString in Sassy 7
* Returns a string representation of the value. *
Return value
string string representation of the value.
Overrides SassLiteral::toString
File
- phamlp/
sass/ extensions/ compass/ functions/ colourStops.php, line 62
Class
Code
public function toString() {
$s = $this->colour
->toString();
if (!empty($this->stop)) {
$s .= ' ';
if ($this->stop
->isUnitless()) {
$s .= $this->stop
->op_times(new SassNumber('100%'))
->toString();
}
else {
$s .= $this->stop
->toString();
}
}
return $s;
}