Contents

System\Traits\HasLessFunctions

Overview

HasLessFunctions trait cleans user supplied values before they reach the LESS compiler


Protected Methods

protected static makeLessColorValue()

protected static makeLessColorValue($value, $default): string 

makeLessColorValue returns the value when it is a plain CSS color, otherwise the default, so no LESS source reaches the parser.

protected static makeLessSizeValue()

protected static makeLessSizeValue($value, $default): string 

makeLessSizeValue returns the value when it is made of plain CSS size keywords and lengths, otherwise the default.

protected static stripLessFileAccess()

protected static stripLessFileAccess($css): string 

stripLessFileAccess removes LESS import directives and file reading functions until none remain.