-
Notifications
You must be signed in to change notification settings - Fork 4
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
Question: Use o-grid with nested o-box? #3
Comments
Is this repo still managed? |
@rowild, I'm sorry for the late reply! The notification got lost, but yes, the repo is still maintained. Im not on my computer at the moment so I'll take a look at your question tomorrow (assuming it's still relevant) :) |
@nicoqh Thanks for the feedback! It is not urgent, but still something I would love to know. Maybe even in general, since v7 is coming and use cases are most welcome! |
@nicoqh Would still love to hear your opinion on this topic! I am really confused with the way |
Adding a background color on the cell itself is problematic because cells use padding to create gutters. This means that the whole cell element (including the padding) is filled with the color. One possible solution: Create a new class:
This will make sure that the background color doesn't apply to the padding. Then, add a background color to the cell, and use the above class:
(By the way: You don't need I'd love a cleaner solution, but I don't have any ideas at the moment. You could visit the unofficial inuitcss Slack and ask for help. I know herzinger uses this library, and I wouldn't be surprised if he had some input. If you do that, please keep this thread alive :) |
@rowild Any further thoughts? :) |
@nicoqh I must have overseen your response from January - sorry for that! And a late thank you!!! I need to have a look at
A lot of wrapping, and it still needs handling on the opposite left/right border sites (and those in the middle, if there are more than 2 columns), so not the best solution. But I at least learned that there is no way around the "100%-height-assignment". But maybe it would be better to be solved such issues with css-grid instead of flex - what do you think? Thanks again for your precious feedback! And sorry for my delay! |
I realize this is old, but I came across this issue looking for something else, and I have something to add: |
Hi, nico,
I would like to use your library in a project, but would need your advice. I am not sure if this is the proper place to ask - if not, please redirect me - thanks!
My question:
How do I add padding to an ".o-grid__cell"? Usually I used ".o-box", but this one would currently override the
display:flex
(o-grid) todisplay:block
(o-box) and therefore mess with the flex grid.If I define a similar class - like
.o-gridbox
with only the padding, but no display attribute defined - I could manage the padding, but I do not know how to make resulting columns equal height.Currently I have this:
With these additional classes:
The right box should cover the whole height ("stretch"?), but does not do so. I realize that it could be done by adding
height: 100%;
to.o-gridbox
, but isn't that somethingstretch
should do anyway?I added a screenshot.
Would love to read you advices, thoughts and hints! Thanks!
The text was updated successfully, but these errors were encountered: