PHP Класс 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
Показать файл
Открыть проект
Примеры использования класса
Открытые методы
Защищенные методы
Метод |
Описание |
|
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 |
|
Описание методов
between()
защищенный Метод
Renders the brace between the selectors and the properties
protected between ( ) : string |
Результат |
string |
the brace between the selectors and the properties |
Renders the brace at the end of the rule
protected end ( ) : string |
Результат |
string |
the brace between the rule and its properties |
getIndent()
защищенный Метод
Returns the indent string for the node
protected getIndent ( SassNode $node ) : string |
$node |
SassNode |
the node to return the indent string for |
Результат |
string |
the indent string for this SassNode |
renderDirective()
публичный Метод
public renderDirective ( SassNode $node, array $properties ) : string |
$node |
SassNode |
the node being rendered |
$properties |
array |
properties of the directive |
Результат |
string |
the rendered directive |
renderProperties()
публичный Метод
renderProperty()
публичный Метод
renderRule()
публичный Метод
public renderRule ( SassNode $node, array $properties, string $rules ) : string |
$node |
SassNode |
the node being rendered |
$properties |
array |
rule properties |
$rules |
string |
rendered rules |
Результат |
string |
the rendered directive |
renderSelectors()
защищенный Метод
Renders the rule's selectors