Closed (fixed)
Project:
Corolla
Version:
7.x-2.2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 May 2012 at 20:10 UTC
Updated:
23 May 2012 at 21:00 UTC
While using Corolla theme it happens that responsive.layout.css appears before the at.layout.css in html code. This means that the defined layout get broken, e. g. sidebar width is set to 180 px instead of custom width noted in the theme.
If cache is deleted than everything works fine (responsive.layout.css comes after at.layout.css) until the page is reloaded and the issue appears again.
The theme is created as a subtheme of Corolla based on the Foo theme (renaming foo theme to my custom theme name).
I use the Page theme module on this site.
It looks like this:
<style>
@import url("http://vfb.jossgrund.net/sites/all/themes/adaptivetheme/css/at.base.css?m3m9ls");
</style>
<link media="all" href="http://vfb.jossgrund.net/sites/default/files/at_css/vfb_oberndorf_newstart.responsive.layout.css?m3m9ls" rel="stylesheet" type="text/css">
<style>
@import url("http://vfb.jossgrund.net/sites/all/themes/adaptivetheme/css/at.layout.css?m3m9ls");
@import url("http://vfb.jossgrund.net/sites/all/themes/adaptivetheme/css/at.messages.css?m3m9ls");
@import url("http://vfb.jossgrund.net/sites/all/themes/corolla/css/html-elements.css?m3m9ls");
@import url("http://vfb.jossgrund.net/sites/all/themes/corolla/css/forms.css?m3m9ls");
@import url("http://vfb.jossgrund.net/sites/all/themes/corolla/css/tables.css?m3m9ls");
@import url("http://vfb.jossgrund.net/sites/all/themes/corolla/css/page.css?m3m9ls");
@import url("http://vfb.jossgrund.net/sites/all/themes/corolla/css/articles.css?m3m9ls");
@import url("http://vfb.jossgrund.net/sites/all/themes/corolla/css/comments.css?m3m9ls");
@import url("http://vfb.jossgrund.net/sites/all/themes/corolla/css/fields.css?m3m9ls");
@import url("http://vfb.jossgrund.net/sites/all/themes/corolla/css/blocks.css?m3m9ls");
@import url("http://vfb.jossgrund.net/sites/all/themes/corolla/css/navigation.css?m3m9ls");
@import url("http://vfb.jossgrund.net/sites/all/themes/corolla/css/corolla.settings.style.css?m3m9ls");
@import url("http://vfb.jossgrund.net/sites/default/files/color/vfb_oberndorf_newstart-d080c394/colors.css?m3m9ls");
@import url("http://vfb.jossgrund.net/sites/all/themes/vfb_oberndorf_newstart/css/vfb_oberndorf_newstart.css?m3m9ls");
</style>
Comments
Comment #1
paolog commentedI have the same issue with drupal 7.12, corolla 7-x.2.2 and footheme
Comment #2
stefan.kornI found that is has something to do with the views cache. If I delete the table cache_views_data manually via phpmyAdmin it works until next reload.
To be more precise: If I delete all block_xx:output out of this table it works until next reload.
Comment #3
Jeff Burnz commentedYes, that is absolutly correct, I will try to track down another discussion I had about this, it was traced to Views and the block cache, and how it resets the weight on stylesheets, there is also an issue with Drupal core that compounds this problem.
There is a whole raft of issues to do with this, and other weight issues, tagging for a major review.
I'm not going to wait for core or Views to fix this, but fix this issue with a workaround myself.
Comment #4
stefan.kornOk, now I have found that if I set Cache to "None" in Views other options the problem is gone.
So it seems to be a views problem rather than a corolla issue.
Comment #5
Jeff Burnz commentedI can fix this by setting a big weight on certain stylesheets, it requires a new release of every theme I have made, which is why I stalled on this for a while waiting for Views, but since I know we can work around this, I will, although like I say, its going to force an update on everyone.
Comment #6
Jeff Burnz commentedI have committed a fix with a weight added so this should not happen.
Note that the bug is really in Adaptivetheme core, so you don't need to update Corolla, but rather update the core theme, either you can test the dev version (much appreciated, its very stable) or wait until I make a new release, which is will be around the 13th/14th this month (this Sunday or Monday).
You should see this issue also, this a further part the fixes that have gone into 7.x-2.x which will affect Corolla #1565778: Deprecate respond.js in IE8
Comment #7.0
(not verified) commentedadded code-tag