Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
As per quick chat with Unconed on IRC a few days ago.
This patch gets rid of the
instruction that loads the original style.css even when the color scheme is modified. The modified code takes care of unsetting $vars['css']['all']['theme'][(theme's path/style.css)] so that the stylesheet doesn't get imported needlessly. There are many ways to go around this... please review. Cheers. :-)Comment | File | Size | Author |
---|---|---|---|
#2 | color.module.patch | 711 bytes | drumm |
color.module_2.patch | 446 bytes | efolia | |
Comments
Comment #1
ms2011 CreditAttribution: ms2011 commentedWas just browsing issues and noticed this post. I agree the original style.css should be removed and this functionality should be part of the color.module. In the meantime, I thought I'd share my approach to remove the original style.css, which goes in the theme's template.php file...
NOTE: This also removes the Drupal module stylesheets but you can remove those two lines and change the else if to an if, if you don't like doing things that way.
Hope this helps someone!
Comment #2
drummHere is an updated version of efolia's patch, with a bit more simple code style.
Comment #3
dpearcefl CreditAttribution: dpearcefl commentedIs this still a problem in current D6?
Comment #4
dpearcefl CreditAttribution: dpearcefl commentedWe want your patch if it is still needed. Please resubmit it with a proper filename.
http://drupal.org/node/1054616
[description]-[issue-number]-[comment-number].patch