This appears to be necessary for Sphinx >= 1.3.0
This CSS (from Matplotlib) adds thick lines before each documented class and thin lines at the start of each documented method.