public static function SassExtentionsCompassFunctionsSelectors::headers in Sassy 7
1 call to SassExtentionsCompassFunctionsSelectors::headers()
- SassExtentionsCompassFunctionsSelectors::headings in phamlp/
sass/ extensions/ compass/ functions/ selectors.php
File
- phamlp/
sass/ extensions/ compass/ functions/ selectors.php, line 98
Class
- SassExtentionsCompassFunctionsSelectors
- Compass extension SassScript selectors functions class. A collection of functions for use in SassSCript. @package PHamlP @subpackage Sass.extensions.compass.functions
Code
public static function headers($from = null, $to = null) {
if (!$from || $from instanceof SassString && $from->value === "all") {
$from = new SassNumber(1);
$to = new SassNumber(6);
}
elseif ($from && !$to) {
$to = $from;
$from = new SassNumber(1);
}
return new SassString('h' . join(', h', range($from->value, $to->value)));
}