]> Cypherpunks repositories - gostls13.git/commitdiff
godoc: style example headings like links
authorAndrew Gerrand <adg@golang.org>
Wed, 14 Mar 2012 21:09:54 +0000 (08:09 +1100)
committerAndrew Gerrand <adg@golang.org>
Wed, 14 Mar 2012 21:09:54 +0000 (08:09 +1100)
R=golang-dev, gri
CC=golang-dev
https://golang.org/cl/5819048

doc/style.css
lib/godoc/example.html

index 882ce7435de51a3c424440237f52e016057d761e..fc6c34c8dffbeba9902477d3ad25f7477fc59559 100644 (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,
index d7b219371ab6066c23a87b067df8988d43df31f4..43ee4bddc19cec55fd8b0c4c6d4ab508d5d28526 100644 (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>