Closed (fixed)
Project:
Css Dry
Version:
6.x-1.0-beta1
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
13 Nov 2009 at 04:57 UTC
Updated:
5 Dec 2009 at 22:00 UTC
I don't see any indication of how to use this module.
It doesn't implement a single Drupal hook.
Is it a command line tool?
Am I missing something obvious? Hope so.
Comments
Comment #1
rhache commentedAs of the October 21 Beta 1 and October 22 dev release, here's what you need to do:
and replace "my_css.css" with the proper css path/filename. If you have multiple stylesheets, you can add the rest with the CSS @import declaration in your main CSS file.
Keep in mind that this is really early stage documentation given the active development of this module. The module maintainers are also working on a way to add the stylesheets via the info file (#611640: Any plans to add files from info files?) so this maybe out of date very soon.
Rene
Comment #2
Hugo Wetterberg commentedThanks for the help in the issue queue Rene. I've added a duplicate link to the gist with the full example so that people won't miss it as easily.
Cheers
/Hugo
Comment #3
rhache commentedSmall Revision to initial documentation
if (module_exists('cssdry')) {<br/> drupal_add_css(cssdry_stylesheet(drupal_get_path('theme', 'your_theme') .'my_css.css'), 'theme');<br/>}and replace "my_css.css" and "your_theme" with the proper css path/filename and theme name, respectively. If you have multiple stylesheets, you can add the rest with the CSS @import declaration in your main CSS file.
Keep in mind that this is really early stage documentation given the active development of this module. The module maintainers are also working on a way to add the stylesheets via the info file (#611640: Any plans to add files from info files?) so this maybe out of date very soon.
Rene
Comment #4
allain commentedStylesheets may now be added from info files just like the current stylesheets are.
For example, as of beta2, the following will work:
cssdry[all][] = style.cssComment #5
Hugo Wetterberg commentedComment #6
rhache commentedNew instructions for the Beta 2 release.
cssdry[all][] = defaults.cssand replace "my_css.css" with the proper css path/filename. If you have multiple stylesheets, you can add the rest with the CSS @import declaration in your main CSS file.
We highly recommend using the info file method as much as possible, especially since it supports nested themes (ie base theme with one or more sub-themes).
Enjoy!