Drupal Association members fund grants that make connections all over the world.
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.
- 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.
If I create the following directory structure in my theme
- Sans-Serif (Helvitica, Arial).css
- Serif (Georgia, Times).css
- Font Family.option
The css_options module will expose a "Font Family" option on the theme settings page with the following choices;
- No Additional Style
- Sans-Serif (Helvetica, Arial)
- Serif (Georgia, Times)
If the end user chooses any option except for "No Additional Style" for that option the corresponding css file will be included in the delivered CSS.
Please see the included css_options directory for further examples. You can start by copying this directory into your theme and then visiting the theme settings page 'admin/appearance/settings/YOURTHEME'
This module is maintained by the friendly primates at FunnyMonkey.
- Maintenance status: Seeking new maintainer
- Development status: No further development
- Module categories: Administration, Theme Enhancements, Utility
- Reported installs: 127 sites currently report using this module. View usage statistics.
- Downloads: 1,938
- Last modified: February 9, 2015
- Stable releases are covered by the security advisory policy.
Look for the shield icon below.