-
Notifications
You must be signed in to change notification settings - Fork 18k
x/tools/cmd/godoc: Use relative (not absolute) font sizes #6150
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
Milestone
Comments
CL https://golang.org/cl/133380043 mentions this issue. |
Change https://golang.org/cl/94935 mentions this issue: |
henderjon
pushed a commit
to oggodoc/godoc
that referenced
this issue
Jun 13, 2024
To scale the website elements independently of the default font size, we use the css rem unit. This scales the elements proportionally if the user has set a different font size than the default. We make all calculations assuming that 1rem=16px, which is the default font size for browsers. Tested manually on FF 59 and Chrome 65 with permutations of different resolutions and different default font-sizes upto 36px. Fixes golang/go#6150 Change-Id: I7ded227ee2c55178271667009ab98ee0b4e7e8b3 Reviewed-on: https://go-review.googlesource.com/94935 Run-TryBot: Andrew Bonventre <andybons@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Andrew Bonventre <andybons@golang.org>
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The text was updated successfully, but these errors were encountered: