masakudamatsu / line-height-picker

A front-end web app that helps web designers/developers pick the best line-height value for their websites
https://line-height-picker.vercel.app
MIT License
2 stars 1 forks source link

Style the background colored box for inline code #220

Closed masakudamatsu closed 4 years ago

masakudamatsu commented 4 years ago

Currently, the background color is the same as the focused link text.

It's difficult for keyboard users to find the link text, consequently.

We should follow what GitHub does:

background-color: rgba(27,31,35,.05);
border-radius: 6px;
font-size: 85%;
padding: .2em .4em;

Medium.com

background-color: rgb(242, 242, 242);
font-size: 75%;
padding: 2px 4px;
masakudamatsu commented 4 years ago

Roman Komarov (Sep 8 2016) suggests the use of italic for inline code: https://www.kizu.ru/styling-inline-code/

But this is not standard, potentially puzzling the reader.

Screenshot 2020-06-30 at 12 35 24
masakudamatsu commented 4 years ago

We've decided to go with the following:

  border: 1px solid hsl(0, 0%, 40%); /* same color as focused link background */
  font-size: 85%; 
  letter-spacing: -0.04em;
  padding: 2px 4px 1px;