\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 indented
within the rule.
Synopsis
class SassNestedRenderer
extends SassExpandedRenderer
{
- // Inherited constants from SassCompactRenderer
- const DEBUG_INFO_RULE = '@media -sass-debug-info';
- const DEBUG_INFO_PROPERTY = 'font-family';
- // Inherited constants from SassRenderer
- const STYLE_COMPRESSED = 'compressed';
- const STYLE_COMPACT = 'compact';
- const STYLE_EXPANDED = 'expanded';
- const STYLE_NESTED = 'nested';
- const INDENT = ' ';
- // methods
- protected string end()
- protected string getIndent()
- public string renderDirective()
- protected string renderSelectors()
- // Inherited methods from SassExpandedRenderer
- protected string between()
- protected string end()
- public string renderComment()
- public string renderProperties()
- // Inherited methods from SassCompactRenderer
- protected string between()
- protected string end()
- public string renderComment()
- public string renderDirective()
- public string renderProperties()
- public string renderProperty()
- public string renderRule()
- protected string renderDebug()
- protected string renderSelectors()
- // Inherited methods from SassCompressedRenderer
- protected string between()
- protected string end()
- protected string getIndent()
- public string renderComment()
- public string renderDirective()
- public string renderProperties()
- public string renderProperty()
- public string renderRule()
- protected string renderSelectors()
- // Inherited methods from SassRenderer
- public static SassRenderer getRenderer()
Hierarchy
Extends
Constants
Name | Value |
---|---|
DEBUG_INFO_RULE | '@media -sass-debug-info' |
DEBUG_INFO_PROPERTY | 'font-family' |
STYLE_COMPRESSED | 'compressed' |
STYLE_COMPACT | 'compact' |
STYLE_EXPANDED | 'expanded' |
STYLE_NESTED | 'nested' |
INDENT | ' ' |
Methods
protected
- end() — Renders the brace at the end of the rule
- getIndent() — Returns the indent string for the node
- renderSelectors() — Renders rule selectors.
public
- renderDirective() — Renders a directive.
Inherited from SassExpandedRenderer
protected
- between() — Renders the brace between the selectors and the properties
- end() — Renders the brace at the end of the rule
public
- renderComment() — Renders a comment.
- renderProperties() — Renders properties.
Inherited from SassCompactRenderer
protected
- between() — Renders the brace between the selectors and the properties
- end() — Renders the brace at the end of the rule
- renderDebug() — Renders debug information.
- renderSelectors() — Renders rule selectors.
public
- renderComment() — Renders a comment.
- renderDirective() — Renders a directive.
- renderProperties() — Renders properties.
- renderProperty() — Renders a property.
- renderRule() — Renders a rule.
Inherited from SassCompressedRenderer
protected
- between() — Renders the brace between the selectors and the properties
- end() — Renders the brace at the end of the rule
- getIndent() — Returns the indent string for the node
- renderSelectors() — Renders the rule's selectors
public
- renderComment() — Renders a comment.
- renderDirective() — Renders a directive.
- renderProperties() — Renders properties.
- renderProperty() — Renders a property.
- renderRule() — Renders a rule.
Inherited from SassRenderer
public
- getRenderer() — Returns the renderer for the required render style.