protected function SassNestedRenderer::getIndent in Sassy 7.3
Same name and namespace in other branches
- 7 phamlp/sass/renderers/SassNestedRenderer.php \SassNestedRenderer::getIndent()
Returns the indent string for the node
Parameters
SassNode the node being rendered:
Return value
string the indent string for this SassNode
Overrides SassCompressedRenderer::getIndent
2 calls to SassNestedRenderer::getIndent()
- SassNestedRenderer::renderDirective in phpsass/
renderers/ SassNestedRenderer.php - Renders a directive.
- SassNestedRenderer::renderSelectors in phpsass/
renderers/ SassNestedRenderer.php - Renders rule selectors.
File
- phpsass/
renderers/ SassNestedRenderer.php, line 37
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 getIndent($node) {
return str_repeat(self::INDENT, $node->level);
}