Flegobox, ready to cook flex!
The flexbox layout is a relatively new layout mode that enables the creation of predictable layouts when displaying in different screens and with different content size. This makes it a great tool for making modern and responsive websites in an easy way, including the holy grail layout.
This layout (instead of block layout) provides through CSS properties the possibility to design ordered, rich and easy to understand layouts.
Angular Material uses this as it’s layout foundation. It provides a way to use attributes to set the flex properties for elements.
This is quite convenient, since you can set up the layout of your app without having to go on setting classes for every layout piece that you want to arrange. We use that a lot.
But sometimes we want to fire a small project up with all the angularmaterialflexgoodness without the whole Angular battleship. That’s why Alexander created Flegobox, which is just the Angular Material’s CSS to use the flexbox layout through some classes in a very friendly way.
A set of classes are available with very intuitive prefixes and they all work in the same way as the original.
See related posts
Applying SOLID Principles in Our Lives as React Developers
The SOLID principles are specifically applied in software development, and in this blog post we talk about using them with React.
Communicate with Data Correctly
Find out how data visualization has evolved over the years and what you can do with it in order to display and visualize data in the best possible way.