3 // vim: expandtab sw=4 ts=4 sts=4:
5 define('PMA_MINIMUM_COMMON', true);
6 require_once './libraries/common.lib.php';
7 require_once './libraries/sqlparser.lib.php';
9 // MSIE 6 (at least some unpatched versions) has problems loading CSS
10 // when zlib_compression is on
11 if (PMA_USR_BROWSER_AGENT
== 'IE' && PMA_USR_BROWSER_VER
== '6'
12 && (ini_get('zlib.output_compression')) ) {
13 ini_set('zlib.output_compression', 'Off');
16 if ($GLOBALS['text_dir'] === 'ltr') {
25 header('Content-Type: text/css; charset=ISO-8859-1');
27 // Cache output in client - the nocache query parameter makes sure that this
28 // file is reloaded when config changes
29 header('Expires: ' . gmdate('D, d M Y H:i:s', time() +
3600) . ' GMT');
33 font
-size
: <?php
echo $_SESSION['PMA_Config']->get('fontsize'); ?
>;
36 input
, select
, textarea
{
50 if ($_SESSION['PMA_Theme']->checkVersion('2.7.0')) {
64 /* server privileges */
66 #tablespecificuserrights td,
68 vertical
-align
: middle
;
70 /* END server privileges */
73 /* leave some space between icons and text */
75 vertical
-align
: middle
;
79 /* no extra space in table cells */
85 margin
-<?php
echo $right; ?
>: 0.3em
;
86 margin
-<?php
echo $left; ?
>: 0.6em
;
90 border
-bottom
: 0.1em solid
#669999;
92 padding
-bottom
: 0.5em
;
95 div
#tablestatistics table {
96 float: <?php
echo $left; ?
>;
101 div
#tablestatistics table caption {
106 /* left frame content */
107 body
#body_leftFrame {
108 background
-color
: <?php
echo $GLOBALS['cfg']['LeftBgColor']; ?
>;
115 border
-bottom
: 0.1em solid
#669999;
116 margin
-bottom
: 0.5em
;
117 padding
-bottom
: 0.5em
;
120 div
#leftframelinks .icon {
121 vertical
-align
: middle
;
126 div
#leftframelinks a:hover {
127 background
-color
: #669999;
130 /* leftdatabaselist */
131 div
#left_tableList ul {
132 list-style
-type
: none
;
133 list-style
-position
: outside
;
136 background
-color
: <?php
echo $GLOBALS['cfg']['LeftBgColor']; ?
>;
139 div
#left_tableList li {
145 <?php
if ($GLOBALS['cfg']['LeftPointerEnable']) { ?
>
146 div
#left_tableList li:hover {
147 background
-color
: <?php
echo $GLOBALS['cfg']['LeftPointerColor']; ?
>;
151 div
#left_tableList img {
153 vertical
-align
: middle
;
156 div
#left_tableList ul ul {
159 border
-left
: 0.1em solid
#669999;
160 padding
-bottom
: 0.1em
;
161 border
-bottom
: 0.1em solid
#669999;
163 /* END left frame content */
167 body
#bodyquerywindow {
172 div
#querywindowcontainer {
178 div
#querywindowcontainer fieldset {
181 /* END querywindow */
187 div
[class=formelementrow
],
188 div
[id
=queryfieldscontainer
] {
189 border
: 1px solid transparent
;
192 div
#sqlquerycontainer {
198 div
#tablefieldscontainer {
204 div
#tablefieldscontainer select {
214 div
#queryboxcontainer div#bookmarkoptions {
220 fieldset
.formelement
{
227 /* revert for Gecko */
228 fieldset div
[class=formelement
] {
233 fieldset
.formelement input
,
234 fieldset
.formelement select
{
236 margin
-bottom
: 0.5em
;
238 /* revert for Gecko */
239 fieldset div
[class=formelement
] input
,
240 fieldset div
[class=formelement
] select
{
247 table
.calendar
{ width
: 100%
; }
248 table
.calendar td
{ text
-align
: center
; }
249 table
.calendar td a
{ display
: block
; }
251 table
.calendar td a
:hover
{
252 background
-color
: <?php
echo $GLOBALS['cfg']['BrowsePointerColor']; ?
>;
256 background
-color
: <?php
echo $GLOBALS['cfg']['ThBgcolor']; ?
>;
259 table
.calendar td
.selected
{
260 background
-color
: <?php
echo $GLOBALS['cfg']['BrowseMarkerColor']; ?
>;
263 img
.calendar
{ border
: none
; }
264 form
.clock
{ text
-align
: center
; }
268 /* Options, eg. on import page */
270 background
-color
: <?php
echo $GLOBALS['cfg']['BgcolorOne']; ?
>;
273 background
-color
: transparent
;
276 /* buttons in some browsers (eg. Konqueror) are block elements, this breaks design */
277 button
{ display
: inline
; }
280 textarea
{ overflow
: auto
; }
285 /* Gecko 1.7 bug (FF 1.0) */
287 border
: 1px solid
<?php
echo $GLOBALS['cfg']['RightBgColor']; ?
>;
292 list-style
-type
: none
;
301 vertical
-align
: middle
;
305 vertical
-align
: middle
;
309 /* default tab styles */
310 .tab
, .tabcaution
, .tabactive
{
312 margin
: 0.2em
0.2em
0 0.2em
;
313 padding
: 0.2em
0.2em
0 0.2em
;
322 /* disabled drop/empty tabs */
327 /* enabled drop/empty tabs */
333 background
-color
: #FF0000;
336 <?php
if ($GLOBALS['cfg']['LightTabs']) { ?
>
344 padding
: 0.1em
0.3em
0.1em
0.3em
;
348 border
-bottom
: 1pt solid black
;
351 /* default tab styles */
352 .tab
, .tabcaution
, .tabactive
{
353 background
-color
: <?php
echo $GLOBALS['cfg']['BgcolorOne']; ?
>;
354 border
: 1pt solid
<?php
echo $GLOBALS['cfg']['BgcolorTwo']; ?
>;
356 border
-top
-left
-radius
: 0.4em
;
357 border
-top
-right
-radius
: 0.4em
;
360 /* enabled hover/active tabs */
361 a
.tab
:hover
, a
.tabcaution
:hover
, .tabactive
, .tabactive
:hover
{
363 padding
: 0.2em
0.4em
0.2em
0.4em
;
364 text
-decoration
: none
;
367 a
.tab
:hover
, .tabactive
{
368 background
-color
: <?php
echo $GLOBALS['cfg']['BgcolorTwo']; ?
>;
371 /* disabled drop/empty tabs */
372 span
.tab
, span
.tabcaution
{
373 cursor
: url(<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/error
.ico
), default;
384 padding
: 0.1em
0.5em
0.1em
0.5em
;
390 /* odd table rows 1,3,5,7,... */
393 background
-color
: <?php
echo $GLOBALS['cfg']['BgcolorOne']; ?
>;
396 /* even table rows 2,4,6,8,... */
399 background
-color
: <?php
echo $GLOBALS['cfg']['BgcolorTwo']; ?
>;
402 /* marked table rows */
405 background
-color
: <?php
echo $GLOBALS['cfg']['BrowseMarkerColor']; ?
>;
408 /* hovered table rows */
411 table tr
.odd
:hover th
,
412 table tr
.even
:hover th
,
415 background
-color
: <?php
echo $GLOBALS['cfg']['BrowsePointerColor']; ?
>;
422 /* IE doesnt handles 'pre' right */
423 table
[class=value
] {
428 font
-family
: "Courier New", Courier
, monospace
;
440 div
#serverstatus table caption a.top {
444 div
#serverstatus div#serverstatusqueriesdetails table,
445 div
#serverstatus table#serverstatustraffic,
446 div
#serverstatus table#serverstatusconnections {
450 #serverstatussection,
454 div
#serverstatussection table {
458 div
#serverstatussection table .name {
461 div
#serverstatussection table .value {
465 div
#serverstatus table tbody td.descr a,
466 div
#serverstatus table .tblFooters a {
469 div
#serverstatus div#statuslinks a:before,
470 div
#serverstatus div#sectionlinks a:before,
471 div
#serverstatus table tbody td.descr a:before,
472 div
#serverstatus table .tblFooters a:before {
475 div
#serverstatus div#statuslinks a:after,
476 div
#serverstatus div#sectionlinks a:after,
477 div
#serverstatus table tbody td.descr a:after,
478 div
#serverstatus table .tblFooters a:after {
481 /* end serverstatus */
488 } // end styles 2.7.0
490 if ($_SESSION['PMA_Theme']->checkVersion('2.7.1')) {
493 /********************/
494 /* NEW in PMA 2.7.1 */
495 /********************/
498 body
.loginform a
.logo
{
512 background
-image
: url(<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/logo_right
.png
);
513 background
-position
: <?php
echo $right; ?
> bottom
;
514 background
-repeat
: no
-repeat
;
515 border
-bottom
: 1px solid silver
;
518 #mysqlmaininformation,
519 #pmamaininformation {
520 float: <?php
echo $left; ?
>;
525 list-style
-image
: url(<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/item_
<?php
echo $GLOBALS['text_dir']; ?
>.png
);
526 vertical
-align
: middle
;
530 margin
-bottom
: 0.3em
;
535 <?php
if ($GLOBALS['cfg']['MainPageIconic']) { ?
>
536 /* iconic view for ul items */
537 li
#li_create_database {
538 list-style
-image
: url(<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/b_newdb
.png
);
542 list-style
-image
: url(<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/s_lang
.png
);
545 li
#li_select_mysql_collation,
546 li
#li_select_mysql_charset {
547 list-style
-image
: url(<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/s_asci
.png
);
551 list-style
-image
: url(<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/s_theme
.png
);
555 list-style
-image
: url(<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/s_host
.png
);
559 /* list-style-image: url(<?php echo $GLOBALS['cfg']['ThemePath']; ?>/original/img/s_rights.png); */
563 list-style
-image
: url(<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/s_status
.png
);
566 li
#li_mysql_variables{
567 list-style
-image
: url(<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/s_vars
.png
);
570 li
#li_mysql_processes{
571 list-style
-image
: url(<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/s_process
.png
);
574 li
#li_mysql_collations{
575 list-style
-image
: url(<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/s_asci
.png
);
579 list-style
-image
: url(<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/b_engine
.png
);
582 li
#li_mysql_binlogs {
583 list-style
-image
: url(<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/s_tbl
.png
);
586 li
#li_mysql_databases {
587 list-style
-image
: url(<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/s_db
.png
);
591 list-style
-image
: url(<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/b_export
.png
);
595 list-style
-image
: url(<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/b_import
.png
);
598 li
#li_change_password {
599 list-style
-image
: url(<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/s_passwd
.png
);
603 list-style
-image
: url(<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/s_loggoff
.png
);
607 list-style
-image
: url(<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/b_docs
.png
);
611 list-style
-image
: url(<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/php_sym
.png
);
615 list-style
-image
: url(<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/b_home
.png
);
618 li
#li_mysql_privilegs{
619 list-style
-image
: url(<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/s_rights
.png
);
622 li
#li_switch_dbstats {
623 list-style
-image
: url(<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/b_dbstatistics
.png
);
626 li
#li_flush_privileges {
627 list-style
-image
: url(<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/s_reload
.png
);
629 /* END iconic view for ul items */
630 <?php
} /* end if $GLOBALS['cfg']['MainPageIconic'] */ ?
>
633 #body_browse_foreigners {
634 background
-color
: <?php
echo $cfg['LeftBgColor']; ?
>;
635 margin
: 5px
5px
0 5px
;
639 background
-color
: <?php
echo $cfg['LeftBgColor']; ?
>;
649 border
: 0.1em solid black
;
652 #bodythemes a:hover img {
653 border
: 0.1em solid red
;
656 #fieldset_select_fields {
666 border
-top
: 0.1em solid silver
;
667 text
-align
: <?php
echo $right; ?
>;
670 #table_innodb_bufferpool_usage,
671 #table_innodb_bufferpool_activity {
672 float: <?php
echo $left; ?
>;
675 #div_mysql_charset_collations table {
676 float: <?php
echo $left; ?
>;
681 float: <?php
echo $left; ?
>;
686 float: <?php
echo $left; ?
>;
691 float: <?php
echo $left; ?
>;
697 float: <?php
echo $left; ?
>;
700 #qbe_div_table_list {
701 float: <?php
echo $left; ?
>;
705 float: <?php
echo $left; ?
>;
708 $GLOBALS['cfg']['BgOne'] = $GLOBALS['cfg']['BgcolorOne'];
709 $GLOBALS['cfg']['BgTwo'] = $GLOBALS['cfg']['BgcolorTwo'];
710 } // end styles 2.7.1
712 if ($_SESSION['PMA_Theme']->checkVersion('2.9')) {
715 /********************/
717 /********************/
719 <?php
if ($GLOBALS['cfg']['BrowseMarkerColor']) { ?
>
723 background
: <?php
echo $GLOBALS['cfg']['BrowseMarkerBackground']; ?
>;
724 color
: <?php
echo $GLOBALS['cfg']['BrowseMarkerColor']; ?
>;
728 /* odd items 1,3,5,7,... */
730 background
: <?php
echo $GLOBALS['cfg']['BgOne']; ?
>;
733 /* even items 2,4,6,8,... */
735 background
: <?php
echo $GLOBALS['cfg']['BgTwo']; ?
>;
742 background
: <?php
echo $GLOBALS['cfg']['BrowsePointerBackground']; ?
>;
743 color
: <?php
echo $GLOBALS['cfg']['BrowsePointerColor']; ?
>;
747 * marks table rows/cells if the db field is in a where condition
753 border
: 1px solid
<?php
echo $GLOBALS['cfg']['BrowseMarkerBackground']; ?
>;
758 float: <?php
echo $left; ?
>;
765 body
.loginform div
.container
{
766 text
-align
: <?php
echo $left; ?
>;
771 #body_leftFrame #list_server {
772 list-style
-image
: url(<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/s_host
.png
);
773 list-style
-position
: inside
;
774 list-style
-type
: none
;
779 #body_leftFrame #list_server li {
787 $_SESSION['PMA_Theme_Manager']->printCss($_REQUEST['js_frame']);