\SassCompactRenderer
SassCompactRenderer class.
Each CSS rule takes up only one line, with every property defined on that
line. Nested rules are placed next to each other with no newline, while
groups of rules have newlines between them.
Synopsis
class SassCompactRenderer
extends SassCompressedRenderer
{
- // constants
- 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 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
- 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.