1
0
mirror of https://github.com/golang/go synced 2024-11-25 02:57:57 -07:00

godoc: style example headings like links

R=golang-dev, gri
CC=golang-dev
https://golang.org/cl/5819048
This commit is contained in:
Andrew Gerrand 2012-03-15 08:09:54 +11:00
parent 036731c170
commit 9d08068d21
2 changed files with 6 additions and 4 deletions

View File

@ -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,

View File

@ -1,9 +1,9 @@
<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>