Clean up revision CSS

* Use bootstrap variables for margins and line heights
* Reduce indentation and specificity
* Make selector intent clearer
* Make tests less brittle