-
Notifications
You must be signed in to change notification settings - Fork 145
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
Incorrect working grid-* with fixed cols #29
Comments
|
@bryanwillis |
@ixrock Yea that's what I thought you meant. Seems like a great idea. I forked your gist and added an explanation of how it currently works if you want to look at that to make sure we're on the same page here. http://codepen.io/bootstrapped/pen/KgZvyW?editors=1100 I'm wondering if there's a reason it doesn't work like this or if maybe no thought to do that. We should also check that it doesn't affect nested "grid col-*" |
Tested it with |
I think another problem is overly complex naming conventions. This issue obviously shows that there is confusion with the current functionality. But also the suggested implementation can quickly get complicated as well. Take this example. <div class="grid-6">
<div class="col-2 grid">
<div class="col-6">
How should this work?
</div>
<div class="col-6 grid">
<div class="col-2"></div>
<div class="col-8 grid">
<div class="col-6"></div>
<div class="col-6"></div>
<div class="col-4"></div>
<div class="col-4"></div>
<div class="col-4"> </div>
</div>
</div>
</div> The nested column wouldn't work as expected based on @ixrock example. We could try changing: .grid-6 .col-2 { to: .grid-6 > .col-2 { I haven't tested it though. My guess is that it's still going to be complicated. For example grid can be used so many ways currently. <div class="grid-6">
<div class="col-2">
<div class="col-8 grid">
<div class="col-4">
<div class="grid">
</div>
</div>
</div>
<div class="col-2 grid">
<div class="col-8">
<div class="col-4">
<div class="grid-3">
</div>
</div>
...... Obviously this example is overkill, and probably wouldn't actually be used, but it's just to show that adding even more logic to the already complex nature of |
https://vgy.me/rWpEYG.png |
Putting a load of |
Expectation:
.grid-6 > .col-2
= 2/6 = 1/3 = 100% / 3Reality:
.grid-6 > .col-2
= 2/12 = 1/6It seems like only one 12-columns grid supported?
The text was updated successfully, but these errors were encountered: