Financial-Times / o-grid

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

Changing `respondTo` mixin to apply styles for legacy layouts #17

Closed wheresrhys closed 10 years ago

wheresrhys commented 10 years ago

At the moment any responsive large screen styles (e.g. font size) applied using the oGridRespondTo() mixin aren't getting applied automatically to the large screen layout used by ie7/8. They can of course be manually written in by the developer, but I think oGridRespondTo() should be more sympathetic and do something like

if (requestedBreakpoint == the layout forced in legacy browsers) { 
    write out the style prefixed by the legacy selector too
}

(possibly have this as the default, but disablable by passing a second parameter)

wheresrhys commented 10 years ago

Ready for release