From c5d67c37186a940f41b1237d2e8d9ffdb96cceac Mon Sep 17 00:00:00 2001
From: Christoph Groth <christoph.groth@cea.fr>
Date: Tue, 10 Sep 2013 15:32:45 +0200
Subject: [PATCH] minimum margin, and other style improvements

---
 content/common/kwant.css | 22 ++++++++++++++++++++--
 templates/base.mako      |  2 ++
 2 files changed, 22 insertions(+), 2 deletions(-)

diff --git a/content/common/kwant.css b/content/common/kwant.css
index ad292c9..876d40a 100644
--- a/content/common/kwant.css
+++ b/content/common/kwant.css
@@ -1,6 +1,6 @@
 @import url(html4css1.css);
 
-/* keeping a scrollbar always there to make centering work properly */
+/* Keeping a scrollbar always there to make centering work properly. */
 html {
     overflow-y: scroll;
 }
@@ -10,7 +10,14 @@ body {
     max-width: 55em;
     margin: 0 auto;
     font-family: "Bitstream Vera Serif",  Georgia, serif;
+}
+
+div.padding {
+    margin: 1em;
+}
 
+/* Enable hyphenation. */
+body {
     text-align:justify;
     -webkit-hyphens: auto;
     -moz-hyphens: auto;
@@ -18,8 +25,15 @@ body {
     -o-hyphens: auto;
     hyphens: auto;
 }
+tt, pre {
+    -webkit-hyphens: none;
+    -moz-hyphens: none;
+    -ms-hyphens: none;
+    -o-hyphens: none;
+    hyphens: none;
+}
 
-/* link color is an average of the kwant logo */
+/* The link color is the average color of the Kwant logo. */
 a {
     color: #045e94;
     text-decoration: none;
@@ -81,6 +95,10 @@ div.leftside {
     float: left;
 }
 
+div.rightside {
+    float: right;
+}
+
 div.section{
     height: auto;
     overflow: auto;
diff --git a/templates/base.mako b/templates/base.mako
index 78cbb45..febf8b0 100644
--- a/templates/base.mako
+++ b/templates/base.mako
@@ -12,6 +12,7 @@
 </head>
 
 <body>
+<div class="padding">
 <div id="header" class="meta">
   <a href="/"><img alt="kwant_logo.png" src="/common/kwant_logo.png" /></a>
 <h3 class="hidden_structure">Navigation</h3>
@@ -28,6 +29,7 @@
 
 ${next.body()}\
 <%block name="tail"></%block>\
+</div>
 </body>
 
 </html>
-- 
GitLab