From: Andrew Gerrand Date: Mon, 12 Mar 2012 23:17:10 +0000 (+1100) Subject: godoc: use elastic layout for most pages X-Git-Tag: weekly.2012-03-13~21 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=2b8bc93f323bd5e161f70cc2a730dcd206b38a00;p=gostls13.git godoc: use elastic layout for most pages We use the absence of a Title to detect the front page. I can't find other pages without titles, so this seems reasonable. R=golang-dev, bradfitz, gri CC=golang-dev https://golang.org/cl/5797076 --- diff --git a/doc/style.css b/doc/style.css index 1d8ccd0ead..d5b305984a 100644 --- a/doc/style.css +++ b/doc/style.css @@ -129,19 +129,25 @@ div#heading a { div#topbar { background: #E0EBF5; + height: 64px; } body { text-align: center; } div#page, -div#topbar .container { +div#topbar > .container { clear: both; text-align: left; margin-left: auto; margin-right: auto; + padding: 0 20px; width: 900px; } +div#page.wide, +div#topbar > .wide { + width: auto; +} div#plusone { float: right; } @@ -182,6 +188,8 @@ div#blog .read a { } div#menu { + float: right; + min-width: 590px; padding: 10px 0; text-align: right; } diff --git a/lib/godoc/godoc.html b/lib/godoc/godoc.html index 62deed745b..7efed83b92 100644 --- a/lib/godoc/godoc.html +++ b/lib/godoc/godoc.html @@ -15,10 +15,9 @@ -
+ -
- -
+
{{with .Title}}
@@ -52,8 +50,6 @@
-
-