Flexbox classes specificity fixes

closes: #5106