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

Layout units - horizontal and vertical. #402

Closed
wants to merge 2 commits into from

Conversation

rasben
Copy link
Contributor

@rasben rasben commented Dec 19, 2023

After a discussion today, we agreed to introduce layout unit components. These units are used for centering stuff, and adding padding, and for adding spacing between individual elements.
The idea is that this is done using markup wrappers, but I've also made them so they can be used by individual components using placeholders.

After a discussion today, we agreed to introduce layout unit components.
These units are used for centering stuff, and adding padding, and for
adding spacing between individual elements.
The idea is that this is done using markup wrappers, but I've also
made them so they can be used by individual components using placeholders.
@rasben rasben marked this pull request as ready for review December 19, 2023 12:33
I added this as a seperate file 'cause of short time.
Look over it and see what you think. I think this is modular enough to be used for what we have and expanded upon later with __background modifications etc.

Hopefully it makes sense, sorry for no thorough explanation.

Look at top comment of the file, and see example at the bottom.
@rasben rasben assigned rasben and LasseStaus and unassigned rasben Jan 4, 2024
@kasperbirch1
Copy link
Contributor

kasperbirch1 commented Jan 4, 2024

I don't have much experience with "layout" CSS classes, so it's difficult for me to determine what works best.

@LasseStaus is there a .layout__horizontal-spacing missing in your commit, or is it because it's an example?

I think Lasse's naming is the best. But let's talk about it tomorrow.

@kasperg kasperg changed the base branch from release/2024-2-0 to release/2024-4-0 January 9, 2024 12:48
@rasben rasben closed this Jan 9, 2024
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.

3 participants