The grid system allows to have different amounts of columns based on the breakpoint definition. Additionally hide and linebreak may be activated for certain cells in certain breakpoints. Resize the window to see how grid cells behave on the different breakpoints.
<div class="aem-Grid aem-Grid--12">
<div class="aem-GridColumn aem-GridColumn--default--4"></div>
<div class="aem-GridColumn aem-GridColumn--default--4"></div>
<div class="aem-GridColumn aem-GridColumn--default--4"></div>
</div>
@import (once) "grid_base.less";
@max_col: 12; /* maximum amount of grid cells */
/* default breakpoint */
.aem-Grid {
.generate-grid(default, @max_col);
}
/* phone breakpoint */
@media (max-width: 768px) {
.aem-Grid {
.generate-grid(phone, @max_col);
}
}
/* tablet breakpoint */
@media (min-width: 769px) and (max-width: 1200px) {
.aem-Grid {
.generate-grid(tablet, @max_col);
}
}