Closed (won't fix)
Project:
Drupal core
Version:
x.y.z
Component:
theme system
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
19 May 2005 at 19:12 UTC
Updated:
19 May 2005 at 20:37 UTC
End the endless debates and provide a theme overrideable hook for include misc/drupal.css. The idea (partially) comes from FactoryJoe.
| Comment | File | Size | Author |
|---|---|---|---|
| theme_settings_0.patch | 913 bytes | chx |
Comments
Comment #1
Thox commented+1 for sure. Backwards compatible and makes FactoryJoe happy.
Comment #2
factoryjoe commentedHey if it makes me happy, how can I not +1?
So this is the logic of this patch, to quell the whole drupal.css controversy once and for all... Since themes can override themable functions, I proposed doing something similarly drupally for the drupal.css issue. Basically if a theme provides its own drupal.css, it should use that to override the default. If the theme doesn't, then the usual 'misc/drupal.css' file is linked.
CHX implemented this solution in 10 seconds and seems to accomplish both protecting the backwards compatibility of themes that reply on drupal.css while giving wacky themers like myself the ability to override drupal.css completely.
Nice. +1.
Comment #3
kbahey commented+1.
Each side can have it their way.
Those who want drupal.css to stay can now focus the discussion on improving it, and not "to be or not to be" arguments.
Comment #4
Bèr Kessels commentedWhy can't factoryjoe override theme('stylesheet_import', 'misc/drupal.css'); ? Allright, it needs a little logic to pass all other stylesheets, but not 'misc/drupal.css', but that is as hard as a sinle if statement.
+1 on Making Chris happy. -1 on this patch :)
Comment #5
dries commentedWhy? It is already possible to overwrite the stylesheet. This looks like cruft to me.
Comment #6
chx commentedComment #7
chx commentedFor the archives: I have written http://drupal.org/node/23215 to show the way Ber and others pointed at.