The bnn-align
property provide a aligned flex container.
.foo {
bnn-align: [right | center | left] [top | center | bottom] | center;
}
Banana code:
.foo {
bnn-align: center; /* == center center*/
}
Generated CSS code:
.foo {
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: center;
}
Banana code:
.foo {
bnn-align: center bottom;
}
Generated CSS code:
.foo {
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: flex-end;
}
Banana code:
.foo {
bnn-align: right top;
}
Generated CSS code:
.foo {
display: flex;
flex-wrap: wrap;
justify-content: flex-end;
align-items: flex-start;
}