Problem/Motivation
If Zen doesn't provide responsive layouts CSS, it will become a relic of the past. All websites will become some form of responsive. So providing only fixed layouts is folly.
">Andy Clarke posted recently:
Today, anything that’s fixed and unresponsive isn’t web design, it’s something else. If you don’t embrace the inherent fluidity of the web, you’re not a web designer, you’re something else.
Web design is responsive design, Responsive Web Design is web design, done right.
Proposed resolution
Add a responsive layout to Zen and make it the default layout. Use the Zen Grids mixins so that it is easy for sub-theme authors to create their own responsive layout. http://zengrids.com
Remaining tasks
- Release Zen Grids 1.0 over at https://github.com/JohnAlbin/compass-zen-grids
- Add an example responsive layout with media queries to Zen
- Convert the old fixed width layouts to use Zen Grids too (since its way easier than the raw CSS.)
- Ensure the Zen base theme settings has a layout switcher (to be used only by the base theme) so people testing Zen can see the possible layouts.
Original report by n8tron
I've turned Zen's layout-fixed.css into simple responsive layout starter project. This needs work... This was proportioned off of a 1024 canvas.
Fluid grids, flexible images, and media queries are the three technical ingredients for responsive web design
Comments
Comment #1
n8tronComment #2
n8tronMaybe a starting point.
Comment #3
johnalbinComment #4
KrisBulman commentedafter reading @beep's book, I am very interested in seeing this come into play. Hope to see some interest in this.. mix it up with Sass and we have gold.
Comment #5
johnalbinJust closed a duplicate issue. See #1249838: Add responsive layouts to Zen
I said:
And Kris Bulman replied:
Comment #6
jorisx commentedyes would be nice to see some responsive zen, http://nerd.vasilis.nl/adaptive/zengarden.html haha :)
But for real, where to start with zen and responsive css layout design?
guess I would like 3 column layout on a monitor, a 2column on a tablet(horizontal) and an 1 column-layout on a tablet(vertical) and phone..
Comment #7
KrisBulman commentedI think many projects will require a fixed responsive layout of a few set widths over a completely fluid approach which requires an extreme amount of development time.. Chris Eppstein's grid demos the fixed width responsive approach..
demo here:
http://style.caring.com/layouts/two-col-right
documentation here:
http://chriseppstein.github.com/blog/2011/08/21/responsive-layouts-with-...
This example supports 3 widths, but can be adapted to support more.
desktop (which doubles as tablet-landscape)
handheld-landscape
handheld-portrait
There are grids such as semantic.gs, which support both fluid and fixed layout options, which could be used instead of his pixel only approach, but I think the idea he demos is the right idea and gives lots of options.
Comment #8
johnalbinI've added the Zen Grids mixins to 7.x-5.x. http://zengrids.com/
We (at Palantir) are stress-testing it on a project right now and figuring out to improve it. But we're almost done. Already up to Zen Grids 1.0.beta.5. I've got some tutorials planned, but the reference docs are mostly up-to-date. http://zengrids.com/help/
Comment #9
johnalbinI've added Zen Grids 1.0.rc.2 to Zen.
This is the final issue before a Zen
7.x-1.0-beta17.x-5.0-beta1 release. I'm going to use the same responsive layout design that we added to Stark in Drupal 8 last week (but using Zen Grids instead of raw CSS.)Comment #10
anniegreens commentedShould this be 7.x-5.0-beta1?
Comment #11
anniegreens commentedAlso, I wanted to request that
gem install zen-grids --prebe in the documentation in the 7.x-5.x-dev branch until Zen Grids 1.0 is released. The
--preis key, since RubyGems cannot find a valid gem called 'zen-grids'.Comment #12
johnalbinSlight complication when implementing this. See #1524228: Turn off IE6/7 support by default for 7.x-5.0-beta1 (and later)
Fixed! http://drupalcode.org/project/zen.git/commitdiff/ca4bbcd
Comment #13.0
(not verified) commentedAdd issue summary