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$align
- defines how flex items are laid out along the cross axis$justify
- 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: flex-end);
}
Assign display: flex
property to the class and defines alignment of flex items along the main axis.
.exampleFlex {
@include flex($justify: 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$align
- defines how flex items are laid out along the cross axis$justify
- 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.
.exampleInlineFlex {
@include inline-flex;
}
Assign display: inline-flex
property to the class and define the direction of items in the flex container.
.exampleInlineFlex {
@include inline-flex($direction: column);
}
Assign display: inline-flex
property to the class and define how flex items are laid out along the cross axis.
.exampleInlineFlex {
@include inline-flex($align: flex-end);
}
Assign display: inline-flex
property to the class and defines alignment of flex items along the main axis.
.exampleInlineFlex {
@include inline-flex($justify: space-between);
}
Assign display: inline-flex
property to the class and wrap flex items onto multiple lines.
.exampleInlineFlex {
@include inline-flex($wrap: wrap);
}