-
Notifications
You must be signed in to change notification settings - Fork 42
Section Container Types in Astroid Framework
Hitesh Aggarwal edited this page Dec 6, 2019
·
1 revision
Astroid Framework grid system is typically based on Bootstrap 4, And it provides all type of containers options that Bootstrap 4 have. Below is the list of different types of containers.
- Container Fluid - to make a full width container
- Container Fluid with No gutters - to make a full width container without gutter space
- Container - to make a fixed width (Bootstrap default) container
- Container with No gutters - to make a fixed width (Bootstrap default) container without gutter space
- Without Container - to skip container div
- Custom Container - to use a custom container class
Section's Custom Container option provides ability to use your pre-made custom container class.
For example if you have a custom container class named my-custom-container
then you just need to choose custom container option and add my-custom-container
class into Layout Custom Class option.
In order to create a new custom container you need to add following code into your template's scss code, And specify your container widths for different breakpoints. After that you can use your custom container class in Layout Custom Class Option.
$custom-container-max-widths: (
sm: 540px,
md: 720px,
lg: 960px,
xl: 1140px
) !default;
@include _assert-ascending($custom-container-max-widths, "$custom-container-max-widths");
$custom-grid-breakpoints: (
xs: 0,
sm: 576px,
md: 768px,
lg: 992px,
xl: 1200px
) !default;
@include _assert-ascending($custom-grid-breakpoints, "$custom-grid-breakpoints");
@include _assert-starts-at-zero($custom-grid-breakpoints, "$custom-grid-breakpoints");
.my-custom-container {
@include make-container-max-widths($container-max-widths, $custom-grid-breakpoints);
}