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

Flexbox API #116

Open
HugoGranstrom opened this issue Jul 13, 2022 · 1 comment
Open

Flexbox API #116

HugoGranstrom opened this issue Jul 13, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@HugoGranstrom
Copy link
Collaborator

This is an idea I got when exploring how to align things in nimiSlides (HugoGranstrom/nimiSlides#8), what if nimib could support a convenient flexbox API so different layouts easily could be created with a DSL. I don't have any specific ideas for how to do this at the moment, just wanted to make sure I didn't forget about this. It was ages since I used flexbox but I imagine the API looking something like this:

nbFlexColumn:
  nbImage(...)
  nbImage(...)
nbColumnWrap:
  nbText: "Image description"
  nbImage(...) # if both text and image won't fit wrap to next row

I might be underestimating the complexity of flexbox though 😅

@pietroppeter
Copy link
Owner

like the idea in general. I think it will require the block as container, which I just sketched in #117

@pietroppeter pietroppeter added the enhancement New feature or request label Jul 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants