Improved code block font sizing

We’re experimenting with reducing the size of text and the line height, and increasing the height of code blocks, in order to improve readability of larger blocks of code. This is mostly problematic for large blocks of code exceeding 20 or more lines. The result is more code can be seen in the regular viewport.

Before

After

The change has been made here:

https://github.com/discourse-org/design-experiments/pull/75

9 Likes

It seems like changing the font size of inline code like this is probably an unintentional side-effect?

4 Likes

Yes that was unintentional, we should modify it so that only full blocks are changed and not inline code.

2 Likes