Closed CassidyB closed 9 years ago
Yeah. 3.0.0 adds a breakpoint for large columns. https://github.com/Esri/calcite-web/releases/tag/v0.3.0
There are several reasons for this:
The only thing that constraining the container does for you is to keep line length from getting too long so content stays readable. In the new grid, we handle this much the same as we handle columns for tablet and phone sizes where at the extra-large size we just increase the number of columns in the grid. We could also add a set of classes that constrain a column of text to a certain max-width fairly easily.
To accomplish the centered layout, you can just add a large-pre-X
class to center it.
@paulcpederson Thank you sir!
@paulcpederson Are you saying setting container width is an arbitrary practice and you suggest to ditch constraining the container and let it take full width?
@longebane yes. Not arbitrary, per se, but the main goal of having a constraining container is so that line-length doesn't get too long (bad for readability).
The grid used to work with a container, so that there was only ever a fixed number of columns per breakpoint and after the max, the container was just centered:
Now, we just give you more columns after a certain screen size:
If you want to center, adding large-pre-x
will enable you to still center the column of text if that is the design you want:
This fixes problems we have with a constrained nav and a fullscreen interface, like the geotrigger editor inside of the developers site:
Ok, makes sense. I'll leave it uncentered then, unless @CassidyB has something to say about that.
Yeah, I think moving to a more fullscreen, left-aligned layout is very modern and works well with our typography and brand, but it's very subjective. We mostly changed the grid so we would be able to handle both types of layout (centered vs full).
Fix width: Full Screen: