Skip to content

Instantly share code, notes, and snippets.

@techforum-repo
Created December 30, 2020 16:16
Show Gist options
  • Save techforum-repo/3c794a1900144ad02d7f96210be95d20 to your computer and use it in GitHub Desktop.
Save techforum-repo/3c794a1900144ad02d7f96210be95d20 to your computer and use it in GitHub Desktop.
@import (once) "/libs/wcm/foundation/clientlibs/grid/grid_base.less";
/* maximum amount of grid cells to be provided */
@max_col: 12;
/* default breakpoint */
.aem-Grid {
.generate-grid(default, @max_col);
}
/* Extra Small */
@media (max-width: 360px) {
.aem-Grid {
.generate-grid(xsmall, @max_col);
}
}
/* Small */
@media (min-width: 361px) and (max-width: 480px) {
.aem-Grid {
.generate-grid(small, @max_col);
}
}
/* Medium */
@media (min-width: 481px) and (max-width: 770px) {
.aem-Grid {
.generate-grid(medium, @max_col);
}
}
/* Large */
@media (min-width: 771px) and (max-width: 992px) {
.aem-Grid {
.generate-grid(large, @max_col);
}
}
/* Extra Large */
@media (min-width: 993px) and (max-width: 1200px) {
.aem-Grid {
.generate-grid(xlarge, @max_col);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment