2 /* vim: set expandtab sw=4 ts=4 sts=4: */
11 define('PMA_MINIMUM_COMMON', true);
12 require_once './libraries/common.inc.php';
13 require_once './libraries/sqlparser.lib.php';
15 // MSIE 6 (at least some unpatched versions) has problems loading CSS
16 // when zlib_compression is on
17 if (PMA_USR_BROWSER_AGENT
== 'IE' && PMA_USR_BROWSER_VER
== '6'
18 && (ini_get('zlib.output_compression'))) {
19 ini_set('zlib.output_compression', 'Off');
22 if ($GLOBALS['text_dir'] === 'ltr') {
31 header('Content-Type: text/css; charset=ISO-8859-1');
33 // Cache output in client - the nocache query parameter makes sure that this
34 // file is reloaded when config changes
35 header('Expires: ' . gmdate('D, d M Y H:i:s', time() +
3600) . ' GMT');
39 font
-size
: <?php
echo $_SESSION['PMA_Config']->get('fontsize'); ?
>;
42 input
, select
, textarea
{
56 if ($_SESSION['PMA_Theme']->checkVersion('2.7.0')) {
70 /* server privileges */
72 #tablespecificuserrights td,
74 vertical
-align
: middle
;
76 /* END server privileges */
79 /* leave some space between icons and text */
81 vertical
-align
: middle
;
85 /* no extra space in table cells */
91 margin
-<?php
echo $right; ?
>: 0.3em
;
92 margin
-<?php
echo $left; ?
>: 0.6em
;
96 border
-bottom
: 0.1em solid
#669999;
98 padding
-bottom
: 0.5em
;
101 div
#tablestatistics table {
102 float: <?php
echo $left; ?
>;
103 margin
-bottom
: 0.5em
;
107 div
#tablestatistics table caption {
112 /* left frame content */
113 body
#body_leftFrame {
114 background
-color
: <?php
echo $GLOBALS['cfg']['LeftBgColor']; ?
>;
121 border
-bottom
: 0.1em solid
#669999;
122 margin
-bottom
: 0.5em
;
123 padding
-bottom
: 0.5em
;
126 div
#leftframelinks .icon {
127 vertical
-align
: middle
;
132 div
#leftframelinks a:hover {
133 background
-color
: #669999;
136 /* leftdatabaselist */
137 div
#left_tableList ul {
138 list-style
-type
: none
;
139 list-style
-position
: outside
;
142 background
-color
: <?php
echo $GLOBALS['cfg']['LeftBgColor']; ?
>;
145 div
#left_tableList li {
151 <?php
if ($GLOBALS['cfg']['LeftPointerEnable']) { ?
>
152 div
#left_tableList li:hover {
153 background
-color
: <?php
echo $GLOBALS['cfg']['LeftPointerColor']; ?
>;
157 div
#left_tableList img {
159 vertical
-align
: middle
;
162 div
#left_tableList ul ul {
165 border
-left
: 0.1em solid
#669999;
166 padding
-bottom
: 0.1em
;
167 border
-bottom
: 0.1em solid
#669999;
169 /* END left frame content */
173 body
#bodyquerywindow {
178 div
#querywindowcontainer {
184 div
#querywindowcontainer fieldset {
187 /* END querywindow */
193 div
[class=formelementrow
],
194 div
[id
=queryfieldscontainer
] {
195 border
: 1px solid transparent
;
198 div
#sqlquerycontainer {
204 div
#tablefieldscontainer {
210 div
#tablefieldscontainer select {
220 div
#queryboxcontainer div#bookmarkoptions {
226 fieldset
.formelement
{
233 /* revert for Gecko */
234 fieldset div
[class=formelement
] {
239 fieldset
.formelement input
,
240 fieldset
.formelement select
{
242 margin
-bottom
: 0.5em
;
244 /* revert for Gecko */
245 fieldset div
[class=formelement
] input
,
246 fieldset div
[class=formelement
] select
{
253 table
.calendar
{ width
: 100%
; }
254 table
.calendar td
{ text
-align
: center
; }
255 table
.calendar td a
{ display
: block
; }
257 table
.calendar td a
:hover
{
258 background
-color
: <?php
echo $GLOBALS['cfg']['BrowsePointerColor']; ?
>;
262 background
-color
: <?php
echo $GLOBALS['cfg']['ThBgcolor']; ?
>;
265 table
.calendar td
.selected
{
266 background
-color
: <?php
echo $GLOBALS['cfg']['BrowseMarkerColor']; ?
>;
269 img
.calendar
{ border
: none
; }
270 form
.clock
{ text
-align
: center
; }
274 /* Options, eg. on import page */
276 background
-color
: <?php
echo $GLOBALS['cfg']['BgcolorOne']; ?
>;
279 background
-color
: transparent
;
282 /* buttons in some browsers (eg. Konqueror) are block elements, this breaks design */
283 button
{ display
: inline
; }
286 textarea
{ overflow
: auto
; }
291 /* Gecko 1.7 bug (FF 1.0) */
293 border
: 1px solid
<?php
echo $GLOBALS['cfg']['RightBgColor']; ?
>;
298 list-style
-type
: none
;
307 vertical
-align
: middle
;
311 vertical
-align
: middle
;
315 /* default tab styles */
316 .tab
, .tabcaution
, .tabactive
{
318 margin
: 0.2em
0.2em
0 0.2em
;
319 padding
: 0.2em
0.2em
0 0.2em
;
328 /* disabled drop/empty tabs */
333 /* enabled drop/empty tabs */
339 background
-color
: #FF0000;
342 <?php
if ($GLOBALS['cfg']['LightTabs']) { ?
>
350 padding
: 0.1em
0.3em
0.1em
0.3em
;
354 border
-bottom
: 1pt solid black
;
357 /* default tab styles */
358 .tab
, .tabcaution
, .tabactive
{
359 background
-color
: <?php
echo $GLOBALS['cfg']['BgcolorOne']; ?
>;
360 border
: 1pt solid
<?php
echo $GLOBALS['cfg']['BgcolorTwo']; ?
>;
362 border
-top
-left
-radius
: 0.4em
;
363 border
-top
-right
-radius
: 0.4em
;
366 /* enabled hover/active tabs */
367 a
.tab
:hover
, a
.tabcaution
:hover
, .tabactive
, .tabactive
:hover
{
369 padding
: 0.2em
0.4em
0.2em
0.4em
;
370 text
-decoration
: none
;
373 a
.tab
:hover
, .tabactive
{
374 background
-color
: <?php
echo $GLOBALS['cfg']['BgcolorTwo']; ?
>;
377 /* disabled drop/empty tabs */
378 span
.tab
, span
.tabcaution
{
379 cursor
: url(<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/error
.ico
), default;
390 padding
: 0.1em
0.5em
0.1em
0.5em
;
396 /* odd table rows 1,3,5,7,... */
399 background
-color
: <?php
echo $GLOBALS['cfg']['BgcolorOne']; ?
>;
402 /* even table rows 2,4,6,8,... */
405 background
-color
: <?php
echo $GLOBALS['cfg']['BgcolorTwo']; ?
>;
408 /* marked table rows */
411 background
-color
: <?php
echo $GLOBALS['cfg']['BrowseMarkerColor']; ?
>;
414 /* hovered table rows */
417 table tr
.odd
:hover th
,
418 table tr
.even
:hover th
,
421 background
-color
: <?php
echo $GLOBALS['cfg']['BrowsePointerColor']; ?
>;
428 /* IE doesnt handles 'pre' right */
429 table
[class=value
] {
434 font
-family
: "Courier New", Courier
, monospace
;
446 div
#serverstatus table caption a.top {
450 div
#serverstatus div#serverstatusqueriesdetails table,
451 div
#serverstatus table#serverstatustraffic,
452 div
#serverstatus table#serverstatusconnections {
456 #serverstatussection,
460 div
#serverstatussection table {
464 div
#serverstatussection table .name {
467 div
#serverstatussection table .value {
471 div
#serverstatus table tbody td.descr a,
472 div
#serverstatus table .tblFooters a {
475 div
#serverstatus div#statuslinks a:before,
476 div
#serverstatus div#sectionlinks a:before,
477 div
#serverstatus table tbody td.descr a:before,
478 div
#serverstatus table .tblFooters a:before {
481 div
#serverstatus div#statuslinks a:after,
482 div
#serverstatus div#sectionlinks a:after,
483 div
#serverstatus table tbody td.descr a:after,
484 div
#serverstatus table .tblFooters a:after {
487 /* end serverstatus */
494 } // end styles 2.7.0
496 if ($_SESSION['PMA_Theme']->checkVersion('2.7.1')) {
499 /********************/
500 /* NEW in PMA 2.7.1 */
501 /********************/
504 body
.loginform a
.logo
{
518 background
-image
: url(<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/logo_right
.png
);
519 background
-position
: <?php
echo $right; ?
> bottom
;
520 background
-repeat
: no
-repeat
;
521 border
-bottom
: 1px solid silver
;
524 #mysqlmaininformation,
525 #pmamaininformation {
526 float: <?php
echo $left; ?
>;
531 list-style
-image
: url(<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/item_
<?php
echo $GLOBALS['text_dir']; ?
>.png
);
532 vertical
-align
: middle
;
536 margin
-bottom
: 0.3em
;
541 <?php
if ($GLOBALS['cfg']['MainPageIconic']) { ?
>
542 /* iconic view for ul items */
543 li
#li_create_database {
544 list-style
-image
: url(<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/b_newdb
.png
);
548 list-style
-image
: url(<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/s_lang
.png
);
551 li
#li_select_mysql_collation,
552 li
#li_select_mysql_charset {
553 list-style
-image
: url(<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/s_asci
.png
);
557 list-style
-image
: url(<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/s_theme
.png
);
561 list-style
-image
: url(<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/s_host
.png
);
565 /* list-style-image: url(<?php echo $GLOBALS['cfg']['ThemePath']; ?>/original/img/s_rights.png); */
569 list-style
-image
: url(<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/s_status
.png
);
572 li
#li_mysql_variables{
573 list-style
-image
: url(<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/s_vars
.png
);
576 li
#li_mysql_processes{
577 list-style
-image
: url(<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/s_process
.png
);
580 li
#li_mysql_collations{
581 list-style
-image
: url(<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/s_asci
.png
);
585 list-style
-image
: url(<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/b_engine
.png
);
588 li
#li_mysql_binlogs {
589 list-style
-image
: url(<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/s_tbl
.png
);
592 li
#li_mysql_databases {
593 list-style
-image
: url(<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/s_db
.png
);
597 list-style
-image
: url(<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/b_export
.png
);
601 list-style
-image
: url(<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/b_import
.png
);
604 li
#li_change_password {
605 list-style
-image
: url(<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/s_passwd
.png
);
609 list-style
-image
: url(<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/s_loggoff
.png
);
613 list-style
-image
: url(<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/b_docs
.png
);
617 list-style
-image
: url(<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/php_sym
.png
);
621 list-style
-image
: url(<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/b_home
.png
);
624 li
#li_mysql_privilegs{
625 list-style
-image
: url(<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/s_rights
.png
);
628 li
#li_switch_dbstats {
629 list-style
-image
: url(<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/b_dbstatistics
.png
);
632 li
#li_flush_privileges {
633 list-style
-image
: url(<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/s_reload
.png
);
635 /* END iconic view for ul items */
636 <?php
} /* end if $GLOBALS['cfg']['MainPageIconic'] */ ?
>
639 #body_browse_foreigners {
640 background
-color
: <?php
echo $cfg['LeftBgColor']; ?
>;
641 margin
: 5px
5px
0 5px
;
645 background
-color
: <?php
echo $cfg['LeftBgColor']; ?
>;
655 border
: 0.1em solid black
;
658 #bodythemes a:hover img {
659 border
: 0.1em solid red
;
662 #fieldset_select_fields {
672 border
-top
: 0.1em solid silver
;
673 text
-align
: <?php
echo $right; ?
>;
676 #table_innodb_bufferpool_usage,
677 #table_innodb_bufferpool_activity {
678 float: <?php
echo $left; ?
>;
681 #div_mysql_charset_collations table {
682 float: <?php
echo $left; ?
>;
687 float: <?php
echo $left; ?
>;
692 float: <?php
echo $left; ?
>;
697 float: <?php
echo $left; ?
>;
703 float: <?php
echo $left; ?
>;
706 #qbe_div_table_list {
707 float: <?php
echo $left; ?
>;
711 float: <?php
echo $left; ?
>;
714 $GLOBALS['cfg']['BgOne'] = $GLOBALS['cfg']['BgcolorOne'];
715 $GLOBALS['cfg']['BgTwo'] = $GLOBALS['cfg']['BgcolorTwo'];
716 } // end styles 2.7.1
718 if ($_SESSION['PMA_Theme']->checkVersion('2.9')) {
721 /********************/
723 /********************/
725 <?php
if ($GLOBALS['cfg']['BrowseMarkerColor']) { ?
>
729 background
: <?php
echo $GLOBALS['cfg']['BrowseMarkerBackground']; ?
>;
730 color
: <?php
echo $GLOBALS['cfg']['BrowseMarkerColor']; ?
>;
734 /* odd items 1,3,5,7,... */
736 background
: <?php
echo $GLOBALS['cfg']['BgOne']; ?
>;
739 /* even items 2,4,6,8,... */
741 background
: <?php
echo $GLOBALS['cfg']['BgTwo']; ?
>;
748 background
: <?php
echo $GLOBALS['cfg']['BrowsePointerBackground']; ?
>;
749 color
: <?php
echo $GLOBALS['cfg']['BrowsePointerColor']; ?
>;
753 * marks table rows/cells if the db field is in a where condition
759 border
: 1px solid
<?php
echo $GLOBALS['cfg']['BrowseMarkerBackground']; ?
>;
764 float: <?php
echo $left; ?
>;
771 body
.loginform div
.container
{
772 text
-align
: <?php
echo $left; ?
>;
777 #body_leftFrame #list_server {
778 list-style
-image
: url(<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/s_host
.png
);
779 list-style
-position
: inside
;
780 list-style
-type
: none
;
785 #body_leftFrame #list_server li {
793 $_SESSION['PMA_Theme_Manager']->printCss($_REQUEST['js_frame']);