EasyBlogStylesheetLessc
in package
The LESS compiler and parser.
Converting LESS to CSS is a three stage process. The incoming file is parsed
by lessc_parser
into a syntax tree, then it is compiled into another tree
representing the CSS structure by lessc
. The CSS tree is fed into a
formatter, like lessc_formatter
which then outputs CSS as a string.
During the first compile, all values are reduced, which means that their types are brought to the lowest form before being dump as strings. This handles math equations, variable dereferences, and the like.
The parse
function of lessc
is the entry point.
In summary:
The lessc
class creates an instance of the parser, feeds it LESS code,
then transforms the resulting tree to a CSS tree. This class also holds the
evaluation context, such as all available mixins and variables at any given
time.
The lessc_parser
class is only concerned with parsing its input.
The lessc_formatter
takes a CSS tree, and dumps it to a formatted string,
handling things like indentation.
Table of Contents
Properties
- $FALSE : mixed
- $importDir : mixed
- $importDisabled : mixed
- $mPrefix : mixed
- $parentSelector : mixed
- $TRUE : mixed
- $VERSION : mixed
- $vPrefix : mixed
- $allParsedFiles : mixed
- $cssColors : mixed
- $libFunctions : mixed
- $nextImportId : mixed
- $numberPrecision : mixed
- $preserveComments : mixed
- $registeredVars : mixed
- $sourceLoc : mixed
- $sourceParser : mixed
- $initialImportDir : mixed
Methods
- __construct() : mixed
- Initialize any static state, can initialize parser for a file $opts isn't used yet
- addImportDir() : mixed
- addParsedFile() : mixed
- allParsedFiles() : mixed
- assertArgs() : mixed
- assertColor() : mixed
- assertNumber() : mixed
- cachedCompile() : array<string|int, mixed>
- Execute lessphp on a .less file or a lessphp cache structure
- ccompile() : mixed
- cexecute() : mixed
- checkedCompile() : mixed
- colorArgs() : mixed
- Helper function to get arguments for color manipulation functions.
- compile() : mixed
- compileFile() : mixed
- compressList() : mixed
- findImport() : mixed
- lib_blue() : mixed
- lib_green() : mixed
- lib_red() : mixed
- makeParser() : mixed
- normalizePath() : mixed
- parse() : mixed
- preg_quote() : mixed
- registerFunction() : mixed
- setFormatter() : mixed
- setImportDir() : mixed
- setPreserveComments() : mixed
- setVariables() : mixed
- throwError() : mixed
- Uses the current value of $this->count to show line and line number
- toBool() : mixed
- unregisterFunction() : mixed
- unsetVariable() : mixed
- clamp() : mixed
- coerceColor() : mixed
- coerceString() : mixed
- compileBlock() : mixed
- Recursively compiles a block.
- compileCSSBlock() : mixed
- compileImportedProps() : mixed
- compileMedia() : mixed
- compileMediaQuery() : mixed
- compileNestedBlock() : mixed
- compileProp() : mixed
- compileProps() : mixed
- compileRoot() : mixed
- compileSelectors() : mixed
- compileValue() : mixed
- Compiles a primitive value into a CSS property value.
- deduplicate() : mixed
- Deduplicate lines in a block. Comments are not deduplicated. If a duplicate rule is detected, the comments immediately preceding each occurence are consolidated.
- eq() : mixed
- evaluate() : mixed
- expandParentSelectors() : mixed
- fileExists() : mixed
- findBlocks() : mixed
- findClosestSelectors() : mixed
- fixColor() : mixed
- flattenList() : mixed
- funcToColor() : mixed
- Convert the rgb, rgba, hsl color literals of function type as returned by the parser into values of color type.
- get() : mixed
- injectVariables() : mixed
- lib__sprintf() : mixed
- lib_acos() : mixed
- lib_alpha() : mixed
- lib_argb() : mixed
- lib_asin() : mixed
- lib_atan() : mixed
- lib_ceil() : mixed
- lib_contrast() : mixed
- lib_cos() : mixed
- lib_darken() : mixed
- lib_data_uri() : string
- Given an url, decide whether to output a regular link or the base64-encoded contents of the file
- lib_desaturate() : mixed
- lib_e() : mixed
- lib_extract() : mixed
- lib_fade() : mixed
- lib_fadein() : mixed
- lib_fadeout() : mixed
- lib_floor() : mixed
- lib_hue() : mixed
- lib_iscolor() : mixed
- lib_isem() : mixed
- lib_iskeyword() : mixed
- lib_isnumber() : mixed
- lib_ispercentage() : mixed
- lib_ispixel() : mixed
- lib_isrem() : mixed
- lib_isstring() : mixed
- lib_lighten() : mixed
- lib_lightness() : mixed
- lib_luma() : mixed
- lib_mix() : mixed
- lib_mod() : mixed
- lib_percentage() : mixed
- lib_pi() : mixed
- lib_pow() : mixed
- lib_rgbahex() : mixed
- lib_round() : mixed
- lib_saturate() : mixed
- lib_saturation() : mixed
- lib_sin() : mixed
- lib_spin() : mixed
- lib_sqrt() : mixed
- lib_tan() : mixed
- lib_unit() : mixed
- makeOutputBlock() : mixed
- mediaParent() : mixed
- multiplyMedia() : mixed
- multiplySelectors() : mixed
- newFormatter() : mixed
- op_color_color() : mixed
- op_color_number() : mixed
- op_number_color() : mixed
- op_number_number() : mixed
- patternMatch() : mixed
- patternMatchAll() : mixed
- popEnv() : mixed
- pushEnv() : mixed
- reduce() : mixed
- set() : mixed
- sortProps() : mixed
- stringConcatenate() : mixed
- toHSL() : mixed
- toRGB() : mixed
- Converts a hsl array into a color value in rgb.
- toRGB_helper() : mixed
- tryImport() : mixed
- zipSetArgs() : mixed
Properties
$FALSE
public
static mixed
$FALSE
= array("keyword", "false")
$importDir
public
mixed
$importDir
= ''
$importDisabled
public
mixed
$importDisabled
= \false
$mPrefix
public
mixed
$mPrefix
= '$'
$parentSelector
public
mixed
$parentSelector
= '&'
$TRUE
public
static mixed
$TRUE
= array("keyword", "true")
$VERSION
public
static mixed
$VERSION
= "v0.4.0"
$vPrefix
public
mixed
$vPrefix
= '@'
$allParsedFiles
protected
mixed
$allParsedFiles
= array()
$cssColors
protected
static mixed
$cssColors
= array('aliceblue' => '240,248,255', 'antiquewhite' => '250,235,215', 'aqua' => '0,255,255', 'aquamarine' => '127,255,212', 'azure' => '240,255,255', 'beige' => '245,245,220', 'bisque' => '255,228,196', 'black' => '0,0,0', 'blanchedalmond' => '255,235,205', 'blue' => '0,0,255', 'blueviolet' => '138,43,226', 'brown' => '165,42,42', 'burlywood' => '222,184,135', 'cadetblue' => '95,158,160', 'chartreuse' => '127,255,0', 'chocolate' => '210,105,30', 'coral' => '255,127,80', 'cornflowerblue' => '100,149,237', 'cornsilk' => '255,248,220', 'crimson' => '220,20,60', 'cyan' => '0,255,255', 'darkblue' => '0,0,139', 'darkcyan' => '0,139,139', 'darkgoldenrod' => '184,134,11', 'darkgray' => '169,169,169', 'darkgreen' => '0,100,0', 'darkgrey' => '169,169,169', 'darkkhaki' => '189,183,107', 'darkmagenta' => '139,0,139', 'darkolivegreen' => '85,107,47', 'darkorange' => '255,140,0', 'darkorchid' => '153,50,204', 'darkred' => '139,0,0', 'darksalmon' => '233,150,122', 'darkseagreen' => '143,188,143', 'darkslateblue' => '72,61,139', 'darkslategray' => '47,79,79', 'darkslategrey' => '47,79,79', 'darkturquoise' => '0,206,209', 'darkviolet' => '148,0,211', 'deeppink' => '255,20,147', 'deepskyblue' => '0,191,255', 'dimgray' => '105,105,105', 'dimgrey' => '105,105,105', 'dodgerblue' => '30,144,255', 'firebrick' => '178,34,34', 'floralwhite' => '255,250,240', 'forestgreen' => '34,139,34', 'fuchsia' => '255,0,255', 'gainsboro' => '220,220,220', 'ghostwhite' => '248,248,255', 'gold' => '255,215,0', 'goldenrod' => '218,165,32', 'gray' => '128,128,128', 'green' => '0,128,0', 'greenyellow' => '173,255,47', 'grey' => '128,128,128', 'honeydew' => '240,255,240', 'hotpink' => '255,105,180', 'indianred' => '205,92,92', 'indigo' => '75,0,130', 'ivory' => '255,255,240', 'khaki' => '240,230,140', 'lavender' => '230,230,250', 'lavenderblush' => '255,240,245', 'lawngreen' => '124,252,0', 'lemonchiffon' => '255,250,205', 'lightblue' => '173,216,230', 'lightcoral' => '240,128,128', 'lightcyan' => '224,255,255', 'lightgoldenrodyellow' => '250,250,210', 'lightgray' => '211,211,211', 'lightgreen' => '144,238,144', 'lightgrey' => '211,211,211', 'lightpink' => '255,182,193', 'lightsalmon' => '255,160,122', 'lightseagreen' => '32,178,170', 'lightskyblue' => '135,206,250', 'lightslategray' => '119,136,153', 'lightslategrey' => '119,136,153', 'lightsteelblue' => '176,196,222', 'lightyellow' => '255,255,224', 'lime' => '0,255,0', 'limegreen' => '50,205,50', 'linen' => '250,240,230', 'magenta' => '255,0,255', 'maroon' => '128,0,0', 'mediumaquamarine' => '102,205,170', 'mediumblue' => '0,0,205', 'mediumorchid' => '186,85,211', 'mediumpurple' => '147,112,219', 'mediumseagreen' => '60,179,113', 'mediumslateblue' => '123,104,238', 'mediumspringgreen' => '0,250,154', 'mediumturquoise' => '72,209,204', 'mediumvioletred' => '199,21,133', 'midnightblue' => '25,25,112', 'mintcream' => '245,255,250', 'mistyrose' => '255,228,225', 'moccasin' => '255,228,181', 'navajowhite' => '255,222,173', 'navy' => '0,0,128', 'oldlace' => '253,245,230', 'olive' => '128,128,0', 'olivedrab' => '107,142,35', 'orange' => '255,165,0', 'orangered' => '255,69,0', 'orchid' => '218,112,214', 'palegoldenrod' => '238,232,170', 'palegreen' => '152,251,152', 'paleturquoise' => '175,238,238', 'palevioletred' => '219,112,147', 'papayawhip' => '255,239,213', 'peachpuff' => '255,218,185', 'peru' => '205,133,63', 'pink' => '255,192,203', 'plum' => '221,160,221', 'powderblue' => '176,224,230', 'purple' => '128,0,128', 'red' => '255,0,0', 'rosybrown' => '188,143,143', 'royalblue' => '65,105,225', 'saddlebrown' => '139,69,19', 'salmon' => '250,128,114', 'sandybrown' => '244,164,96', 'seagreen' => '46,139,87', 'seashell' => '255,245,238', 'sienna' => '160,82,45', 'silver' => '192,192,192', 'skyblue' => '135,206,235', 'slateblue' => '106,90,205', 'slategray' => '112,128,144', 'slategrey' => '112,128,144', 'snow' => '255,250,250', 'springgreen' => '0,255,127', 'steelblue' => '70,130,180', 'tan' => '210,180,140', 'teal' => '0,128,128', 'thistle' => '216,191,216', 'tomato' => '255,99,71', 'transparent' => '0,0,0,0', 'turquoise' => '64,224,208', 'violet' => '238,130,238', 'wheat' => '245,222,179', 'white' => '255,255,255', 'whitesmoke' => '245,245,245', 'yellow' => '255,255,0', 'yellowgreen' => '154,205,50')
$libFunctions
protected
mixed
$libFunctions
= array()
$nextImportId
protected
static mixed
$nextImportId
= 0
$numberPrecision
protected
mixed
$numberPrecision
= \null
$preserveComments
protected
mixed
$preserveComments
= \true
$registeredVars
protected
mixed
$registeredVars
= array()
$sourceLoc
protected
mixed
$sourceLoc
= \null
$sourceParser
protected
mixed
$sourceParser
= \null
$initialImportDir
private
mixed
$initialImportDir
= \null
Methods
__construct()
Initialize any static state, can initialize parser for a file $opts isn't used yet
public
__construct([mixed $fname = null ]) : mixed
Parameters
- $fname : mixed = null
addImportDir()
public
addImportDir(mixed $dir) : mixed
Parameters
- $dir : mixed
addParsedFile()
public
addParsedFile(mixed $file) : mixed
Parameters
- $file : mixed
allParsedFiles()
public
allParsedFiles() : mixed
assertArgs()
public
assertArgs(mixed $value, mixed $expectedArgs[, mixed $name = "" ]) : mixed
Parameters
- $value : mixed
- $expectedArgs : mixed
- $name : mixed = ""
assertColor()
public
assertColor(mixed $value[, mixed $error = "expected color value" ]) : mixed
Parameters
- $value : mixed
- $error : mixed = "expected color value"
assertNumber()
public
assertNumber(mixed $value[, mixed $error = "expecting number" ]) : mixed
Parameters
- $value : mixed
- $error : mixed = "expecting number"
cachedCompile()
Execute lessphp on a .less file or a lessphp cache structure
public
cachedCompile(mixed $in[, bool $force = false ]) : array<string|int, mixed>
The lessphp cache structure contains information about a specific less file having been parsed. It can be used as a hint for future calls to determine whether or not a rebuild is required.
The cache structure contains two important keys that may be used externally:
compiled: The final compiled CSS updated: The time (in seconds) the CSS was last compiled
The cache structure is a plain-ol' PHP associative array and can be serialized and unserialized without a hitch.
Parameters
- $in : mixed
-
Input
- $force : bool = false
-
Force rebuild?
Return values
array<string|int, mixed> —lessphp cache structure
ccompile()
public
static ccompile(mixed $in, mixed $out[, mixed $less = null ]) : mixed
Parameters
- $in : mixed
- $out : mixed
- $less : mixed = null
cexecute()
public
static cexecute(mixed $in[, mixed $force = false ][, mixed $less = null ]) : mixed
Parameters
- $in : mixed
- $force : mixed = false
- $less : mixed = null
checkedCompile()
public
checkedCompile(mixed $in, mixed $out) : mixed
Parameters
- $in : mixed
- $out : mixed
colorArgs()
Helper function to get arguments for color manipulation functions.
public
colorArgs(mixed $args) : mixed
takes a list that contains a color like thing and a percentage
Parameters
- $args : mixed
compile()
public
compile(mixed $string[, mixed $name = null ]) : mixed
Parameters
- $string : mixed
- $name : mixed = null
compileFile()
public
compileFile(mixed $fname[, mixed $outFname = null ]) : mixed
Parameters
- $fname : mixed
- $outFname : mixed = null
compressList()
public
static compressList(mixed $items, mixed $delim) : mixed
Parameters
- $items : mixed
- $delim : mixed
findImport()
public
findImport(mixed $url) : mixed
Parameters
- $url : mixed
lib_blue()
public
lib_blue(mixed $color) : mixed
Parameters
- $color : mixed
lib_green()
public
lib_green(mixed $color) : mixed
Parameters
- $color : mixed
lib_red()
public
lib_red(mixed $color) : mixed
Parameters
- $color : mixed
makeParser()
public
makeParser(mixed $name) : mixed
Parameters
- $name : mixed
normalizePath()
public
normalizePath(mixed $path[, mixed $sep = '/' ]) : mixed
Parameters
- $path : mixed
- $sep : mixed = '/'
parse()
public
parse([mixed $str = null ][, mixed $initialVariables = null ]) : mixed
Parameters
- $str : mixed = null
- $initialVariables : mixed = null
preg_quote()
public
static preg_quote(mixed $what) : mixed
Parameters
- $what : mixed
registerFunction()
public
registerFunction(mixed $name, mixed $func) : mixed
Parameters
- $name : mixed
- $func : mixed
setFormatter()
public
setFormatter(mixed $name) : mixed
Parameters
- $name : mixed
setImportDir()
public
setImportDir(mixed $dirs) : mixed
Parameters
- $dirs : mixed
setPreserveComments()
public
setPreserveComments(mixed $preserve) : mixed
Parameters
- $preserve : mixed
setVariables()
public
setVariables(mixed $variables) : mixed
Parameters
- $variables : mixed
throwError()
Uses the current value of $this->count to show line and line number
public
throwError([mixed $msg = null ]) : mixed
Parameters
- $msg : mixed = null
toBool()
public
toBool(mixed $a) : mixed
Parameters
- $a : mixed
unregisterFunction()
public
unregisterFunction(mixed $name) : mixed
Parameters
- $name : mixed
unsetVariable()
public
unsetVariable(mixed $name) : mixed
Parameters
- $name : mixed
clamp()
protected
clamp(mixed $v[, mixed $max = 1 ][, mixed $min = 0 ]) : mixed
Parameters
- $v : mixed
- $max : mixed = 1
- $min : mixed = 0
coerceColor()
protected
coerceColor(mixed $value) : mixed
Parameters
- $value : mixed
coerceString()
protected
coerceString(mixed $value) : mixed
Parameters
- $value : mixed
compileBlock()
Recursively compiles a block.
protected
compileBlock(mixed $block) : mixed
A block is analogous to a CSS block in most cases. A single LESS document is encapsulated in a block when parsed, but it does not have parent tags so all of it's children appear on the root level when compiled.
Blocks are made up of props and children.
Props are property instructions, array tuples which describe an action to be taken, eg. write a property, set a variable, mixin a block.
The children of a block are just all the blocks that are defined within. This is used to look up mixins when performing a mixin.
Compiling the block involves pushing a fresh environment on the stack, and iterating through the props, compiling each one.
See EasyBlogStylesheetLessc::compileProp()
Parameters
- $block : mixed
compileCSSBlock()
protected
compileCSSBlock(mixed $block) : mixed
Parameters
- $block : mixed
compileImportedProps()
protected
compileImportedProps(mixed $props, mixed $block, mixed $out, mixed $sourceParser, mixed $importDir) : mixed
Parameters
- $props : mixed
- $block : mixed
- $out : mixed
- $sourceParser : mixed
- $importDir : mixed
compileMedia()
protected
compileMedia(mixed $media) : mixed
Parameters
- $media : mixed
compileMediaQuery()
protected
compileMediaQuery(mixed $queries) : mixed
Parameters
- $queries : mixed
compileNestedBlock()
protected
compileNestedBlock(mixed $block, mixed $selectors) : mixed
Parameters
- $block : mixed
- $selectors : mixed
compileProp()
protected
compileProp(mixed $prop, mixed $block, mixed $out) : mixed
Parameters
- $prop : mixed
- $block : mixed
- $out : mixed
compileProps()
protected
compileProps(mixed $block, mixed $out) : mixed
Parameters
- $block : mixed
- $out : mixed
compileRoot()
protected
compileRoot(mixed $root) : mixed
Parameters
- $root : mixed
compileSelectors()
protected
compileSelectors(mixed $selectors) : mixed
Parameters
- $selectors : mixed
compileValue()
Compiles a primitive value into a CSS property value.
protected
compileValue(mixed $value) : mixed
Values in lessphp are typed by being wrapped in arrays, their format is typically:
array(type, contents [, additional_contents]*)
The input is expected to be reduced. This function will not work on things like expressions and variables.
Parameters
- $value : mixed
deduplicate()
Deduplicate lines in a block. Comments are not deduplicated. If a duplicate rule is detected, the comments immediately preceding each occurence are consolidated.
protected
deduplicate(mixed $lines) : mixed
Parameters
- $lines : mixed
eq()
protected
eq(mixed $left, mixed $right) : mixed
Parameters
- $left : mixed
- $right : mixed
evaluate()
protected
evaluate(mixed $exp) : mixed
Parameters
- $exp : mixed
expandParentSelectors()
protected
expandParentSelectors(mixed &$tag, mixed $replace) : mixed
Parameters
- $tag : mixed
- $replace : mixed
fileExists()
protected
fileExists(mixed $name) : mixed
Parameters
- $name : mixed
findBlocks()
protected
findBlocks(mixed $searchIn, mixed $path, mixed $orderedArgs, mixed $keywordArgs[, mixed $seen = array() ]) : mixed
Parameters
- $searchIn : mixed
- $path : mixed
- $orderedArgs : mixed
- $keywordArgs : mixed
- $seen : mixed = array()
findClosestSelectors()
protected
findClosestSelectors() : mixed
fixColor()
protected
fixColor(mixed $c) : mixed
Parameters
- $c : mixed
flattenList()
protected
flattenList(mixed $value) : mixed
Parameters
- $value : mixed
funcToColor()
Convert the rgb, rgba, hsl color literals of function type as returned by the parser into values of color type.
protected
funcToColor(mixed $func) : mixed
Parameters
- $func : mixed
get()
protected
get(mixed $name) : mixed
Parameters
- $name : mixed
injectVariables()
protected
injectVariables(mixed $args) : mixed
Parameters
- $args : mixed
lib__sprintf()
protected
lib__sprintf(mixed $args) : mixed
Parameters
- $args : mixed
lib_acos()
protected
lib_acos(mixed $num) : mixed
Parameters
- $num : mixed
lib_alpha()
protected
lib_alpha(mixed $value) : mixed
Parameters
- $value : mixed
lib_argb()
protected
lib_argb(mixed $color) : mixed
Parameters
- $color : mixed
lib_asin()
protected
lib_asin(mixed $num) : mixed
Parameters
- $num : mixed
lib_atan()
protected
lib_atan(mixed $num) : mixed
Parameters
- $num : mixed
lib_ceil()
protected
lib_ceil(mixed $arg) : mixed
Parameters
- $arg : mixed
lib_contrast()
protected
lib_contrast(mixed $args) : mixed
Parameters
- $args : mixed
lib_cos()
protected
lib_cos(mixed $num) : mixed
Parameters
- $num : mixed
lib_darken()
protected
lib_darken(mixed $args) : mixed
Parameters
- $args : mixed
lib_data_uri()
Given an url, decide whether to output a regular link or the base64-encoded contents of the file
protected
lib_data_uri(array<string|int, mixed> $value) : string
Parameters
- $value : array<string|int, mixed>
-
either an argument list (two strings) or a single string
Return values
string —formatted url(), either as a link or base64-encoded
lib_desaturate()
protected
lib_desaturate(mixed $args) : mixed
Parameters
- $args : mixed
lib_e()
protected
lib_e(mixed $arg) : mixed
Parameters
- $arg : mixed
lib_extract()
protected
lib_extract(mixed $value) : mixed
Parameters
- $value : mixed
lib_fade()
protected
lib_fade(mixed $args) : mixed
Parameters
- $args : mixed
lib_fadein()
protected
lib_fadein(mixed $args) : mixed
Parameters
- $args : mixed
lib_fadeout()
protected
lib_fadeout(mixed $args) : mixed
Parameters
- $args : mixed
lib_floor()
protected
lib_floor(mixed $arg) : mixed
Parameters
- $arg : mixed
lib_hue()
protected
lib_hue(mixed $color) : mixed
Parameters
- $color : mixed
lib_iscolor()
protected
lib_iscolor(mixed $value) : mixed
Parameters
- $value : mixed
lib_isem()
protected
lib_isem(mixed $value) : mixed
Parameters
- $value : mixed
lib_iskeyword()
protected
lib_iskeyword(mixed $value) : mixed
Parameters
- $value : mixed
lib_isnumber()
protected
lib_isnumber(mixed $value) : mixed
Parameters
- $value : mixed
lib_ispercentage()
protected
lib_ispercentage(mixed $value) : mixed
Parameters
- $value : mixed
lib_ispixel()
protected
lib_ispixel(mixed $value) : mixed
Parameters
- $value : mixed
lib_isrem()
protected
lib_isrem(mixed $value) : mixed
Parameters
- $value : mixed
lib_isstring()
protected
lib_isstring(mixed $value) : mixed
Parameters
- $value : mixed
lib_lighten()
protected
lib_lighten(mixed $args) : mixed
Parameters
- $args : mixed
lib_lightness()
protected
lib_lightness(mixed $color) : mixed
Parameters
- $color : mixed
lib_luma()
protected
lib_luma(mixed $color) : mixed
Parameters
- $color : mixed
lib_mix()
protected
lib_mix(mixed $args) : mixed
Parameters
- $args : mixed
lib_mod()
protected
lib_mod(mixed $args) : mixed
Parameters
- $args : mixed
lib_percentage()
protected
lib_percentage(mixed $arg) : mixed
Parameters
- $arg : mixed
lib_pi()
protected
lib_pi() : mixed
lib_pow()
protected
lib_pow(mixed $args) : mixed
Parameters
- $args : mixed
lib_rgbahex()
protected
lib_rgbahex(mixed $color) : mixed
Parameters
- $color : mixed
lib_round()
protected
lib_round(mixed $arg) : mixed
Parameters
- $arg : mixed
lib_saturate()
protected
lib_saturate(mixed $args) : mixed
Parameters
- $args : mixed
lib_saturation()
protected
lib_saturation(mixed $color) : mixed
Parameters
- $color : mixed
lib_sin()
protected
lib_sin(mixed $num) : mixed
Parameters
- $num : mixed
lib_spin()
protected
lib_spin(mixed $args) : mixed
Parameters
- $args : mixed
lib_sqrt()
protected
lib_sqrt(mixed $num) : mixed
Parameters
- $num : mixed
lib_tan()
protected
lib_tan(mixed $num) : mixed
Parameters
- $num : mixed
lib_unit()
protected
lib_unit(mixed $arg) : mixed
Parameters
- $arg : mixed
makeOutputBlock()
protected
makeOutputBlock(mixed $type[, mixed $selectors = null ]) : mixed
Parameters
- $type : mixed
- $selectors : mixed = null
mediaParent()
protected
mediaParent(mixed $scope) : mixed
Parameters
- $scope : mixed
multiplyMedia()
protected
multiplyMedia(mixed $env[, mixed $childQueries = null ]) : mixed
Parameters
- $env : mixed
- $childQueries : mixed = null
multiplySelectors()
protected
multiplySelectors(mixed $selectors) : mixed
Parameters
- $selectors : mixed
newFormatter()
protected
newFormatter() : mixed
op_color_color()
protected
op_color_color(mixed $op, mixed $left, mixed $right) : mixed
Parameters
- $op : mixed
- $left : mixed
- $right : mixed
op_color_number()
protected
op_color_number(mixed $op, mixed $lft, mixed $rgt) : mixed
Parameters
- $op : mixed
- $lft : mixed
- $rgt : mixed
op_number_color()
protected
op_number_color(mixed $op, mixed $lft, mixed $rgt) : mixed
Parameters
- $op : mixed
- $lft : mixed
- $rgt : mixed
op_number_number()
protected
op_number_number(mixed $op, mixed $left, mixed $right) : mixed
Parameters
- $op : mixed
- $left : mixed
- $right : mixed
patternMatch()
protected
patternMatch(mixed $block, mixed $orderedArgs, mixed $keywordArgs) : mixed
Parameters
- $block : mixed
- $orderedArgs : mixed
- $keywordArgs : mixed
patternMatchAll()
protected
patternMatchAll(mixed $blocks, mixed $orderedArgs, mixed $keywordArgs[, mixed $skip = array() ]) : mixed
Parameters
- $blocks : mixed
- $orderedArgs : mixed
- $keywordArgs : mixed
- $skip : mixed = array()
popEnv()
protected
popEnv() : mixed
pushEnv()
protected
pushEnv([mixed $block = null ]) : mixed
Parameters
- $block : mixed = null
reduce()
protected
reduce(mixed $value[, mixed $forExpression = false ]) : mixed
Parameters
- $value : mixed
- $forExpression : mixed = false
set()
protected
set(mixed $name, mixed $value[, mixed $propagate = true ]) : mixed
Parameters
- $name : mixed
- $value : mixed
- $propagate : mixed = true
sortProps()
protected
sortProps(mixed $props[, mixed $split = false ]) : mixed
Parameters
- $props : mixed
- $split : mixed = false
stringConcatenate()
protected
stringConcatenate(mixed $left, mixed $right) : mixed
Parameters
- $left : mixed
- $right : mixed
toHSL()
protected
toHSL(mixed $color) : mixed
Parameters
- $color : mixed
toRGB()
Converts a hsl array into a color value in rgb.
protected
toRGB(mixed $color) : mixed
Expects H to be in range of 0 to 360, S and L in 0 to 100
Parameters
- $color : mixed
toRGB_helper()
protected
toRGB_helper(mixed $comp, mixed $temp1, mixed $temp2) : mixed
Parameters
- $comp : mixed
- $temp1 : mixed
- $temp2 : mixed
tryImport()
protected
tryImport(mixed $importPath, mixed $parentBlock, mixed $out) : mixed
Parameters
- $importPath : mixed
- $parentBlock : mixed
- $out : mixed
zipSetArgs()
protected
zipSetArgs(mixed $args, mixed $orderedValues, mixed $keywordValues[, mixed $propagate = false ]) : mixed
Parameters
- $args : mixed
- $orderedValues : mixed
- $keywordValues : mixed
- $propagate : mixed = false