You are here

protected function SassNestedRenderer::renderSelectors in Sassy 7.3

Same name and namespace in other branches
  1. 7 phamlp/sass/renderers/SassNestedRenderer.php \SassNestedRenderer::renderSelectors()

Renders rule selectors.

Parameters

SassNode the node being rendered:

Return value

string the rendered selectors

Overrides SassCompactRenderer::renderSelectors

File

phpsass/renderers/SassNestedRenderer.php, line 57

Class

SassNestedRenderer
SassNestedRenderer class. 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…

Code

protected function renderSelectors($node) {
  $indent = $this
    ->getIndent($node);
  return $indent . join(",\n{$indent}", $node->selectors);
}