-
-
Notifications
You must be signed in to change notification settings - Fork 79k
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
Arbitrary grids and nesting #13959
Comments
I agree it is. I did a poor job on searching in issues obviously. Still, I do not see the reasons why not to add more flexibility to grids. At the moment we are restricted to uniform grids and nesting is kind of a hack ("take two six-module-columns to split column in half"). |
Yes, as I said in #13428, I'm personally in favor of the idea, and mdo said he would entertain a PR for it. |
I made a PR. Is there a more evident way to attach that PR to this issue? |
See comments in the PR. |
A feature to generate different grids on a single page.
Demo.
I modified mixins for generating columns to accept total amount of columns as an optional parameter. Here is one of the mixins:
It uses a global
@grid-columns
as a default amount of columns, so the framework doesn't break. In the demo above I didn't modify any of the variables and default grid classes work fine.Check a
.less
file used in the demo.I could make a PR to both LESS and SASS repositories if this feature would be useful for anyone else.
The text was updated successfully, but these errors were encountered: