File includes breakpoint viewport sizes and media queries.
Default variables which are required in mixins located in file. They are set with most common values.
$grid-columns: 12 !default;
$grid-fluid: false !default;
$grid-gutter-widths: (
down sm: 40px,
up sm: 30px,
) !default;
$container-max-widths: (
sm: 540px,
md: 720px,
lg: 960px,
xl: 1140px
) !default;
Mixin for setting auto left and right margins
Setting child element centered relatively to parent element
.exampleParentClass {
.exampleChildClass {
@include center();
}
}
Mixin which helps with proper displaying container with flex property and 100% width.
$fluid
- variable which indicates if container should be fluid (default$grid-fluid
)$gutter
- object with width of gutters for different resolutions (default$grid-gutter-widths
)$max-widths
- object with max width of container for different resolutions (default$container-max-widths
)
Assigned grid container with gutters
.exampleContainerClass {
@include container();
}
Assigned fluid grid container.
.exampleContainerClass {
@include container(true);
}
Assigned grid container without gutters.
.exampleContainerClass {
@include container(true, $gutter: false);
}
Mixin which helps to create columns with their size, gutters, offset and alignment.
$size
- variable which define size of each column (default12
)$columns
- variable which define number of columns (default12
)$gutter-widths
- variable which define width of each gutter (default values for each breakpoints defined in$grid-gutter-widths
)$offset
- variable which define size of offset (default0
)$align
- variable which define alignment of columns (defaultauto
)
Define styles for block that used 12 column out of the possible default 12 per container.
.exampleColumn {
@include col();
}
Define styles for block that used 3 column out of the possible default 12 per container.
.exampleColumn {
@include col(3);
}
Define styles for block that used 2 column out of the possible 5 per container.
.exampleColumn {
@include col(2, 5);
}
Define styles for block that used 2 column out of the possible 12 and set 5 columns offset.
.exampleColumn {
@include col(2, $offset: 5);
}
Define styles for block that used 2 column out of the possible 12 and align it to the center of the container.
.exampleColumn {
@include col(2, $align: center);
}