"Ms. May and the Conservatives tried to make this election about Brexit and nothing but Brexit. That didn’t fly with voters. The Conservatives went from being ahead of Labour by as much 20 percentage points at the beginning of the campaign to finishing a mere two points ahead in the popular vote."
.
Actually, in many urban ridings support for Brexit was a death knell for Tory candidates - there were huge vote swings against them.