Closed (works as designed)
Project:
Panels
Version:
7.x-3.x-dev
Component:
Plugins - layouts
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 Jun 2012 at 21:29 UTC
Updated:
6 Jun 2012 at 21:45 UTC
CSS file added as module CSS, should be theme CSS for custom layouts in theme
Comments
Comment #1
henrijs.seso commentedCase - layout plugin css file in theme needs to override base theme css file. Base theme css file has group 100 (theme css group), layout css file has group 0 (module css group).
Maybe check to
add_meta()should be added along the (ugly) lines ofWorkaround for now seems to be this even uglier code
Comment #2
merlinofchaos commentedWhy would a module ever add a CSS file in the theme group? I'm not following.
Comment #3
henrijs.seso commentedModule - never, but custom layout css in theme may want to override some other theme css. For example, there is css file in theme that says link color is red and there is css file in custom layout that says, in this layout link color is green.
Then again, this proposal is not very good. There is no way for themer/sitebuilder to change css order of all files from theme and from custom layouts anyway.
Adding 'css group' to plugin array could be an option, but it is probably not worth it, as this is edge case and still will not allow to order all css files in theme.