aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Gerrand <adg@golang.org>2012-02-22 15:02:31 +1100
committerAndrew Gerrand <adg@golang.org>2012-02-22 15:02:31 +1100
commit8d29a09707877185d0a19fe2d68459cf2f833bff (patch)
treef0e0eddc6f115471371f4c941118693689a6d78f
parenta457fa500d35d352a76883706e82fd7e9f8e4bd7 (diff)
downloadgo-8d29a09707877185d0a19fe2d68459cf2f833bff.tar.gz
go-8d29a09707877185d0a19fe2d68459cf2f833bff.zip
doc: move styles to style.css
R=golang-dev, rsc CC=golang-dev https://golang.org/cl/5685075
-rw-r--r--doc/go1.html6
-rw-r--r--doc/go1.tmpl6
-rw-r--r--doc/style.css3
3 files changed, 3 insertions, 12 deletions
diff --git a/doc/go1.html b/doc/go1.html
index 53b338b865..38cd0e94f2 100644
--- a/doc/go1.html
+++ b/doc/go1.html
@@ -7,12 +7,6 @@
-->
-<!-- Center the tables, and disable the 1995-era 3D borders -->
-<style type="text/css">
-table { margin-left: auto; margin-right: auto; border-style: none; }
-hr { border-style: none; border-top: 1px solid black; }
-</style>
-
<h2 id="introduction">Introduction to Go 1</h2>
<p>
diff --git a/doc/go1.tmpl b/doc/go1.tmpl
index b487c009af..f61dcd5cce 100644
--- a/doc/go1.tmpl
+++ b/doc/go1.tmpl
@@ -3,12 +3,6 @@
}-->
{{donotedit}}
-<!-- Center the tables, and disable the 1995-era 3D borders -->
-<style type="text/css">
-table { margin-left: auto; margin-right: auto; border-style: none; }
-hr { border-style: none; border-top: 1px solid black; }
-</style>
-
<h2 id="introduction">Introduction to Go 1</h2>
<p>
diff --git a/doc/style.css b/doc/style.css
index c53f93dd05..c387705214 100644
--- a/doc/style.css
+++ b/doc/style.css
@@ -328,3 +328,6 @@ body {
.example .expanded { display: none; }
.exampleVisible .collapsed { display: none; }
.exampleVisible .expanded { display: block; }
+
+table.codetable { margin-left: auto; margin-right: auto; border-style: none; }
+hr { border-style: none; border-top: 1px solid black; }