mirror of
https://github.com/golang/go
synced 2024-11-18 13:14:47 -07:00
godoc/static: inherit textarea color to avoid illegible text
The cascading sylesheet from the users UI can be inverted. If the background color is altered in the textarea and the text style is left unchanged the text may become illegible. The default value of the textarea color is that of the users UI styling and is not the same as that of the document body. Setting color: inherit; resolves this. Fixes golang/go#29482 Change-Id: Iaa6780154e0bd01d2a8219d813468dab25331b46 GitHub-Last-Rev: 8706d7aa4e183f98144b0b958f745bab12b6ce75 GitHub-Pull-Request: golang/tools#70 Reviewed-on: https://go-review.googlesource.com/c/158137 Reviewed-by: Andrew Bonventre <andybons@golang.org>
This commit is contained in:
parent
cb89afadce
commit
9bdeaddf5f
@ -6,6 +6,11 @@ body {
|
||||
text-align: center;
|
||||
color: #222;
|
||||
}
|
||||
textarea {
|
||||
/* Inherit text color from body avoiding illegible text in the case where the
|
||||
* user has inverted the browsers custom text and background colors. */
|
||||
color: inherit;
|
||||
}
|
||||
pre,
|
||||
code {
|
||||
font-family: Menlo, monospace;
|
||||
|
Loading…
Reference in New Issue
Block a user