From 2b8bc93f323bd5e161f70cc2a730dcd206b38a00 Mon Sep 17 00:00:00 2001 From: Andrew Gerrand Date: Tue, 13 Mar 2012 10:17:10 +1100 Subject: [PATCH] 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 --- doc/style.css | 10 +++++++++- lib/godoc/godoc.html | 10 +++------- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/doc/style.css b/doc/style.css index 1d8ccd0ead3..d5b305984a5 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 62deed745b6..7efed83b922 100644 --- a/lib/godoc/godoc.html +++ b/lib/godoc/godoc.html @@ -15,10 +15,9 @@ -
+ -
- -
+
{{with .Title}}
@@ -52,8 +50,6 @@
-
-