PHP Class SassCompressedRenderer
Compressed style takes up the minimum amount of space possible, having no
whitespace except that necessary to separate selectors and a newline at the
end of the file. It's not meant to be human-readable
ファイルを表示
Open project: richthegeek/phpsass
Class Usage Examples
Public Methods
Protected Methods
Method |
Description |
|
between ( ) : string |
Renders the brace between the selectors and the properties |
|
end ( ) : string |
Renders the brace at the end of the rule |
|
getIndent ( SassNode $node ) : string |
Returns the indent string for the node |
|
renderSelectors ( SassNode $node ) : string |
Renders the rule's selectors |
|
Method Details
between()
protected method
Renders the brace between the selectors and the properties
protected between ( ) : string |
return |
string |
the brace between the selectors and the properties |
Renders the brace at the end of the rule
protected end ( ) : string |
return |
string |
the brace between the rule and its properties |
getIndent()
protected method
Returns the indent string for the node
protected getIndent ( SassNode $node ) : string |
$node |
SassNode |
the node to return the indent string for |
return |
string |
the indent string for this SassNode |
renderDirective()
public method
public renderDirective ( SassNode $node, array $properties ) : string |
$node |
SassNode |
the node being rendered |
$properties |
array |
properties of the directive |
return |
string |
the rendered directive |
renderProperties()
public method
renderProperty()
public method
renderRule()
public method
renderSelectors()
protected method
Renders the rule's selectors