Since @angular/flex-layout is deprecated, I want to move from that library towards CSS Flexbox. I want to convert following code to the equivallent CSS Flexbox code. And get rid of that library.
<div fxLayout="row wrap" fxLayoutGap="16px grid" fxLayoutAlign="space-evenly none">
<div *ngFor="let product of products" fxFlex.xs="calc(90% - 16px)" fxFlex.sm="0 0 calc(50% - 16px)"
fxFlex="0 0 calc(33% - 16px)">
<app-product-list-card [product]="product"></app-product-list-card>
</div>
</div>
What about writing a common class at global styles.scss and using it in multiple places in angular application?
It isn't easy to achieve the effects of directives in CSS but you can try something like this