Closed (outdated)
Project:
Panels
Version:
7.x-3.x-dev
Component:
Plugins - layouts
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
10 Jun 2011 at 13:24 UTC
Updated:
14 Jul 2026 at 01:08 UTC
Jump to comment: Most recent
Comments
Comment #1
merlinofchaos commentedOh that's an interesting question. Drupal 7 has the ability to make stylesheets conditional where Drupal 6 did not, but layouts have not yet been updated to handle this kind of functionality.
The simplest way to get this would be to add your stylesheets during the preprocess for your layout's template. But it sure would be nice if we could have it directly in the layout's .inc file.
Changing to feature request. This needs some research but theoretically should not be hard.
Comment #2
mustanggb commentedFantastic!
I shall use preprocess for now, but as you said, it would be nice if these could be handled.
As this would then keep relevant "code" all in one place.
EDIT:
For anyone interested here is the preprocess code I added.
Comment #3
gmclelland commentedI think this could be a handy feature especially now that SASS based CSS grid frameworks have the capability to export media query specific ie only stylesheets. For example, you don't want to include IE6-IE7 media query styles in your standard stylesheets to reduce the page weight.
If interested here are some SASS libraries/frameworks that can do this:
https://github.com/canarymason/breakpoint see https://github.com/canarymason/breakpoint#no-query-fallback
http://susy.oddbird.net/ http://susy.oddbird.net/guides/reference/#ref-compass-options
http://zengrids.com/ http://zengrids.com/help/#vars-legacy
Comment #4
japerryDrupal 7 is no longer supported, closing.