content/static: inherit textarea color to avoid illegible text
Applies CL 158137 from the x/tools repo to the x/website repo.
Updates golang/go#29206
Change-Id: I9f00c4e549bc297a9aa06c6e4ffe1002e87e1671
Reviewed-on: https://go-review.googlesource.com/c/162158
Reviewed-by: Katie Hockman <katie@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
diff --git a/content/static/style.css b/content/static/style.css
index 36d2eb8..290ee95 100644
--- a/content/static/style.css
+++ b/content/static/style.css
@@ -6,6 +6,11 @@
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;