Replies: 1 comment
-
Just a follow up to this another usefull simple grid change is.... grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) Note its helpful to remove the bottom margin from the items in the grid |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I know officially Pico documentation reads
I would like to propose the following tiny addition to Pico which provides probably 99% of the use cases for grid type layouts without "all the ordering, offsetting, and breakpoints utilities" were trying to avoid.
The issues I had with the current implementation is that each row needs a new div and its very cumbersome when generating repeating blocks. Additionally many layouts need some variation of grid columns...
Here is a demo link.
I would love to know your thoughts. Since I dont want to recompile Pico I use them as a second class like this:
<div class="grid grid-4">...</div>
but certainly we can eliminate the need for the firstgrid
class if that makes more sense.Can make a PR if the community is interested. @lucaslarroche :)
Beta Was this translation helpful? Give feedback.
All reactions