Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
theme_boost\autoprefixer Class Reference

Autoprefixer class. More...

Public Member Functions

 __construct (Document $tree)
 Constructor.
 
 prefix ()
 Prefix all the things!
 

Protected Member Functions

 manipulateRuleValues (array $rules)
 Manipulate an array of rules to adapt their values.
 
 processBlock ($block)
 Process block.
 
 processDeclaration ($node, $parent)
 Process declaration.
 

Protected Attributes

string $pseudosregex
 Pseudo classes regex.
 
object $tree
 The CSS tree.
 

Static Protected Attributes

static array $atrules
 At rules prefixes.
 
static array $pseudos
 Pseudo classes prefixes.
 
static array $rules
 Rule properties prefixes.
 

Detailed Description

Autoprefixer class.

Very basic implementation covering simple needs for Bootstrap 4.

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Constructor & Destructor Documentation

◆ __construct()

theme_boost\autoprefixer::__construct ( Document $tree)

Constructor.

Parameters
Document$treeThe CSS tree.

Member Function Documentation

◆ manipulateRuleValues()

theme_boost\autoprefixer::manipulateRuleValues ( array $rules)
protected

Manipulate an array of rules to adapt their values.

Parameters
array$rulesThe rules.
Return values
Newarray of rules.

◆ processBlock()

theme_boost\autoprefixer::processBlock ( $block)
protected

Process block.

Parameters
object$blockA block.
object$parentThe parent of the block.

◆ processDeclaration()

theme_boost\autoprefixer::processDeclaration ( $node,
$parent )
protected

Process declaration.

Parameters
object$nodeThe declaration block.
object$parentThe parent.

Member Data Documentation

◆ $atrules

array theme_boost\autoprefixer::$atrules
staticprotected
Initial value:
= [
'keyframes' => ['-webkit-', '-o-']
]

At rules prefixes.

◆ $pseudos

array theme_boost\autoprefixer::$pseudos
staticprotected
Initial value:
= [
'::placeholder' => ['::-webkit-input-placeholder', '::-moz-placeholder', ':-ms-input-placeholder']
]

Pseudo classes prefixes.

◆ $rules

array theme_boost\autoprefixer::$rules
staticprotected
Initial value:
= [
'animation' => ['-webkit-'],
'appearance' => ['-webkit-', '-moz-'],
'backface-visibility' => ['-webkit-'],
'box-sizing' => ['-webkit-'],
'box-shadow' => ['-webkit-'],
'background-clip' => ['-webkit-'],
'background-size' => ['-webkit-'],
'box-shadow' => ['-webkit-'],
'column-count' => ['-webkit-', '-moz-'],
'column-gap' => ['-webkit-', '-moz-'],
'perspective' => ['-webkit-'],
'touch-action' => ['-ms-'],
'transform' => ['-webkit-', '-moz-', '-ms-', '-o-'],
'transition' => ['-webkit-', '-o-'],
'transition-timing-function' => ['-webkit-', '-o-'],
'transition-duration' => ['-webkit-', '-o-'],
'transition-property' => ['-webkit-', '-o-'],
'user-select' => ['-webkit-', '-moz-', '-ms-'],
]

Rule properties prefixes.


The documentation for this class was generated from the following file: