This project looks awesome. Out of curiosity, is there ay way of implementing media queries in the same way that this module detects useragent?

Comments

nicholas.alipaz’s picture

From my understand of media queries as CSS conditions I am not so sure how you are proposing usage of them in a similar fashion. Could you explain how you would expect it to work?

pixelsweatshop’s picture

Sorry. I should have explained myself a bit better. In responsive theming it is challenging to be able to display blocks, regions etc depending on the viewport of the user's device. Probably one of the biggest cons to responsive theming. There are some ways of doing it-From using css display:none (This removes it from view, but still devices have to load it) to hard to implement javascript. My thought on this is that context is already set up for most of this. The only thing it's missing is the ability to do media queries. Useragent detection could work in this case. However, in the situation of say IPad moving from portrait to landcsape, I may want to add a block. This is where media query would come in. While the device moves to landscape, context loads the block. I hope this clarifies it a bit. :)

nicholas.alipaz’s picture

From my understanding, aren't media queries only effective from the stylesheet (css)? I mean I am not sure how these queries could have any effect on something that occurs server side. Correct me if I am wrong. So not sure how you could do anything with this other than just outputting alternative stylesheet links or css.

nicholas.alipaz’s picture

Status: Active » Closed (won't fix)