maposmatic-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Maposmatic-dev] [PATCH 15/24] Restored the two columns layout.


From: Maxime Petazzoni
Subject: [Maposmatic-dev] [PATCH 15/24] Restored the two columns layout.
Date: Sun, 10 Jan 2010 15:54:09 +0100

---
 www/media/style.css                |   29 ++++++++++++++---------------
 www/templates/maposmatic/base.html |   20 +++++++++++---------
 2 files changed, 25 insertions(+), 24 deletions(-)

diff --git a/www/media/style.css b/www/media/style.css
index c6b4e98..218557b 100644
--- a/www/media/style.css
+++ b/www/media/style.css
@@ -45,6 +45,7 @@ a img {
   background-image: url('/smedia/header.png');
   background-position: top right;
   background-repeat: no-repeat;
+  border-bottom: 1px black solid;
 }
 
 #header h1 {
@@ -107,9 +108,9 @@ ul#nav li.activelink a {
 
 /* Main content */
 #content {
-  margin: 0;
-  padding: 2em;
-  border-top: 1px black solid;
+  margin: 1em 0 2em 2em;
+  float: left;
+  width: 70%;
 }
 
 #content h1 {
@@ -130,24 +131,26 @@ table.authors td {
 }
 
 
-/* Bottom */
-#bottom {
-  border-top: 1px #aaa solid;
-  margin: 1em 2em;
+/* Meta informations */
+#meta {
+  float: right;
+  width: 20%;
+  margin: 3em 1em;
+  padding: 0 0 1em 1em;
+  border-left: 1px #ccc solid;
 }
 
-#bottom h3 {
+#meta h3 {
   margin: 1em 0;
   padding: 0;
 }
 
 #bcontact {
-  float: left;
-  padding-left: 1em;
+  padding-top: 1em;
 }
 
 #bnews {
-  margin-left: 30%;
+  padding-top: 1em;
 }
 
 #bnews ul {
@@ -164,10 +167,6 @@ table.authors td {
 }
 
 #bmap {
-  float: right;
-  text-align: center;
-  padding-right: 1em;
-  width: 220px;
 }
 
 #bmap p.randommap {
diff --git a/www/templates/maposmatic/base.html 
b/www/templates/maposmatic/base.html
index bab4340..d51f6fb 100644
--- a/www/templates/maposmatic/base.html
+++ b/www/templates/maposmatic/base.html
@@ -72,15 +72,7 @@
       {% block page %}{% endblock %}
     </div>
 
-    <div id="bottom">
-      <div id="bcontact">
-        <h3>{% trans "Contact" %}</h3>
-        <p>
-          {% trans "Mail:" %} <a 
href="mailto:address@hidden";>address@hidden</a><br />
-          {% trans "IRC:" %} <tt>#maposmatic</tt> {% trans "on" %} 
<tt>irc.freenode.net</tt>
-        </p>
-      </div>
-
+    <div id="meta">
       <div id="bmap">
         <h3>{% trans "Random map" %}</h3>
         {% if randommap %}<p class="randommap">
@@ -105,6 +97,16 @@
           {% endfor %}
         </ul>
       </div>
+
+      <div id="bcontact">
+        <h3>{% trans "Contact" %}</h3>
+        <p>
+          {% trans "Mail:" %}
+          <a href="mailto:address@hidden";>address@hidden</a><br />
+          {% trans "IRC:" %}
+          <tt>#maposmatic</tt> {% trans "on" %} <tt>irc.freenode.net</tt>
+        </p>
+      </div>
     </div>
 
     <!-- Piwik statistics -->
-- 
1.6.3.3.261.g85c6





reply via email to

[Prev in Thread] Current Thread [Next in Thread]