Class it up
Categories
Component ID
Component name
Component type
Maintenance status
Development status
Component security advisory coverage
Component created
Component changed
Component body
This project provides classes based on information Drupal knows about.
We will try to follow Drupal's CSS guidelines.
Currently it offers:
- region machine names as classes on blocks
And plans:
- view display machine names on views
Please make your own suggestions or requests!
Exactly what classes it provides is liable to change until a release candidate or at least a stable release is reached. Until then (and after!) feel free to mine it for examples of preprocessors you can put in your own theme.
Note that the Classy core theme does not provide any preprocessors, and adds all of its themes through templates. By contrast, this extension adds classes which will be added to the attributes core-respecting template output anyway. This reduces the need for templates that differ only in the classes they add (though we absolutely suggest templates as the answer to most of the world's problems).
Class it up is meant to be required by themes, whether custom or contrib, which will be enforceable when this core issue finally lands: #474684: Allow themes to declare dependencies on modules
