She was on paper supporting the Remain campaign but she did nothing on that. She didn't say anything about it. What Theresa May is, is a squatter - she thought Remain would win, so she "supported" Remain, but not too loudly - just in case.
When it lost, she was the least worst option and she got the top job.