Closed kaelig closed 9 years ago
Two things:
@content
block;map-deep-merge
function to override layouts without having to redefine the configuration map as a whole.oGridSet((columns: 16))
should override the columns only, no?
And for now I think we could get away with a "oGridAddLayout" mixin instead of having a fully fledged map-deep-merge
function.
oGridSet((columns: 16)) should override the columns only, no?
True, my bad. Although you could have something like this:
@mixin oGridSetContext($settings) {
$tmp: $o-grid-default-config;
@include oGridSet($settings);
@content;
@include oGridSet($tmp);
}
And for now I think we could get away with a "oGridAddLayout" mixin instead of having a fully fledged map-deep-merge function.
Might work.
Good point, having a grid inside a grid isn't a use case yet but I'll keep that in mind.
And thanks for your (always) valuable comments!
@kaelig Don't we have grids inside other grids in a lot of places or do you mean something else?
@AlbertoElias: as far as I know we don't have a 8 or a 16 col grid inside the default 12 col grid, do we?
@kaelig Oh no, I meant a 12 col grid inside another 12 col grid
Yes one can nest columns / rows as needed. But nesting a grid system inside a different grid system hasn't been a use case.
Thanks for your feedback.
The current configuration (using many variables) is more widely spread and didn't come in the way of development when building the v3.0 of o-grid. Closing this.
User sets their own configuration through
$o-grid-user-config
.Large Sass frameworks do that and I think that's a pretty good way of simplifying configuration compared to the amount of scrolling required to go through all of _variables.scss.
Any thoughts?
Thanks to @HugoGiraudel for the inspiration.