2 /* vim: set expandtab sw=4 ts=4 sts=4: */
11 // sometimes, we lose $_REQUEST['js_frame']
12 define('PMA_FRAME',empty($_REQUEST['js_frame']) ?
'right' : $_REQUEST['js_frame']);
14 define('PMA_MINIMUM_COMMON', true);
15 require_once './libraries/common.inc.php';
16 require_once './libraries/sqlparser.lib.php';
18 // MSIE 6 (at least some unpatched versions) has problems loading CSS
19 // when zlib_compression is on
20 if (PMA_USR_BROWSER_AGENT
== 'IE' && PMA_USR_BROWSER_VER
== '6'
21 && (ini_get('zlib.output_compression'))) {
22 ini_set('zlib.output_compression', 'Off');
25 if ($GLOBALS['text_dir'] === 'ltr') {
34 header('Content-Type: text/css; charset=ISO-8859-1');
36 // Cache output in client - the nocache query parameter makes sure that this
37 // file is reloaded when config changes
38 header('Expires: ' . gmdate('D, d M Y H:i:s', time() +
3600) . ' GMT');
42 font
-size
: <?php
echo $_SESSION['PMA_Config']->get('fontsize'); ?
>;
45 input
, select
, textarea
{
59 if ($_SESSION['PMA_Theme']->checkVersion('2.7.0')) {
73 /* server privileges */
75 #tablespecificuserrights td,
77 vertical
-align
: middle
;
79 /* END server privileges */
82 /* leave some space between icons and text */
84 vertical
-align
: middle
;
88 /* no extra space in table cells */
94 margin
-<?php
echo $right; ?
>: 0.3em
;
95 margin
-<?php
echo $left; ?
>: 0.6em
;
99 border
-bottom
: 0.1em solid
#669999;
100 margin
-bottom
: 0.5em
;
101 padding
-bottom
: 0.5em
;
104 div
#tablestatistics table {
105 float: <?php
echo $left; ?
>;
106 margin
-bottom
: 0.5em
;
110 div
#tablestatistics table caption {
115 /* left frame content */
116 body
#body_leftFrame {
117 background
-color
: <?php
echo $GLOBALS['cfg']['LeftBgColor']; ?
>;
124 border
-bottom
: 0.1em solid
#669999;
125 margin
-bottom
: 0.5em
;
126 padding
-bottom
: 0.5em
;
129 div
#leftframelinks .icon {
130 vertical
-align
: middle
;
135 div
#leftframelinks a:hover {
136 background
-color
: #669999;
139 /* leftdatabaselist */
140 div
#left_tableList ul {
141 list-style
-type
: none
;
142 list-style
-position
: outside
;
145 background
-color
: <?php
echo $GLOBALS['cfg']['LeftBgColor']; ?
>;
148 div
#left_tableList li {
154 <?php
if ($GLOBALS['cfg']['LeftPointerEnable']) { ?
>
155 div
#left_tableList li:hover {
156 background
-color
: <?php
echo $GLOBALS['cfg']['LeftPointerColor']; ?
>;
160 div
#left_tableList img {
162 vertical
-align
: middle
;
165 div
#left_tableList ul ul {
168 border
-left
: 0.1em solid
#669999;
169 padding
-bottom
: 0.1em
;
170 border
-bottom
: 0.1em solid
#669999;
172 /* END left frame content */
176 body
#bodyquerywindow {
181 div
#querywindowcontainer {
187 div
#querywindowcontainer fieldset {
190 /* END querywindow */
196 div
[class=formelementrow
],
197 div
[id
=queryfieldscontainer
] {
198 border
: 1px solid transparent
;
201 div
#sqlquerycontainer {
207 div
#tablefieldscontainer {
213 div
#tablefieldscontainer select {
223 div
#queryboxcontainer div#bookmarkoptions {
229 fieldset
.formelement
{
236 /* revert for Gecko */
237 fieldset div
[class=formelement
] {
242 fieldset
.formelement input
,
243 fieldset
.formelement select
{
245 margin
-bottom
: 0.5em
;
247 /* revert for Gecko */
248 fieldset div
[class=formelement
] input
,
249 fieldset div
[class=formelement
] select
{
256 table
.calendar
{ width
: 100%
; }
257 table
.calendar td
{ text
-align
: center
; }
258 table
.calendar td a
{ display
: block
; }
260 table
.calendar td a
:hover
{
261 background
-color
: <?php
echo $GLOBALS['cfg']['BrowsePointerColor']; ?
>;
265 background
-color
: <?php
echo $GLOBALS['cfg']['ThBgcolor']; ?
>;
268 table
.calendar td
.selected
{
269 background
-color
: <?php
echo $GLOBALS['cfg']['BrowseMarkerColor']; ?
>;
272 img
.calendar
{ border
: none
; }
273 form
.clock
{ text
-align
: center
; }
277 /* Options, eg. on import page */
279 background
-color
: <?php
echo $GLOBALS['cfg']['BgcolorOne']; ?
>;
282 background
-color
: transparent
;
285 /* buttons in some browsers (eg. Konqueror) are block elements, this breaks design */
286 button
{ display
: inline
; }
289 textarea
{ overflow
: auto
; }
294 /* Gecko 1.7 bug (FF 1.0) */
296 border
: 1px solid
<?php
echo $GLOBALS['cfg']['RightBgColor']; ?
>;
301 list-style
-type
: none
;
310 vertical
-align
: middle
;
314 vertical
-align
: middle
;
318 /* default tab styles */
319 .tab
, .tabcaution
, .tabactive
{
321 margin
: 0.2em
0.2em
0 0.2em
;
322 padding
: 0.2em
0.2em
0 0.2em
;
331 /* disabled drop/empty tabs */
336 /* enabled drop/empty tabs */
342 background
-color
: #FF0000;
345 <?php
if ($GLOBALS['cfg']['LightTabs']) { ?
>
353 padding
: 0.1em
0.3em
0.1em
0.3em
;
357 border
-bottom
: 1pt solid black
;
360 /* default tab styles */
361 .tab
, .tabcaution
, .tabactive
{
362 background
-color
: <?php
echo $GLOBALS['cfg']['BgcolorOne']; ?
>;
363 border
: 1pt solid
<?php
echo $GLOBALS['cfg']['BgcolorTwo']; ?
>;
365 border
-top
-left
-radius
: 0.4em
;
366 border
-top
-right
-radius
: 0.4em
;
369 /* enabled hover/active tabs */
370 a
.tab
:hover
, a
.tabcaution
:hover
, .tabactive
, .tabactive
:hover
{
372 padding
: 0.2em
0.4em
0.2em
0.4em
;
373 text
-decoration
: none
;
376 a
.tab
:hover
, .tabactive
{
377 background
-color
: <?php
echo $GLOBALS['cfg']['BgcolorTwo']; ?
>;
380 /* disabled drop/empty tabs */
381 span
.tab
, span
.tabcaution
{
382 cursor
: url(<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/error
.ico
), default;
393 padding
: 0.1em
0.5em
0.1em
0.5em
;
399 /* odd table rows 1,3,5,7,... */
402 background
-color
: <?php
echo $GLOBALS['cfg']['BgcolorOne']; ?
>;
405 /* even table rows 2,4,6,8,... */
408 background
-color
: <?php
echo $GLOBALS['cfg']['BgcolorTwo']; ?
>;
411 /* marked table rows */
414 background
-color
: <?php
echo $GLOBALS['cfg']['BrowseMarkerColor']; ?
>;
417 /* hovered table rows */
420 table tr
.odd
:hover th
,
421 table tr
.even
:hover th
,
424 background
-color
: <?php
echo $GLOBALS['cfg']['BrowsePointerColor']; ?
>;
431 /* IE doesnt handles 'pre' right */
432 table
[class=value
] {
437 font
-family
: "Courier New", Courier
, monospace
;
449 div
#serverstatus table caption a.top {
453 div
#serverstatus div#serverstatusqueriesdetails table,
454 div
#serverstatus table#serverstatustraffic,
455 div
#serverstatus table#serverstatusconnections {
459 #serverstatussection,
463 div
#serverstatussection table {
467 div
#serverstatussection table .name {
470 div
#serverstatussection table .value {
474 div
#serverstatus table tbody td.descr a,
475 div
#serverstatus table .tblFooters a {
478 div
#serverstatus div#statuslinks a:before,
479 div
#serverstatus div#sectionlinks a:before,
480 div
#serverstatus table tbody td.descr a:before,
481 div
#serverstatus table .tblFooters a:before {
484 div
#serverstatus div#statuslinks a:after,
485 div
#serverstatus div#sectionlinks a:after,
486 div
#serverstatus table tbody td.descr a:after,
487 div
#serverstatus table .tblFooters a:after {
490 /* end serverstatus */
497 } // end styles 2.7.0
499 if ($_SESSION['PMA_Theme']->checkVersion('2.7.1')) {
502 /********************/
503 /* NEW in PMA 2.7.1 */
504 /********************/
507 body
.loginform a
.logo
{
521 background
-image
: url(<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/logo_right
.png
);
522 background
-position
: <?php
echo $right; ?
> bottom
;
523 background
-repeat
: no
-repeat
;
524 border
-bottom
: 1px solid silver
;
527 #mysqlmaininformation,
528 #pmamaininformation {
529 float: <?php
echo $left; ?
>;
534 list-style
-image
: url(<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/item_
<?php
echo $GLOBALS['text_dir']; ?
>.png
);
535 vertical
-align
: middle
;
539 margin
-bottom
: 0.3em
;
544 <?php
if ($GLOBALS['cfg']['MainPageIconic']) { ?
>
545 /* iconic view for ul items */
546 li
#li_create_database {
547 list-style
-image
: url(<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/b_newdb
.png
);
551 list-style
-image
: url(<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/s_lang
.png
);
554 li
#li_select_mysql_collation,
555 li
#li_select_mysql_charset {
556 list-style
-image
: url(<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/s_asci
.png
);
560 list-style
-image
: url(<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/s_theme
.png
);
564 list-style
-image
: url(<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/s_host
.png
);
568 /* list-style-image: url(<?php echo $GLOBALS['cfg']['ThemePath']; ?>/original/img/s_rights.png); */
572 list-style
-image
: url(<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/s_status
.png
);
575 li
#li_mysql_variables{
576 list-style
-image
: url(<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/s_vars
.png
);
579 li
#li_mysql_processes{
580 list-style
-image
: url(<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/s_process
.png
);
583 li
#li_mysql_collations{
584 list-style
-image
: url(<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/s_asci
.png
);
588 list-style
-image
: url(<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/b_engine
.png
);
591 li
#li_mysql_binlogs {
592 list-style
-image
: url(<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/s_tbl
.png
);
595 li
#li_mysql_databases {
596 list-style
-image
: url(<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/s_db
.png
);
600 list-style
-image
: url(<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/b_export
.png
);
604 list-style
-image
: url(<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/b_import
.png
);
607 li
#li_change_password {
608 list-style
-image
: url(<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/s_passwd
.png
);
612 list-style
-image
: url(<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/s_loggoff
.png
);
616 list-style
-image
: url(<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/b_docs
.png
);
620 list-style
-image
: url(<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/php_sym
.png
);
624 list-style
-image
: url(<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/b_home
.png
);
627 li
#li_mysql_privilegs{
628 list-style
-image
: url(<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/s_rights
.png
);
631 li
#li_switch_dbstats {
632 list-style
-image
: url(<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/b_dbstatistics
.png
);
635 li
#li_flush_privileges {
636 list-style
-image
: url(<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/s_reload
.png
);
638 /* END iconic view for ul items */
639 <?php
} /* end if $GLOBALS['cfg']['MainPageIconic'] */ ?
>
642 #body_browse_foreigners {
643 background
-color
: <?php
echo $cfg['LeftBgColor']; ?
>;
644 margin
: 5px
5px
0 5px
;
648 background
-color
: <?php
echo $cfg['LeftBgColor']; ?
>;
658 border
: 0.1em solid black
;
661 #bodythemes a:hover img {
662 border
: 0.1em solid red
;
665 #fieldset_select_fields {
675 border
-top
: 0.1em solid silver
;
676 text
-align
: <?php
echo $right; ?
>;
679 #table_innodb_bufferpool_usage,
680 #table_innodb_bufferpool_activity {
681 float: <?php
echo $left; ?
>;
684 #div_mysql_charset_collations table {
685 float: <?php
echo $left; ?
>;
690 float: <?php
echo $left; ?
>;
695 float: <?php
echo $left; ?
>;
700 float: <?php
echo $left; ?
>;
706 float: <?php
echo $left; ?
>;
709 #qbe_div_table_list {
710 float: <?php
echo $left; ?
>;
714 float: <?php
echo $left; ?
>;
717 $GLOBALS['cfg']['BgOne'] = $GLOBALS['cfg']['BgcolorOne'];
718 $GLOBALS['cfg']['BgTwo'] = $GLOBALS['cfg']['BgcolorTwo'];
719 } // end styles 2.7.1
721 if ($_SESSION['PMA_Theme']->checkVersion('2.9')) {
724 /********************/
726 /********************/
728 <?php
if ($GLOBALS['cfg']['BrowseMarkerColor']) { ?
>
732 background
: <?php
echo $GLOBALS['cfg']['BrowseMarkerBackground']; ?
>;
733 color
: <?php
echo $GLOBALS['cfg']['BrowseMarkerColor']; ?
>;
737 /* odd items 1,3,5,7,... */
739 background
: <?php
echo $GLOBALS['cfg']['BgOne']; ?
>;
742 /* even items 2,4,6,8,... */
744 background
: <?php
echo $GLOBALS['cfg']['BgTwo']; ?
>;
751 background
: <?php
echo $GLOBALS['cfg']['BrowsePointerBackground']; ?
>;
752 color
: <?php
echo $GLOBALS['cfg']['BrowsePointerColor']; ?
>;
756 * marks table rows/cells if the db field is in a where condition
762 border
: 1px solid
<?php
echo $GLOBALS['cfg']['BrowseMarkerBackground']; ?
>;
767 float: <?php
echo $left; ?
>;
774 body
.loginform div
.container
{
775 text
-align
: <?php
echo $left; ?
>;
780 #body_leftFrame #list_server {
781 list-style
-image
: url(<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/s_host
.png
);
782 list-style
-position
: inside
;
783 list-style
-type
: none
;
788 #body_leftFrame #list_server li {
796 $_SESSION['PMA_Theme_Manager']->printCss(PMA_FRAME
);