PHP 클래스 SassNestedRenderer

Nested style is the default Sass style, because it reflects the structure of the document in much the same way Sass does. Each rule is indented based on how deeply it's nested. Each property has its own line and is indented within the rule.
상속: extends SassExpandedRenderer
파일 보기 프로젝트 열기: richthegeek/phpsass

공개 메소드들

메소드 설명
renderDirective ( SassNode $node, array $properties ) : string Renders a directive.

보호된 메소드들

메소드 설명
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 rule selectors.

메소드 상세

end() 보호된 메소드

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 being rendered
리턴 string the indent string for this SassNode

renderDirective() 공개 메소드

Renders a directive.
public renderDirective ( SassNode $node, array $properties ) : string
$node SassNode the node being rendered
$properties array properties of the directive
리턴 string the rendered directive

renderSelectors() 보호된 메소드

Renders rule selectors.
protected renderSelectors ( SassNode $node ) : string
$node SassNode the node being rendered
리턴 string the rendered selectors