Closed richard-still-ft closed 10 years ago
It seems you can only override other max widths when you set o-grid-is-fluid to false. Is that the expected behaviour @wheresrhys ?
Definitely not expected behaviour. I do recall playing around with max-width implementation to fix some bug in some version of ie, so that might be the origin of that bug.
It was added here: https://github.com/Financial-Times/o-grid/commit/351f1cd3eaf531277f1118a96e536d2997e481f2 Supposedly to support a completely fluid grid. Could you explain what the behaviour should be and why please? Thanks :)
That's a very early commit so it's probably never worked properly. I think it should be something like this
@if ($maxWidth) {
.#{$gridRow} {
@if ($isFluid) {
max-width: $maxWidth;
} else {
width: $maxWidth
}
}
}
The documentation states "By overwriting the values of any of the $...width, $...break or $...gutter variables the width and spacing of the grid at any of the layout sizes can be decreased or increased as required"
But only
$o-grid-extra-large-max-width
has any affect, all of the other sizes actually havemax-width: none
set, so override the variables has no effect.