Here is CSS I have to show some Chevron arrows. It works great. The only problem I have is that when flex-wrap kicks in, the items on the now multiple rows are no longer the same size. I want all items to always have equal size.
Is this possible to achieve?
$itemHeight: 40px;
$arrowModifier: 8;
.statusBar {
display: flex;
flex-wrap: wrap;
&_item {
display: inline-block;
background: #fff;
height: $itemHeight;
position: relative;
flex-grow: 1;
text-align: center;
line-height: $itemHeight;
min-width: 110px;
text-decoration: none;
color: #333;
&:hover {
text-decoration: none;
color: #333;
}
&:before,
&:after {
display: inline-block;
content: "";
border-style: solid;
position: absolute;
}
&:before {
left:0;
border-width: $itemHeight/2 0 $itemHeight/2 $itemHeight/$arrowModifier;
border-color: transparent transparent transparent #f2f2f2;
}
&:after {
right:0;
border-width: $itemHeight/2 0 $itemHeight/2 $itemHeight/$arrowModifier;
border-color: #f2f2f2 transparent;
}
}
}
Here is how the arrows look when flex-wrap has caused one to move to the next row: