refactoring flexbox feature detection and conditionally including the correct CSS