Skip to content
This repository was archived by the owner on Aug 16, 2022. It is now read-only.

Conversation

inntran
Copy link
Contributor

@inntran inntran commented Apr 16, 2021

Description of changes:
Default style from just-the-docs theme has a quite large line-height for code sections, and the font-family list only take macOS and Windows into consideration. On Linux ( RHEL 7 in my case ), Droid Sans Mono looks better.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

1. Reduced line-height for code sections, easier to read
2. Added Droid Sans Mono for Linux desktop
Copy link
Contributor

@aetter aetter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @inntran, thanks a bunch for the PR. I'm completely in favor of adding more Linux-friendly fonts, and Droid Sans Mono is a good one.

I suspect we've hit an impasse on the line height, though. I think the current height helps out a lot with readability, especially on larger blocks like the Docker Compose file or response JSON, and it's very similar to the height that GitHub uses in its reviews.

Edited: I've continued staring at the screen and think that maybe we can hit a happy medium at 1.4 rather than normal. Let me know what you think.

@inntran
Copy link
Contributor Author

inntran commented Apr 16, 2021

I checked on my Mac, yeah the 1.4 line-height looks fine. The font-family is more important than line-height on Linux. I'll update this PR.

@inntran inntran requested a review from aetter April 17, 2021 03:28
@inntran
Copy link
Contributor Author

inntran commented Apr 17, 2021

Before this explicit line-height specification, the code section would use inherited line-height from class "main-content", which is 1.6 in this case, that explains why the code section always looked weird to me.

@inntran inntran changed the title improve code section improve code section look Apr 17, 2021
@aetter
Copy link
Contributor

aetter commented Apr 19, 2021

LGTM, thanks a bunch.

@aetter aetter merged commit 9f99cfc into opendistro:master Apr 19, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants