All Projects → mrmartineau → Choreographic-Grid

mrmartineau / Choreographic-Grid

Licence: other
Not ready for prime-time yet, but I hope this could help solve lots of responsive content choreography problems

Programming Languages

CSS
56736 projects
javascript
184084 projects - #8 most used programming language

Choreographic Grid

Development update

Development has halted on this repository now. If you still want to use the grid, please have a look at Kickoff's grid as it is based on the Choreographic Grid.


A CSS grid for content interdigitation

After having read Trent Walton's article on Content Choreography & working on a number of responsive sites, I felt that the current group of CSS grids was lacking in this department - so I created my own.

It is definitely a work in progress & there are still features I would like to add but I thought I should get a sense check from you guys to see if its worth pursuing.

As well as the usual grid, centred columns, source ordering & offsetting, I have added two features: Shunting & Splitting.

Shunts (demo link)

Shunts are, typically, small columns on the end of a row that 'shunt' down to their own row when the viewport dimensions are reduced. The other columns in that row can then be resized to fill the leftover space from the shunted column.

Splits (demo link)

Splits are columns that sit beside each other on wider viewports but when the viewport dimensions are reduced, they stack on top of each other. This might seem like 'normal' responsive grid behaviour but the rest of the grid is still enforced (for want of a better word).

Both these things allow the layout to adapt in a more natural way, that traditionally has not been available to us.

By the way, Splits can be shunted too.

I should caveat this by saying that there is lots more work to be done, I have repeated some code in different media-queries which I don't want to do - I have big plans for this grid. I'm also not using CSS that only works in Chrome Canary, you can use this today if you wanted to.

One feature that I would like to implement is to automatically name each media-query. I want to use javascript to find all the breakpoints & then store them in an array, then add a class to the body tag so I can change layout depending on how wide the viewport is. I like the idea of naming media-queries so I will explore the possibilities in the coming weeks.

If anyone has any thoughts, ideas or suggestions I would really appreciate it. Please fork it too

Demo site - http://mrmartineau.github.com/Choreographic-Grid/test.html

All features on one page - http://mrmartineau.github.com/Choreographic-Grid/index.html

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].