\SassExpandedRenderer
SassExpandedRenderer class.
Expanded is the typical human-made CSS style, with each property and rule
taking up one line. Properties are indented within the rules, but the rules
are not indented in any special way.
Synopsis
class SassExpandedRenderer
extends SassCompactRenderer
{
- // 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 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
- 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.