In several cases, a setting in local.css is being over-ridden by a setting in colors.css

For example, if I want to set the color of the main screen (#main) and use ".tn-pbg #main" in local.css, which is exactly what is used in colors.css, the local.css setting is ignored unless one adds "!important".

Is this something that could be fixed? Is it a matter of what order the css files are loaded in?

Thanks.

Comments

ajross’s picture

Sounds like the stylesheet is getting loaded after colors.css. I assume you added it in the .info file? What order did you put them in there? Try moving local.css to the bottom.

jsibley’s picture

Might it make sense for you to add:

stylesheets[all][] = css/local.css

To the info sheet for mix_and_match to ensure compatibility for previous users, or is that just asking for trouble, since the d6 and d7 versions are so different?

Or, perhaps put it in the info file, but commented out, with instructions to uncomment it if desired?

If I read the adaptivetheme documentation correctly, they suggest a different file name for custom css, but say that it can be called anything, as long as it is mentioned in the info file.

Thanks!

ajross’s picture

Issue summary: View changes

Follow up post answered this correctly. I'd also refer you here to this issue for a couple suggestions for how to manage custom CSS.

ajross’s picture

Status: Active » Closed (works as designed)