File includes mixins which help using flex features in easiest way
Mixin which helps to add display: flex;
property to the class,
alternatively set flex-direction
, align-items
, justify-content
and flex-wrap
properties.
$direction
- defines the direction of items in the flex container$cross
- defines how flex items are laid out along the cross axis$main
- defines the alignment along the main axis$wrap
- defines how flex items will wrap onto multiple lines
Assign property display: flex;
to the class without any extra properties.
.exampleFlex {
@include flex();
}
Assign display: flex
property to the class and define the direction of items in the flex container.
.exampleFlex {
@include flex($direction: column);
}
Assign display: flex
property to the class and define how flex items are laid out along the cross axis.
.exampleFlex {
@include flex($align-items: flex-end);
}
Assign display: flex
property to the class and defines alignment of flex items along the main axis.
.exampleFlex {
@include flex($main: space-between);
}
Assign display: flex
property to the class and wrap flex items onto multiple lines.
.exampleFlex {
@include flex($wrap: wrap);
}
Mixin which helps to add display: inline-flex;
property to the class,
alternatively set flex-direction
, align-items
, justify-content
and flex-wrap
properties.
$direction
- defines the direction of items in the flex container$cross
- defines how flex items are laid out along the cross axis$main
- defines the alignment along the main axis$wrap
- defines how flex items will wrap onto multiple lines
Assign property display: inline-flex;
to the class without any extra properties.
.exampleFlex {
@include flex;
}
Assign display: inline-flex
property to the class and define the direction of items in the flex container.
.exampleFlex {
@include flex($direction: column);
}
Assign display: inline-flex
property to the class and define how flex items are laid out along the cross axis.
.exampleFlex {
@include flex($align-items: flex-end);
}
Assign display: inline-flex
property to the class and defines alignment of flex items along the main axis.
.exampleFlex {
@include flex($main: space-between);
}
Assign display: inline-flex
property to the class and wrap flex items onto multiple lines.
.exampleFlex {
@include flex($wrap: wrap);
}
Helper mixin which helps to create flex
and inline-flex
mixins
$display
- defines type of flex element$direction
- defines the direction of items in the flex container$cross
- defines how flex items are laid out along the cross axis$main
- defines the alignment along the main axis$wrap
- defines how flex items will wrap onto multiple lines