Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
This module is meant to help document system changes throughout the site's lifetime. Currently, the module will only document changes under the "admin" path, excluding views and contexts.
The CSS options module enables theme developers to easily expose some options around the included CSS within the site via the theme settings form.
This module does the housekeeping for managing the inclusion of conditional CSS within the site so the theme developer can focus on design.
Instructions
download and enable the css_options module
Within your theme create a css_options directory.
within your theme's css_options directory create a directory for each option you want exposed to the user with the following naming convention. "YOUR OPTION.option". The end user will see a select choice with "YOUR OPTION" as its title.
Within each option directory add one css file that represents the css corresponding to the choice. Name your file with the standard '.css' extension.
Example
If I create the following directory structure in my theme
css_options
Font Family.option
Sans-Serif (Helvitica, Arial).css
Serif (Georgia, Times).css
The css_options module will expose a "Font Family" option on the theme settings page with the following choices;