From 37c2886845869da97d274815adbe05aa68e51fc6 Mon Sep 17 00:00:00 2001 From: Pavel Rochnyack Date: Mon, 1 Aug 2016 02:52:22 +0100 Subject: [PATCH] Improved indents, alignment and rtl in Original theme * Fixed list items aligment in rtl view * Fixed notices icon alignment in rtl and ltr views * Fixed Footer.php getErrorMessages() to avoid
....
nested blocks. * Removed indentation by   Signed-off-by: Pavel Rochnyack --- index.php | 2 +- js/ajax.js | 2 +- libraries/Footer.php | 5 +++-- themes/original/css/common.css.php | 13 ++++++++++--- 4 files changed, 15 insertions(+), 7 deletions(-) diff --git a/index.php b/index.php index bd4de1a134..7da11334bc 100644 --- a/index.php +++ b/index.php @@ -558,7 +558,7 @@ if ($server > 0) { . '%sFind out why%s. ' ); if ($cfg['ZeroConf'] == true) { - $msg_text .= '
      ' . + $msg_text .= '
' . __( 'Or alternately go to \'Operations\' tab of any database ' . 'to set it up there.' diff --git a/js/ajax.js b/js/ajax.js index bac829d9f0..04ea405006 100644 --- a/js/ajax.js +++ b/js/ajax.js @@ -442,7 +442,7 @@ var AJAX = { msg = data._errSubmitMsg; } if (data._errors) { - $('
', {id : 'pma_errors'}) + $('
', {id : 'pma_errors', class : 'clearfloat'}) .insertAfter('#selflink') .append(data._errors); // bind for php error reporting forms (bottom) diff --git a/libraries/Footer.php b/libraries/Footer.php index dac15c0e9b..dfea679edb 100644 --- a/libraries/Footer.php +++ b/libraries/Footer.php @@ -217,11 +217,10 @@ class Footer */ public function getErrorMessages() { - $retval = '
'; + $retval = ''; if ($GLOBALS['error_handler']->hasDisplayErrors()) { $retval .= $GLOBALS['error_handler']->getDispErrors(); } - $retval .= '
'; /** * Report php errors @@ -341,7 +340,9 @@ class Footer $this->_scripts->addCode( 'var debugSQLInfo = ' . $this->getDebugMessage() . ';' ); + $retval .= '
'; $retval .= $this->getErrorMessages(); + $retval .= '
'; $retval .= $this->_scripts->getDisplay(); if ($GLOBALS['cfg']['DBG']['demo']) { $retval .= '
'; diff --git a/themes/original/css/common.css.php b/themes/original/css/common.css.php index de8b70f647..2b17bcd491 100644 --- a/themes/original/css/common.css.php +++ b/themes/original/css/common.css.php @@ -422,15 +422,22 @@ div.error { background-position: 10px 50%; - padding: 0.1em 0.1em 0.1em 36px; + padding: 0.1em 0.1em 0.1em 42px; background-position: 99% 50%; - padding: 0.1em 46px 0.1em 0.1em; + padding: 0.1em 40px 0.1em 0.1em; } +div.success img.icon, +div.notice img.icon, +div.error img.icon { + display: block; + float: ; + margin-: -22px; +} .success { color: #000000; @@ -1249,7 +1256,7 @@ div#queryboxcontainer div#bookmarkoptions { li.no_bullets { list-style-type:none !important; - margin-left: -25px !important; //align with other list items which have bullets + margin-: -25px !important; //align with other list items which have bullets } /* end iconic view for ul items */