Backported most of our custom css rules