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.
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
Comment #1
ajross CreditAttribution: ajross commentedSounds 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.
Comment #2
jsibley CreditAttribution: jsibley commentedMight 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!
Comment #3
ajross CreditAttribution: ajross commentedFollow up post answered this correctly. I'd also refer you here to this issue for a couple suggestions for how to manage custom CSS.
Comment #4
ajross CreditAttribution: ajross commented