Closed (duplicate)
Project:
Omega
Version:
7.x-3.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
21 Feb 2012 at 18:55 UTC
Updated:
13 Jul 2012 at 22:36 UTC
I have created an Omega Based subtheme (UW_Madison_Omega - http://drupal.org/sandbox/nmillin/1412672) that I want people to have the option to extend with Omega Tools (so they don't have to hack it etc.). When I create a sub theme of UW_Madison_Omega and enable & set default the subtheme, all the parent's css files are imported except global.css.
On WiscoWebDevelopment.com, I have UW_Madison_Omega enabled & I have created a subtheme using Omega Tools, enabled & default, called test. The only global.css file that is being loaded is test/css/global.css.
--update. Version used is 7.x-3.0
Comments
Comment #1
marcoka commentedyou are trying to create a subtheme of a subtheme?
Comment #2
nmillin commentedCorrect. I created UW_Madison_Omega as a subtheme of Omega, using Omega tools, and then I want people to be able to subtheme it.
Comment #3
marcoka commentedComment #4
cellar door commentedYeah we discussed this yesterday in IRC and I confirmed on a microsite of my own. The conditional stylesheets are loaded for each mq but the global.css is left out of the original stack. Not sure what the inheritance chain is here but it'd be good to track down. Could it be possibly linked to the name just being global.css and not specific to the theme? The two global.css' may be getting crossed.
Comment #5
cellar door commentedJust saw that Jake did a great job explaining how to do this in another post. Basically you need to create a starterkit from your subtheme that you can then use to create your new subthemes. http://drupal.org/node/1447700
Marking as duplicated
Comment #6
nmillin commentedThanks for the help!
Comment #7
smitty commentedResetting this to "active" because I think, this is a real bug (or the documentation is cheating).
I had the same problem, that the global.css of a subtheme of Omega is not being loaded if there is a subtheme of the subtheme.
I wanted to use the Respond theme and because I wanted to change some of the css and not hack the respond theme I decided to make a subtheme of the Respond theme. Because this did not work out of the box I followed http://drupal.org/node/1447700#comment-5638316 accurately and created a starterkit for the respond theme (which is not in the project by default).
But no success: My new theme (respond_my_project) looked awful and I could not recognise that it was Respond at all.
So I got a little deeper into it and found out, that indeed the global.css of the Respond theme was not being loaded in my subtheme.
Then I changed the lines
in the respond_my_project.info to
And now it worked! Now the global.css of the Respond theme got loaded and my changes in the respond_my_project_global.css got loaded too.
So it seems to me, that only the last global.css is going to be loaded and all other files called global.css are left out (fortunately neither alpha nor omega has a global.css of there own, so that this bug only comes up if you are subtheming a subtheme).
So it seems, that http://drupal.org/node/1436308 is already implemented (;-)
P.S.: I tried this also with the Tej theme: Same result!
Comment #8
cellar door commentedThis is something that can be addressed in an update to the starterkit but making the edits above to the main theme/subtheme will cause it to break. The starterkit method is the best way of implementing a subtheme of a subtheme until we change over the global.css naming in future subthemes.
Marking as a duplicate of the other issue of making global.css more subtheme specific
Comment #8.0
cellar door commentedcan't change version #