Skip to content

Conversation

@magicspon
Copy link
Contributor

updated:

..._.map(gaps, (size, name) => {
  const gridGap = name.endsWith('-y')
    ? 'gridRowGap'
    : name.endsWith('-x')
    ? 'gridColumnGap'
    : 'gridGap'

  return {
    [`.${e(`grid-gap-${name}`)}`]: { [gridGap]: size }
  }
})

@chrisrowe chrisrowe merged commit 7d37635 into chrisrowe:master Jan 14, 2019
@chrisrowe
Copy link
Owner

@magicspon Thanks! Published to npm https://www.npmjs.com/package/tailwindcss-grid/v/1.2.0

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