mirror of
https://github.com/golang/go
synced 2024-11-21 18:34:44 -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:
parent
036731c170
commit
9d08068d21
@ -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,
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user