Skip to content

x/website: code snippets in the blog are a different font-size than content after migration #49833

@theckman

Description

@theckman

Hello,

I found another regression in the website after migrating golang.org to go.dev. Specifically, the code snippets in blog posts are a much smaller font size than the text of the blog post itself. This makes the snippets very hard to read, and overall creates a pretty uncomfortable aesthetic on the page.

It looks like the issue is that the font-size for pre is set to 0.83em. It looks much better when setting it to 1.0em.

I've attached a screenshot showing the issue:

Screen Shot 2021-11-28 at 14 14 28

Here's what it looks like when setting the pre font-size to 1em:

Screen Shot 2021-11-28 at 14 17 35

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions