Commit 9d08068d authored by Andrew Gerrand's avatar Andrew Gerrand

godoc: style example headings like links

R=golang-dev, gri
CC=golang-dev
https://golang.org/cl/5819048
parent 036731c1
......@@ -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,
......
<div id="example_{{.Name}}" class="example">
<div class="collapsed">
<p class="exampleHeading">Example{{example_suffix .Name}}</p>
<p class="exampleHeading"><span class="text">Example{{example_suffix .Name}}</span></p>
</div>
<div class="expanded">
<p class="exampleHeading">Example{{example_suffix .Name}}</p>
<p class="exampleHeading"><span class="text">Example{{example_suffix .Name}}</span></p>
{{with .Doc}}<p>{{html .}}</p>{{end}}
<p>Code:</p>
<pre class="code">{{.Code}}</pre>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment