midnight icon indicating copy to clipboard operation
midnight copied to clipboard

Make inline code's font size better

Open lastorset opened this issue 9 years ago • 0 comments

In option docs for YouCompleteMe, headings generally don't look like headings because they mainly consist of option names in <code>, which are rendered quite small (at least on Chromium). Body text has the same issue, though this affects only aesthestics, not comprehension.

This patch leaves code blocks at the smaller size (which seems fine, although they could also be made larger to match highlit code) and adjusts inline code to match the size of the surounding paragraph.

Caveats:

  • The font-size-adjust value was arrived at by experimentation (which seems to be the approach recommended by the spec), and I'm not sure how well it generalizes. The fonts rendered on my system are "OTS derived font" (not sure what this is?) and Consolas.
  • I'm not sure how other Midnight-themed pages use <code>.

lastorset avatar Jun 05 '15 09:06 lastorset