From 1671513440c0ee97531ba560bab69471e6eb11fb Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Mon, 25 May 2009 15:19:44 +0000 Subject: [PATCH] update for 3.1-3.2 --- crimson_gray/css/theme_left.css.php | 22 ++- crimson_gray/css/theme_right.css.php | 205 +++++++++++++++++++-------- crimson_gray/info.inc.php | 2 +- 3 files changed, 159 insertions(+), 70 deletions(-) diff --git a/crimson_gray/css/theme_left.css.php b/crimson_gray/css/theme_left.css.php index 90d164972..712248764 100644 --- a/crimson_gray/css/theme_left.css.php +++ b/crimson_gray/css/theme_left.css.php @@ -14,12 +14,19 @@ if (!defined('PMA_MINIMUM_COMMON')) { ?> /******************************************************************************/ /* general tags */ +html { + font-size: get('fontsize') ? $_SESSION['PMA_Config']->get('fontsize') : $_COOKIE['pma_fontsize']); ?>; +} + +input, select, textarea { + font-size: 1em; +} body { font-family: ; - background: ; + background: ; color: ; margin: 0; padding: 0.2em 0.2em 0.2em 0.2em; @@ -39,8 +46,8 @@ a:active { */ ul { - margin:0; -} + margin:0; +} form { margin: 0; @@ -79,8 +86,8 @@ button { /* specific elements */ div#pmalogo { - ; - background-color: ; + + background-color: ; padding:.3em; } div#pmalogo, @@ -154,7 +161,7 @@ div#left_tableList ul { margin: 0; padding: 0; font-size: 80%; - background: ; + background: ; } div#left_tableList ul ul { @@ -206,8 +213,9 @@ div#left_tableList ul ul { padding-: 0.1em; border-: 0.1em solid ; padding-bottom: 0.1em; - border-bottom: 0.1em solid ; + border-bottom: 0.1em solid ; } + /* for the servers list in navi panel */ #serverinfo .item { white-space: nowrap; diff --git a/crimson_gray/css/theme_right.css.php b/crimson_gray/css/theme_right.css.php index 68954f0e0..64d9a2269 100644 --- a/crimson_gray/css/theme_right.css.php +++ b/crimson_gray/css/theme_right.css.php @@ -1,7 +1,7 @@ /******************************************************************************/ /* general tags */ +html { + font-size: get('fontsize') ? $_SESSION['PMA_Config']->get('fontsize') : ( + isset($_COOKIE['pma_fontsize']) ? $_COOKIE['pma_fontsize'] : '84%'));?>; +} + +input, select, textarea { + font-size: 1em; +} + body { font-family: ; @@ -22,7 +31,7 @@ body { padding: 0; margin: 0.5em; color: ; - background: ; + background: ; } @@ -30,7 +39,6 @@ textarea, tt, pre, code { font-family: ; } - h1 { font-size: 140%; font-weight: bold; @@ -91,6 +99,7 @@ form { textarea { overflow: visible; + height: em; } fieldset { @@ -107,7 +116,7 @@ fieldset fieldset { fieldset legend { font-weight: bold; color: #444444; - background-color: + background-color: } /* buttons in some browsers (eg. Konqueror) are block elements, @@ -134,13 +143,18 @@ button { /******************************************************************************/ /* classes */ +div.tools { + border: 1px solid #000000; + padding: 0.2em; +} +div.tools, fieldset.tblFooters { margin-top: 0; margin-bottom: 0.5em; /* avoid a thick line since this should be used under another fieldset */ border-top: 0; - text-align: ; + text-align: ; float: none; clear: both; } @@ -348,33 +362,64 @@ td .icon { } /* message boxes: warning, error, confirmation */ +.success h1, +.notice h1, +.warning h1, +div.error h1 { + border-bottom: 2px solid; + font-weight: bold; + text-align: ; + margin: 0 0 0.2em 0; +} + +div.success, +div.notice, +div.warning, +div.error { + margin: 0.3em 0 0 0; + border: 2px solid; + + background-repeat: no-repeat; + + background-position: 10px 50%; + padding: 0.1em 0.1em 0.1em 36px; + + background-position: 99% 50%; + padding: 10px 5% 10px 10px; + + + padding: 0.3em; + +} + +.success { + color: #000000; + background-color: #f0fff0; +} +h1.success, +div.success { + border-color: #00FF00; + + background-image: url(getImgPath(); ?>s_success.png); + +} +.success h1 { + border-color: #00FF00; +} + .notice { color: #000000; background-color: #FFFFDD; } h1.notice, div.notice { - margin: 0.5em 0 0.5em 0; - border: 0.1em solid #FFD700; + border-color: #FFD700; background-image: url(getImgPath(); ?>s_notice.png); - background-repeat: no-repeat; - - background-position: 10px 50%; - padding: 10px 10px 10px 36px; - - background-position: 99% 50%; - padding: 10px 5% 10px 10px; - - - padding: 0.5em; } .notice h1 { border-bottom: 0.1em solid #FFD700; - font-weight: bold; - text-align: ; - margin: 0 0 0.2em 0; } .warning { @@ -384,27 +429,13 @@ div.notice { p.warning, h1.warning, div.warning { - margin: 0.5em 0 0.5em 0; - border: 0.1em solid #CC0000; + border-color: #CC0000; background-image: url(getImgPath(); ?>s_warn.png); - background-repeat: no-repeat; - - background-position: 10px 50%; - padding: 10px 10px 10px 36px; - - background-position: 99% 50%; - padding: 10px 5% 10px 10px; - - - padding: 0.5em; } .warning h1 { - border-bottom: 0.1em solid #cc0000; - font-weight: bold; - text-align: ; - margin: 0 0 0.2em 0; + border-color: #cc0000; } .error { @@ -414,27 +445,13 @@ div.warning { h1.error, div.error { - margin: 0.5em 0 0.5em 0; - border: 0.1em solid #ff0000; + border-color: #ff0000; background-image: url(getImgPath(); ?>s_error.png); - background-repeat: no-repeat; - - background-position: 10px 50%; - padding: 10px 10px 10px 36px; - - background-position: 99% 50%; - padding: 10px 5% 10px 10px; - - - padding: 0.5em; } div.error h1 { border-bottom: 0.1em solid #ff0000; - font-weight: bold; - text-align: ; - margin: 0 0 0.2em 0; } .confirmation { @@ -474,16 +491,19 @@ fieldset.confirmation legend { background: ; } +div.tools, .tblFooters { font-weight: normal; color: ; background: ; - } .tblHeaders a:link, .tblHeaders a:active, .tblHeaders a:visited, +div.tools a:link, +div.tools a:visited, +div.tools a:active, .tblFooters a:link, .tblFooters a:active, .tblFooters a:visited { @@ -491,6 +511,7 @@ fieldset.confirmation legend { } .tblHeaders a:hover, +div.tools a:hover, .tblFooters a:hover { color: #AA0000; } @@ -534,16 +555,29 @@ body.loginform { body.loginform div.container { text-align: ; - width: 30em; + width: 20em; margin: 0 auto; } form.login label { float: ; - width: 11.5em; font-weight: bolder; + clear: ; + margin: 1px 0 2px 0; } +form.login input { + float: ; + clear: ; +} + +.login .textfield, .loginform select { + width: 98%; +} + +#input_go, #buttonGo, #queryboxfooter input, input[type=submit] { + min-width: 75px; +} /******************************************************************************/ /* specific elements */ @@ -588,11 +622,11 @@ span.tabcaution { /* enabled drop/empty tabs */ a.tabcaution { - color: #AA0000; + color: #FF0000; } a.tabcaution:hover { color: #FFFFFF; - background-color: #AA0000; + background-color: #FF0000; } @@ -818,7 +852,7 @@ div#tablestatistics table caption { /* serverstatus */ div#serverstatus table caption a.top { - float: ; + float: ; } div#serverstatus div#serverstatusqueriesdetails table, @@ -914,7 +948,6 @@ div#queryboxcontainer div#bookmarkoptions { background-image: url(getImgPath(); ?>logo_right.png); background-position: bottom; background-repeat: no-repeat; - border-bottom: 1px solid silver; } #mysqlmaininformation, @@ -953,7 +986,8 @@ li#li_select_theme{ list-style-image: url(getImgPath(); ?>s_theme.png); } -li#li_server_info{ +li#li_server_info, +li#li_server_version{ list-style-image: url(getImgPath(); ?>s_host.png); } @@ -1005,7 +1039,8 @@ li#li_log_out { list-style-image: url(getImgPath(); ?>s_loggoff.png); } -li#li_pma_docs { +li#li_pma_docs, +li#li_pma_wiki { list-style-image: url(getImgPath(); ?>b_docs.png); } @@ -1066,7 +1101,7 @@ li#li_flush_privileges { margin-bottom: 1em; width: 100%; border-top: 0.1em solid silver; - text-align: ; + text-align: ; } #table_innodb_bufferpool_usage, @@ -1088,7 +1123,10 @@ li#li_flush_privileges { float: ; } -#div_table_copy { +#div_table_copy, +#div_partition_maintenance, +#div_referential_integrity, +#div_table_maintenance { min-width: 48%; float: ; } @@ -1111,3 +1149,46 @@ label.desc { width: 30em; float: ; } + +code.sql { + display: block; + padding: 0.3em; + margin-top: 0; + margin-bottom: 0; + border: solid 1px; + border-top: 0; + border-bottom: 0; + max-height: 10em; + overflow: auto; + background: ; +} + +#main_pane_left { + width: 60%; + float: ; + padding-top: 1em; +} + +#main_pane_right { + margin-: 60%; + padding-top: 1em; + padding-: 1em; +} + +.group { + border-: 1px solid ; + margin-bottom: 1em; +} + +.group h2 { + background-color: ; + color: #404040; + padding: 0.1em 0.3em; + margin-top: 0; +} + +#li_select_server { + padding-bottom: 0.3em; + border-bottom: 0.3em solid ; + margin-bottom: 0.3em; +} diff --git a/crimson_gray/info.inc.php b/crimson_gray/info.inc.php index e41ab6db2..d4ee1afcd 100644 --- a/crimson_gray/info.inc.php +++ b/crimson_gray/info.inc.php @@ -13,5 +13,5 @@ * */ $theme_name = 'Crimson-Gray'; -$theme_full_version = '2.9'; +$theme_full_version = '3.0'; ?>