From 9d08068d216163d900843a53b12caac31890e9a1 Mon Sep 17 00:00:00 2001 From: Andrew Gerrand Date: Thu, 15 Mar 2012 08:09:54 +1100 Subject: [PATCH] godoc: style example headings like links R=golang-dev, gri CC=golang-dev https://golang.org/cl/5819048 --- doc/style.css | 6 ++++-- lib/godoc/example.html | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/doc/style.css b/doc/style.css index 882ce7435d..fc6c34c8df 100644 --- a/doc/style.css +++ b/doc/style.css @@ -30,11 +30,13 @@ pre .ln { body { color: #222; } -a { +a, +.exampleHeading .text { color: #375EAB; text-decoration: none; } -a:hover { +a:hover, +.exampleHeading .text:hover { text-decoration: underline; } p, diff --git a/lib/godoc/example.html b/lib/godoc/example.html index d7b219371a..43ee4bddc1 100644 --- a/lib/godoc/example.html +++ b/lib/godoc/example.html @@ -1,9 +1,9 @@
-

▾ Example{{example_suffix .Name}}

+

▾ Example{{example_suffix .Name}}

{{with .Doc}}

{{html .}}

{{end}}

Code:

{{.Code}}
-- 2.50.0