Closed markconroy closed 6 months ago
BHCC has a few extensions to the lgd grid system, using classes m:lgd-row__one-quarter
l:lgd-row__one-quarter
etc.
Thanks @andybroomfield, I think the approach I have is a little less sophisticated, but will cover most of our use cases, and should be easy to add to like in your examples above. I'll post a PR in a few minutes.
My hope later would be to deprecated the .lgd-row
grid system we have (which uses flex
) and move towards a newer system (which uses grid
).
it would be handy to be able to drop css classes into our views for such as
view--grid-thirds
and let that automatically layout items in one column on mobile, 2 columns on tablet, and 3 columns on large screens.Classes to include:
view--grid-fifths
As well as that, can can specify the gap with with the following classes:
We might be able to extend our current
lgd-row
type system for this purpose.While this will not suffice every layout for every view, I reckon it will suffice for 90% of them. Then we can easily drop the classes into the views CSS field.