replacing purecss with flexbox layout model