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 flex-gap and gap modules #370

Merged
merged 32 commits into from
Sep 4, 2020
Merged

Add new flex-gap and gap modules #370

merged 32 commits into from
Sep 4, 2020

Conversation

sebnitu
Copy link
Owner

@sebnitu sebnitu commented Sep 3, 2020

Problem

There's a commonly used gap pattern that could be extracted into a reusable module.

Solution

This PR adds the flex-gap and gap modules for handling spacing between children elements of a component, similar to the Flebox gap property. Flex components have been refactored to remove redundant styles and allow these new modules to handle their gap styles.

New mixin

  • @vrembem/coreflex-gap()
  • @vrembem/coregap()

New Utilities:

  • flex-gap-[key]
  • flex-gap-x-[key]
  • flex-gap-y-[key]
  • gap-y-[key]
  • gap-y-[key]

Deprecated module:

  • spacing - now being handled by gap-y

@sebnitu sebnitu force-pushed the add-gap-module branch 4 times, most recently from a23dc58 to 08dd65c Compare September 3, 2020 22:16
@sebnitu sebnitu marked this pull request as ready for review September 4, 2020 23:07
@sebnitu sebnitu changed the title Add gap module Add new flex-gap and gap modules Sep 4, 2020
@sebnitu sebnitu merged commit 657a9c6 into master Sep 4, 2020
@sebnitu sebnitu deleted the add-gap-module branch September 4, 2020 23:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant