Financial-Times / o-grid

Responsive grid system
http://registry.origami.ft.com/components/o-grid
94 stars 17 forks source link

Mobile first #4

Closed wheresrhys closed 10 years ago

wheresrhys commented 10 years ago

Your read me says: "In general prefer to set the default for larger layouts and override for smaller ones as this means your module will probably display better if the grid is ever updated to allow additional larger layouts". That's a desktop-first way of thinking about it, so I'm cautious of that. Can we confirm that in UAs that do not support media queries, the cols do not get floated? @triblondon

wheresrhys commented 10 years ago

For small screens even if media queries aren't supported the layout will favour any width specified using -s{n} (/docs/grid-default.html demonstrates this in one or two examples near the bottom), and defining larger layouts as the default doesn't (i'm fairly sure of this) add any extra overhead for mobile. I'm not wedded to the recommendation but I think it would (very slightly) improve reusability and future-proofing of the modules

triblondon commented 10 years ago

OK