content: wrap functions and methods
Overflow fext for functions and methods are now wrapped.
Fixes golang/go#43368
Change-Id: Ieb5aa88ddda918a94333724880dfaa4317674fbd
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/279726
Trust: Julie Qiu <julie@golang.org>
Run-TryBot: Julie Qiu <julie@golang.org>
TryBot-Result: kokoro <noreply+kokoro@google.com>
Reviewed-by: Jamal Carvalho <jamal@golang.org>
diff --git a/content/static/css/stylesheet.css b/content/static/css/stylesheet.css
index 1a48612..6021a27 100644
--- a/content/static/css/stylesheet.css
+++ b/content/static/css/stylesheet.css
@@ -1348,6 +1348,14 @@
column-width: 12.5rem;
word-break: break-all;
}
+/* See https://golang.org/issue/43368 for context. */
+.Documentation-function pre,
+.Documentation-typeFunc pre,
+.Documentation-typeMethod pre {
+ white-space: pre-wrap;
+ word-break: break-all;
+ word-wrap: break-word;
+}
.Versions-list {
list-style: none;