PHP 클래스 SassCompactRenderer

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.
상속: extends SassCompressedRenderer
파일 보기 프로젝트 열기: richthegeek/phpsass 1 사용 예제들

공개 메소드들

메소드 설명
renderComment ( SassNode $node ) : string Renders a comment.
renderDirective ( SassNode $node, array $properties ) : string Renders a directive.
renderProperties ( SassNode $node, array $properties ) : string Renders properties.
renderProperty ( SassNode $node ) : string Renders a property.
renderRule ( SassNode $node, array $properties, string $rules ) : string Renders a rule.

보호된 메소드들

메소드 설명
between ( ) : string Renders the brace between the selectors and the properties
end ( ) : string Renders the brace at the end of the rule
renderDebug ( SassNode $node ) : string Renders debug information.
renderSelectors ( SassNode $node ) : string Renders rule selectors.

메소드 상세

between() 보호된 메소드

Renders the brace between the selectors and the properties
protected between ( ) : string
리턴 string the brace between the selectors and the properties

end() 보호된 메소드

Renders the brace at the end of the rule
protected end ( ) : string
리턴 string the brace between the rule and its properties

renderComment() 공개 메소드

Comments preceeding a rule are on their own line. Comments within a rule are on the same line as the rule.
public renderComment ( SassNode $node ) : string
$node SassNode the node being rendered
리턴 string the rendered commnt

renderDebug() 보호된 메소드

If the node has the debug_info options set true the line number and filename are rendered in a format compatible with {@link https://addons.mozilla.org/en-US/firefox/addon/firecompass-for-firebug/ FireCompass}. Else if the node has the line_numbers option set true the line number and filename are rendered in a comment.
protected renderDebug ( SassNode $node ) : string
$node SassNode the node being rendered
리턴 string the debug information

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

renderProperties() 공개 메소드

Renders properties.
public renderProperties ( SassNode $node, array $properties ) : string
$node SassNode the node being rendered
$properties array properties to render
리턴 string the rendered properties

renderProperty() 공개 메소드

Renders a property.
public renderProperty ( SassNode $node ) : string
$node SassNode the node being rendered
리턴 string the rendered property

renderRule() 공개 메소드

Renders a rule.
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 rule

renderSelectors() 보호된 메소드

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