By johnalbin on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
8.x
Issue links:
Description:
PHP constants for CSS groups (CSS aggregation)
The PHP constants used for adding CSS have all been renamed. These are the PHP constants used for the group parameter of drupal_add_css.
| old 'group' | new 'group' |
|---|---|
| CSS_SYSTEM | CSS_AGGREGATE_SYSTEM |
| CSS_DEFAULT | CSS_AGGREGATE_DEFAULT |
| CSS_THEME | CSS_AGGREGATE_THEME |
PHP constants for CSS weights
New PHP constants have been added for ordering CSS within an aggregate file. These constants should be used in the weight parameter of drupal_add_css.
| 'weight' | value | description |
|---|---|---|
| CSS_BASE | -200 | The base styling for HTML elements. |
| CSS_LAYOUT | -100 | Arrangement of elements on the page, including grid systems. |
| CSS_COMPONENT | 0 | Reusable, discrete design elements. This is the default value for drupal_add_css |
| CSS_STATE | 100 | Styles that deal with client-side changes to appearance |
| CSS_SKIN | 200 | Swappable visual changes to a design component. |
The ordering and naming of these constants follow the SMACSS categorization described at http://drupal.org/node/1887918#separate-concerns
Impacts:
Module developers
Themers
Comments
CSS_SKIN is CSS_THEME
CSS_SKIN is CSS_THEME