Documentation

Less_Tree_NameValue extends Less_Tree
in package

A simple css name-value pair ex: width:100px;

In bootstrap, there are about 600-1,000 simple name-value pairs (depending on how forgiving the match is) -vs- 6,020 dynamic rules (Less_Tree_Rule) Using the name-value object can speed up bootstrap compilation slightly, but it breaks color keyword interpretation: color:red -> color:#FF0000;

Tags
subpackage

tree

Table of Contents

$cache_string  : mixed
$currentFileInfo  : mixed
$important  : mixed
$index  : mixed
$name  : mixed
$type  : mixed
$value  : mixed
__construct()  : mixed
__set_state()  : mixed
Requires php 5.3+
accept()  : mixed
compile()  : mixed
genCSS()  : void
Generate CSS by adding it to the output object
makeImportant()  : mixed
outputRuleset()  : mixed
ReferencedArray()  : mixed
toCSS()  : mixed

Properties

$cache_string

public mixed $cache_string

$currentFileInfo

public mixed $currentFileInfo

Methods

__construct()

public __construct(mixed $name[, mixed $value = null ][, mixed $index = null ][, mixed $currentFileInfo = null ]) : mixed
Parameters
$name : mixed
$value : mixed = null
$index : mixed = null
$currentFileInfo : mixed = null
Return values
mixed

__set_state()

Requires php 5.3+

public static __set_state(mixed $args) : mixed
Parameters
$args : mixed
Return values
mixed

accept()

public accept(mixed $visitor) : mixed
Parameters
$visitor : mixed
Return values
mixed

compile()

public compile(mixed $env) : mixed
Parameters
$env : mixed
Return values
mixed

genCSS()

Generate CSS by adding it to the output object

public genCSS(mixed $output) : void
Parameters
$output : mixed

The output

Return values
void

makeImportant()

public makeImportant() : mixed
Return values
mixed

outputRuleset()

public static outputRuleset(mixed $output, array<string|int, Less_Tree_Ruleset$rules) : mixed
Parameters
$output : mixed
$rules : array<string|int, Less_Tree_Ruleset>
Return values
mixed

ReferencedArray()

public static ReferencedArray(mixed $rules) : mixed
Parameters
$rules : mixed
Return values
mixed

toCSS()

public toCSS() : mixed
Return values
mixed

Search results