-
Notifications
You must be signed in to change notification settings - Fork 1
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
Refactor grid and flexbox layout components #1897
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…ng for small modifiers
sebnitu
force-pushed
the
next-add-grid-utility
branch
from
June 23, 2024 00:35
6538aa1
to
2fb827a
Compare
- place utility - gap utility
sebnitu
changed the title
Refactor grid and flex utility components
Refactor grid and flexbox layout components
Jun 23, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What changed?
This PR is a complete overhaul of Vrembem's layout components. It removes all previous components that were primarily used as their own layout components for two more generic all purpose Grid and Flex layout components along with some shared use utilities for gap, order, justify, align and place properties.
New components
@vrembem/grid
@vrembem/flex
New utilities
gap
justify
align
place
order
spacing
Component changes
Deprecated
@vrembem/grid
component which used flexbox and negative margins to achieve a column layout. This is now replaced with the grid layout basedgrid
component.@vrembem/level
component removed in favor of newflex
component.@vrembem/media
component removed in favor of newflex
component.flex
utilities. These have been incorporated into the newflex
component.gap
,gap-x
andgap-y
utilities have been refactored to control the gap property for grid and flexbox components. Newspacing
utility has been added as a replacement for vertical top margin spacing andgap-x
has been deprecated.Documentation improvements
demo.js
, a JS module for changing variant classes in code examples.<CodeExample>
.menu_size_sm
modifier to "On this page" menu.layout
status to package docs.headerAnchor
module to improve styles and use icon for hash.Fixes: #1895