private static property CSSCompression::$modes in Advanced CSS/JS Aggregation 6
Same name and namespace in other branches
- 7 advagg_css_compress/css-compressor-3.x/src/CSSCompression.inc \CSSCompression::modes
Modes are predefined sets of configuration for referencing. When creating a mode, all options are set to true, and the mode array defines which options are to be false
@mode safe: Safe mode does zero combinations or organizing. It's the best mode if you use a lot of hacks @mode sane: Sane mode does most combinations(multiple long hand notations to single shorthand), --- but still keeps most declarations in their place @mode small: Small mode reorganizes the whole sheet, combines as much as it can, and will break most comment hacks @mode full: Full mode does everything small does, but also converts hex codes to their short color name alternatives
File
- advagg_css_compress/
css-compressor-3.x/ src/ CSSCompression.inc, line 136
Class
Code
private static $modes = array(
'safe' => array(
'color-hex2shortcolor' => false,
'attr2selector' => false,
'strict-id' => false,
'organize' => false,
'csw-combine' => false,
'auralcp-combine' => false,
'mp-combine' => false,
'border-combine' => false,
'font-combine' => false,
'background-combine' => false,
'list-combine' => false,
'border-radius-combine' => false,
'rm-multi-define' => false,
),
'sane' => array(
'color-hex2shortcolor' => false,
'strict-id' => false,
'organize' => false,
'font-combine' => false,
'background-combine' => false,
'list-combine' => false,
'rm-multi-define' => false,
),
'small' => array(
'color-hex2shortcolor' => false,
'pseudo-space' => false,
),
'full' => array(
'pseudo-space' => false,
),
);