I am trying to change the color of the body background. I have added a custom css file in my .info file. (stylesheets[all][] = css/gdlc.css) However the loading order in the html is the following:

<link type="text/css" rel="stylesheet" media="all" href="/sites/all/themes/gdlc_theme/css/gdlc.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/themes/omega/css/960.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/themes/omega/css/reset.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/themes/omega/css/text.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/themes/omega/css/regions.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/themes/omega/css/defaults.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/themes/omega/css/custom.css?O" />

As you can see the gdlc.css as part of the subtheme is loaded first, therefore not allowing me to change the color of the background because of line 25 in defaults.css. I could turn off the defaults.css but there is a lot of things that I like in there.

Is this a bug or by design?

Comments

himerus’s picture

did this just start occurring in the latest update?
I can think of one change that might have caused this, but not positive.

himerus’s picture

I'm seeing the bug, not sure what is causing it.
It is definitely NOT by design... I will investigate further, and see what I can find.

himerus’s picture

Status: Active » Fixed

Okay, this will be fixed in the next release.

This issue stemmed from the new feature allowing the core CSS files to be loaded dynamically via the theme settings interface rather than having them loaded via the .info.

It is now working properly in my sandbox, and will be committed in the next release with a couple other bug fixes.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

DanGarthwaite’s picture

I am seeing the same error on 7.x-1.0.

himerus’s picture

Version: 6.x-1.0-beta10 » 7.x-1.x-dev
Status: Closed (fixed) » Active

Opening issue again, and testing in 7.x-1.x

himerus’s picture

Status: Active » Closed (cannot reproduce)

I cannot reproduce this now in 7.x-1.x....

I've tested both cvs checkout, and the latest stable package for the 1.x line.

When adding BOTH custom JS and Stylesheet(s) via the .info file in a subtheme, they appear in order as expected.

Please check your codebase is up to date, and I would HIGHLY recommend moving to the 2.x branch of Omega for D7 rather than building anything for the long term in the 1.x line. :)

See you on Friday, Dan!