Simplify a whole bunch of CSS (fixes #873)

Apparently the various bugs in the interaction between CSS flex and
text-ellipsis have been fixed, meaning that the markup can be heavily
simplified.

I believe there's other things that can be further simplify, since there's a lot
of legacy hacks in the code, but that'll do for now.