Introducing css3 flexboxes for legend