From b2924885aac53650f4c16ca5a290aac899e4ccb6 Mon Sep 17 00:00:00 2001
From: Laurent Destailleur <eldy@destailleur.fr>
Date: Sat, 9 Jan 2016 03:00:12 +0100
Subject: [PATCH] Fix css

---
 htdocs/core/tpl/login.tpl.php             | 2 +-
 htdocs/core/tpl/passwordforgotten.tpl.php | 2 +-
 htdocs/theme/eldy/style.css.php           | 6 ++++++
 htdocs/theme/md/style.css.php             | 6 ++++++
 4 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/htdocs/core/tpl/login.tpl.php b/htdocs/core/tpl/login.tpl.php
index 1debab7b10b..5e79b71ee34 100644
--- a/htdocs/core/tpl/login.tpl.php
+++ b/htdocs/core/tpl/login.tpl.php
@@ -222,7 +222,7 @@ if (isset($conf->file->main_authentication) && preg_match('/openid/',$conf->file
 <?php if (! empty($_SESSION['dol_loginmesg']))
 {
 ?>
-	<div class="center login_main_message" style="max-width: 520px"><div class="error">
+	<div class="center login_main_message"><div class="error">
 	<?php echo $_SESSION['dol_loginmesg']; ?>
 	</div></div>
 <?php
diff --git a/htdocs/core/tpl/passwordforgotten.tpl.php b/htdocs/core/tpl/passwordforgotten.tpl.php
index f6a076660d8..d5863281ff8 100644
--- a/htdocs/core/tpl/passwordforgotten.tpl.php
+++ b/htdocs/core/tpl/passwordforgotten.tpl.php
@@ -167,7 +167,7 @@ if (! empty($hookmanager->resArray['options'])) {
 <br>
 
 <?php if ($message) { ?>
-	<div class="center login_main_message" style="max-width: 520px">
+	<div class="center login_main_message">
 	<?php echo dol_htmloutput_mesg($message,'','',1); ?>
 	</div>
 <?php } ?>
diff --git a/htdocs/theme/eldy/style.css.php b/htdocs/theme/eldy/style.css.php
index 536801716dd..1179494de8c 100644
--- a/htdocs/theme/eldy/style.css.php
+++ b/htdocs/theme/eldy/style.css.php
@@ -1031,6 +1031,12 @@ form#login {
 }
 .login_main_message {
 	text-align: center;
+	max-width: 560px;
+	margin-bottom: 10px;
+}
+.login_main_message .error {
+	border: 1px solid #caa;
+	padding: 10px;
 }
 div#login_left, div#login_right {
 	display: inline-block;
diff --git a/htdocs/theme/md/style.css.php b/htdocs/theme/md/style.css.php
index e69d36232b2..6f76a9b4d49 100644
--- a/htdocs/theme/md/style.css.php
+++ b/htdocs/theme/md/style.css.php
@@ -1077,6 +1077,12 @@ form#login {
 }
 .login_main_message {
 	text-align: center;
+	max-width: 560px;
+	margin-bottom: 10px;
+}
+.login_main_message .error {
+	border: 1px solid #caa;
+	padding: 10px;
 }
 div#login_left, div#login_right {
 	display: inline-block;
-- 
GitLab