Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new utilities for grid-auto-columns and grid-auto-rows #2531

Merged
merged 3 commits into from
Oct 9, 2020

Conversation

adamwathan
Copy link
Member

This PR adds a new set of utilities for the grid-auto-columns and grid-auto-rows properties:

Class CSS
auto-cols-auto grid-auto-columns: auto
auto-cols-max grid-auto-columns: max-content
auto-cols-min grid-auto-columns: min-content
auto-cols-fr grid-auto-columns: minmax(0, 1fr)
auto-rows-auto grid-auto-rows: auto
auto-rows-max grid-auto-rows: max-content
auto-rows-min grid-auto-rows: min-content
auto-rows-fr grid-auto-rows: minmax(0, 1fr)

These are configurable under the gridAutoColumns and gridAutoRows keys respectively. Only responsive variants are generated by default.

@adamwathan adamwathan changed the title Auto cols rows Add new utilities for grid-auto-columns and grid-auto-rows Oct 9, 2020
@YurySolovyov
Copy link

@adamwathan any chance for something like

grid-cols-2-minmax-content

to produce

grid-template-columns: repeat(2, minmax(min-content, max-content));

useful for data tables

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants