PHP Class SassNestedRenderer

Nested style is the default Sass style, because it reflects the structure of the document in much the same way Sass does. Each rule is indented based on how deeply it's nested. Each property has its own line and is indented within the rule.
Inheritance: extends SassExpandedRenderer
Show file Open project: richthegeek/phpsass

Public Methods

Method Description
renderDirective ( SassNode $node, array $properties ) : string Renders a directive.

Protected Methods

Method Description
end ( ) : string Renders the brace at the end of the rule
getIndent ( SassNode $node ) : string Returns the indent string for the node
renderSelectors ( SassNode $node ) : string Renders rule selectors.

Method Details

end() protected method

Renders the brace at the end of the rule
protected end ( ) : string
return string the brace between the rule and its properties

getIndent() protected method

Returns the indent string for the node
protected getIndent ( SassNode $node ) : string
$node SassNode the node being rendered
return string the indent string for this SassNode

renderDirective() public method

Renders a directive.
public renderDirective ( SassNode $node, array $properties ) : string
$node SassNode the node being rendered
$properties array properties of the directive
return string the rendered directive

renderSelectors() protected method

Renders rule selectors.
protected renderSelectors ( SassNode $node ) : string
$node SassNode the node being rendered
return string the rendered selectors