Skip to content

Commit 536c0e2

Browse files
authored
tools/godoc/static/style.css
The cascading sylesheet from the users UI can be inverted, in this eventuality, if 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.
1 parent 2e4132e commit 536c0e2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

godoc/static/style.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ body {
66
text-align: center;
77
color: #222;
88
}
9+
textarea {
10+
/* Inherit text color from body avoiding illegible text in the case where the
11+
* user has inverted the browsers custom text and background colors. */
12+
color: inherit;
13+
}
914
pre,
1015
code {
1116
font-family: Menlo, monospace;

0 commit comments

Comments
 (0)