From a33d6c1d3c3d30ae118b51ea5dd6e22461d6a937 Mon Sep 17 00:00:00 2001
From: Laurent Destailleur <eldy@destailleur.fr>
Date: Mon, 18 Jan 2016 11:48:02 +0100
Subject: [PATCH] Prepare homepage to be a full personalized dashboard

---
 htdocs/index.php                | 3 +--
 htdocs/theme/eldy/style.css.php | 3 +++
 htdocs/theme/md/style.css.php   | 7 +++++--
 3 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/htdocs/index.php b/htdocs/index.php
index 86f35d52810..810bafe7ed4 100644
--- a/htdocs/index.php
+++ b/htdocs/index.php
@@ -501,8 +501,7 @@ foreach($valid_dashboardlines as $board)
 print '</table>';   // End table array
 
 
-print '</div></div></div><div class="fichecenter"><br>';
-
+print '</div></div></div><div class="clearboth"></div><div class="fichecenter fichecenterbis">';
 
 /*
  * Show boxes
diff --git a/htdocs/theme/eldy/style.css.php b/htdocs/theme/eldy/style.css.php
index b157fa9d47d..651f3b3027e 100644
--- a/htdocs/theme/eldy/style.css.php
+++ b/htdocs/theme/eldy/style.css.php
@@ -591,6 +591,9 @@ div.fichecenter {
 	width: 100%;
 	clear: both;	/* This is to have div fichecenter that are true rectangles */
 }
+div.fichecenterbis {
+	margin-top: 8px;
+}
 div.fichethirdleft {
 	<?php if ($conf->browser->layout != 'phone')   { print "float: ".$left.";\n"; } ?>
 	<?php if ($conf->browser->layout != 'phone')   { print "width: 50%;\n"; } ?>
diff --git a/htdocs/theme/md/style.css.php b/htdocs/theme/md/style.css.php
index 6f76a9b4d49..6dcc831ce7e 100644
--- a/htdocs/theme/md/style.css.php
+++ b/htdocs/theme/md/style.css.php
@@ -642,14 +642,17 @@ div.fichecenter {
 	width: 100%;
 	clear: both;	/* This is to have div fichecenter that are true rectangles */
 }
+div.fichecenterbis {
+	margin-top: 8px;
+}
 div.fichethirdleft {
 	<?php if ($conf->browser->layout != 'phone')   { print "float: ".$left.";\n"; } ?>
-	<?php if ($conf->browser->layout != 'phone')   { print "width: 35%;\n"; } ?>
+	<?php if ($conf->browser->layout != 'phone')   { print "width: 50%;\n"; } ?>
 	<?php if ($conf->browser->layout == 'phone') { print "padding-bottom: 6px;\n"; } ?>
 }
 div.fichetwothirdright {
 	<?php if ($conf->browser->layout != 'phone')   { print "float: ".$right.";\n"; } ?>
-	<?php if ($conf->browser->layout != 'phone')   { print "width: 65%;\n"; } ?>
+	<?php if ($conf->browser->layout != 'phone')   { print "width: 50%;\n"; } ?>
 	<?php if ($conf->browser->layout == 'phone') { print "padding-bottom: 6px\n"; } ?>
 }
 div.fichehalfleft {
-- 
GitLab