Moodle APIs  3.8
Moodle 3.8.6 (Build: 20201109)
Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
theme_boost\autoprefixer Class Reference

Autoprefixer class. More...

Public Member Functions

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

Protected Member Functions

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

Protected Attributes

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

Static Protected Attributes

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

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: