Given that the 960 grid is not really useful in any but screen use (e.g., no use for print or handhelds), it could be helpful to narrow the media targeting of the theme.

(Tagged for 7 as the new frontier, but would be helpful in 6 too.)

What do you think?

Thx.

Comments

kabarca’s picture

You can do that by replacing the media type. Include the following code in the "template.php" of your theme folder

$vars['styles'] = str_replace('media="all"','media="screen"',drupal_get_css($vars['css_alt']));

That is not a Ninesixty issue, it should be specified by Drupal whether this is media, print, etc.

laura s’s picture

This is a feature request, so I'm open to discussion and even push-back on the value of this. However, I'm not sure why this would not be a NineSixty issue. Themes are developed for a purpose, and stylesheets within a theme all the more so. (reset.css could apply to all, but layout.css in a theme might apply only to screens [and further focused on screens greater than a certain resolution]).

A generic base theme that might be for any and all media might use "all" but ninesixty strikes me as a theme really for desktop screens more than anything else, especially the basic grid settings. It certainly isn't much for print (and handhelds have their own issues way beyond this theme). See http://www.alistapart.com/articles/progressiveenhancementwithcss/ for thoughts on one approach for how stylesheets can be appropriately targeted to purpose and http://www.alistapart.com/articles/responsive-web-design/ for the benefits of responsive design.

I have not tested using template.php to rewrite parent theme strings, but it seems to me that globally replacing "all" in a string replace is a blunt kludge to address this.

That is not a Ninesixty issue, it should be specified by Drupal whether this is media, print, etc.

If there's an issue to have Drupal core designate @media for each theme, please point to it. That would be an interesting approach.