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

CSS Grid #30

Open
jondashkyle opened this issue May 15, 2018 · 0 comments
Open

CSS Grid #30

jondashkyle opened this issue May 15, 2018 · 0 comments

Comments

@jondashkyle
Copy link
Contributor

When using gr8 to scaffold out grid layouts I use the provided column (cX) utilities and flexbox. Recently CSS grid has been seeing some action, and has been implemented widely within the big three browsers. So this raises the question; what could gr8 utilities for grid look like?

There are a few properties associated with grid which could be implemented:

  • display: grid
  • grid-row
  • grid-column
  • grid-template-rows
  • grid-template-columns
  • grid-gap
  • grid-row-gap
  • grid-column-gap

The values for this get somewhat complex, as the grid spec is the first widely implemented use of css functions, such as:

  • repeat()
  • minmax()
  • fitcontent()

These enable you to assign values such as grid-template-columns: repeat(3, 1fr).

It seems obvious we could simply implement the existing 12 column grid as default as a starting point, and consider how some of these more complex values could be introduced down the line.

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

No branches or pull requests

1 participant