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
Afficher le fichier
Open project: richthegeek/phpsass
Class Usage Examples
Méthodes publiques
Méthodes protégées
Méthode |
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 méthode
Renders the brace between the selectors and the properties
protected between ( ) : string |
Résultat |
string |
the brace between the selectors and the properties |
Renders the brace at the end of the rule
protected end ( ) : string |
Résultat |
string |
the brace between the rule and its properties |
getIndent()
protected méthode
Returns the indent string for the node
protected getIndent ( SassNode $node ) : string |
$node |
SassNode |
the node to return the indent string for |
Résultat |
string |
the indent string for this SassNode |
renderDirective()
public méthode
public renderDirective ( SassNode $node, array $properties ) : string |
$node |
SassNode |
the node being rendered |
$properties |
array |
properties of the directive |
Résultat |
string |
the rendered directive |
renderProperties()
public méthode
renderProperty()
public méthode
renderRule()
public méthode
public renderRule ( SassNode $node, array $properties, string $rules ) : string |
$node |
SassNode |
the node being rendered |
$properties |
array |
rule properties |
$rules |
string |
rendered rules |
Résultat |
string |
the rendered directive |
renderSelectors()
protected méthode
Renders the rule's selectors