3 // vim: expandtab sw=4 ts=4 sts=4:
6 define('PMA_MINIMUM_COMMON', true);
7 require_once './libraries/common.lib.php';
8 require_once './libraries/sqlparser.lib.php';
10 if ($GLOBALS['text_dir'] === 'ltr') {
19 header('Content-Type: text/css; charset=ISO-8859-1');
23 font
-size
: <?php
echo $_SESSION['PMA_Config']->get('fontsize'); ?
>;
26 input
, select
, textarea
{
40 if ($_SESSION['PMA_Theme']->checkVersion('2.7.0')) {
54 /* server privileges */
56 #tablespecificuserrights td,
58 vertical
-align
: middle
;
60 /* END server privileges */
63 /* leave some space between icons and text */
65 vertical
-align
: middle
;
69 /* no extra space in table cells */
75 margin
-<?php
echo $right; ?
>: 0.3em
;
76 margin
-<?php
echo $left; ?
>: 0.6em
;
80 border
-bottom
: 0.1em solid
#669999;
82 padding
-bottom
: 0.5em
;
85 div
#tablestatistics table {
86 float: <?php
echo $left; ?
>;
91 div
#tablestatistics table caption {
96 /* left frame content */
98 background
-color
: <?php
echo $GLOBALS['cfg']['LeftBgColor']; ?
>;
105 border
-bottom
: 0.1em solid
#669999;
106 margin
-bottom
: 0.5em
;
107 padding
-bottom
: 0.5em
;
110 div
#leftframelinks .icon {
111 vertical
-align
: middle
;
116 div
#leftframelinks a:hover {
117 background
-color
: #669999;
120 /* leftdatabaselist */
121 div
#left_tableList ul {
122 list-style
-type
: none
;
123 list-style
-position
: outside
;
126 background
-color
: <?php
echo $GLOBALS['cfg']['LeftBgColor']; ?
>;
129 div
#left_tableList li {
135 <?php
if ($GLOBALS['cfg']['LeftPointerEnable']) { ?
>
136 div
#left_tableList li:hover {
137 background
-color
: <?php
echo $GLOBALS['cfg']['LeftPointerColor']; ?
>;
141 div
#left_tableList img {
143 vertical
-align
: middle
;
146 div
#left_tableList ul ul {
149 border
-left
: 0.1em solid
#669999;
150 padding
-bottom
: 0.1em
;
151 border
-bottom
: 0.1em solid
#669999;
153 /* END left frame content */
157 body
#bodyquerywindow {
162 div
#querywindowcontainer {
168 div
#querywindowcontainer fieldset {
171 /* END querywindow */
177 div
[class=formelementrow
],
178 div
[id
=queryfieldscontainer
] {
179 border
: 1px solid transparent
;
182 div
#sqlquerycontainer {
188 div
#tablefieldscontainer {
194 div
#tablefieldscontainer select {
204 div
#queryboxcontainer div#bookmarkoptions {
210 fieldset
.formelement
{
217 /* revert for Gecko */
218 fieldset div
[class=formelement
] {
223 fieldset
.formelement input
,
224 fieldset
.formelement select
{
226 margin
-bottom
: 0.5em
;
228 /* revert for Gecko */
229 fieldset div
[class=formelement
] input
,
230 fieldset div
[class=formelement
] select
{
237 table
.calendar
{ width
: 100%
; }
238 table
.calendar td
{ text
-align
: center
; }
239 table
.calendar td a
{ display
: block
; }
241 table
.calendar td a
:hover
{
242 background
-color
: <?php
echo $GLOBALS['cfg']['BrowsePointerColor']; ?
>;
246 background
-color
: <?php
echo $GLOBALS['cfg']['ThBgcolor']; ?
>;
249 table
.calendar td
.selected
{
250 background
-color
: <?php
echo $GLOBALS['cfg']['BrowseMarkerColor']; ?
>;
253 img
.calendar
{ border
: none
; }
254 form
.clock
{ text
-align
: center
; }
258 /* Options, eg. on import page */
260 background
-color
: <?php
echo $GLOBALS['cfg']['BgcolorOne']; ?
>;
263 background
-color
: transparent
;
266 /* buttons in some browsers (eg. Konqueror) are block elements, this breaks design */
267 button
{ display
: inline
; }
270 textarea
{ overflow
: auto
; }
275 /* Gecko 1.7 bug (FF 1.0) */
277 border
: 1px solid
<?php
echo $GLOBALS['cfg']['RightBgColor']; ?
>;
282 list-style
-type
: none
;
291 vertical
-align
: middle
;
295 vertical
-align
: middle
;
299 /* default tab styles */
300 .tab
, .tabcaution
, .tabactive
{
302 margin
: 0.2em
0.2em
0 0.2em
;
303 padding
: 0.2em
0.2em
0 0.2em
;
312 /* disabled drop/empty tabs */
317 /* enabled drop/empty tabs */
323 background
-color
: #FF0000;
326 <?php
if ($GLOBALS['cfg']['LightTabs']) { ?
>
334 padding
: 0.1em
0.3em
0.1em
0.3em
;
338 border
-bottom
: 1pt solid black
;
341 /* default tab styles */
342 .tab
, .tabcaution
, .tabactive
{
343 background
-color
: <?php
echo $GLOBALS['cfg']['BgcolorOne']; ?
>;
344 border
: 1pt solid
<?php
echo $GLOBALS['cfg']['BgcolorTwo']; ?
>;
346 border
-top
-left
-radius
: 0.4em
;
347 border
-top
-right
-radius
: 0.4em
;
350 /* enabled hover/active tabs */
351 a
.tab
:hover
, a
.tabcaution
:hover
, .tabactive
, .tabactive
:hover
{
353 padding
: 0.2em
0.4em
0.2em
0.4em
;
354 text
-decoration
: none
;
357 a
.tab
:hover
, .tabactive
{
358 background
-color
: <?php
echo $GLOBALS['cfg']['BgcolorTwo']; ?
>;
361 /* disabled drop/empty tabs */
362 span
.tab
, span
.tabcaution
{
363 cursor
: url(<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/error
.ico
), url(../<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/error
.ico
), default;
374 padding
: 0.1em
0.5em
0.1em
0.5em
;
380 /* odd table rows 1,3,5,7,... */
383 background
-color
: <?php
echo $GLOBALS['cfg']['BgcolorOne']; ?
>;
386 /* even table rows 2,4,6,8,... */
389 background
-color
: <?php
echo $GLOBALS['cfg']['BgcolorTwo']; ?
>;
392 /* marked table rows */
395 background
-color
: <?php
echo $GLOBALS['cfg']['BrowseMarkerColor']; ?
>;
398 /* hovered table rows */
401 table tr
.odd
:hover th
,
402 table tr
.even
:hover th
,
405 background
-color
: <?php
echo $GLOBALS['cfg']['BrowsePointerColor']; ?
>;
412 /* IE doesnt handles 'pre' right */
413 table
[class=value
] {
418 font
-family
: "Courier New", Courier
, monospace
;
430 div
#serverstatus table caption a.top {
434 div
#serverstatus div#serverstatusqueriesdetails table,
435 div
#serverstatus table#serverstatustraffic,
436 div
#serverstatus table#serverstatusconnections {
440 #serverstatussection,
444 div
#serverstatussection table {
448 div
#serverstatussection table .name {
451 div
#serverstatussection table .value {
455 div
#serverstatus table tbody td.descr a,
456 div
#serverstatus table .tblFooters a {
459 div
#serverstatus div#statuslinks a:before,
460 div
#serverstatus div#sectionlinks a:before,
461 div
#serverstatus table tbody td.descr a:before,
462 div
#serverstatus table .tblFooters a:before {
465 div
#serverstatus div#statuslinks a:after,
466 div
#serverstatus div#sectionlinks a:after,
467 div
#serverstatus table tbody td.descr a:after,
468 div
#serverstatus table .tblFooters a:after {
471 /* end serverstatus */
478 } // end styles 2.7.0
480 if ($_SESSION['PMA_Theme']->checkVersion('2.7.1')) {
483 /********************/
484 /* NEW in PMA 2.7.1 */
485 /********************/
488 body
.loginform a
.logo
{
502 background
-image
: url(../<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/logo_right
.png
);
503 background
-position
: <?php
echo $right; ?
> bottom
;
504 background
-repeat
: no
-repeat
;
505 border
-bottom
: 1px solid silver
;
508 #mysqlmaininformation,
509 #pmamaininformation {
510 float: <?php
echo $left; ?
>;
515 list-style
-image
: url(../<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/item_
<?php
echo $GLOBALS['text_dir']; ?
>.png
);
516 vertical
-align
: middle
;
520 margin
-bottom
: 0.3em
;
525 <?php
if ($GLOBALS['cfg']['MainPageIconic']) { ?
>
526 /* iconic view for ul items */
527 li
#li_create_database {
528 list-style
-image
: url(../<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/b_newdb
.png
);
532 list-style
-image
: url(../<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/s_lang
.png
);
535 li
#li_select_mysql_collation,
536 li
#li_select_mysql_charset {
537 list-style
-image
: url(../<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/s_asci
.png
);
541 list-style
-image
: url(../<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/s_theme
.png
);
545 list-style
-image
: url(../<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/s_host
.png
);
549 /* list-style-image: url(../<?php echo $GLOBALS['cfg']['ThemePath']; ?>/original/img/s_rights.png); */
553 list-style
-image
: url(../<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/s_status
.png
);
556 li
#li_mysql_variables{
557 list-style
-image
: url(../<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/s_vars
.png
);
560 li
#li_mysql_processes{
561 list-style
-image
: url(../<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/s_process
.png
);
564 li
#li_mysql_collations{
565 list-style
-image
: url(../<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/s_asci
.png
);
569 list-style
-image
: url(../<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/b_engine
.png
);
572 li
#li_mysql_binlogs {
573 list-style
-image
: url(../<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/s_tbl
.png
);
576 li
#li_mysql_databases {
577 list-style
-image
: url(../<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/s_db
.png
);
581 list-style
-image
: url(../<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/b_export
.png
);
585 list-style
-image
: url(../<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/b_import
.png
);
588 li
#li_change_password {
589 list-style
-image
: url(../<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/s_passwd
.png
);
593 list-style
-image
: url(../<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/s_loggoff
.png
);
597 list-style
-image
: url(../<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/b_docs
.png
);
601 list-style
-image
: url(../<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/php_sym
.png
);
605 list-style
-image
: url(../<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/b_home
.png
);
608 li
#li_mysql_privilegs{
609 list-style
-image
: url(../<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/s_rights
.png
);
612 li
#li_switch_dbstats {
613 list-style
-image
: url(../<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/b_dbstatistics
.png
);
616 li
#li_flush_privileges {
617 list-style
-image
: url(../<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/s_reload
.png
);
619 /* END iconic view for ul items */
620 <?php
} /* end if $GLOBALS['cfg']['MainPageIconic'] */ ?
>
623 #body_browse_foreigners {
624 background
-color
: <?php
echo $cfg['LeftBgColor']; ?
>;
625 margin
: 5px
5px
0 5px
;
629 background
-color
: <?php
echo $cfg['LeftBgColor']; ?
>;
639 border
: 0.1em solid black
;
642 #bodythemes a:hover img {
643 border
: 0.1em solid red
;
646 #fieldset_select_fields {
656 border
-top
: 0.1em solid silver
;
657 text
-align
: <?php
echo $right; ?
>;
660 #table_innodb_bufferpool_usage,
661 #table_innodb_bufferpool_activity {
662 float: <?php
echo $left; ?
>;
665 #div_mysql_charset_collations table {
666 float: <?php
echo $left; ?
>;
671 float: <?php
echo $left; ?
>;
676 float: <?php
echo $left; ?
>;
681 float: <?php
echo $left; ?
>;
687 float: <?php
echo $left; ?
>;
690 #qbe_div_table_list {
691 float: <?php
echo $left; ?
>;
695 float: <?php
echo $left; ?
>;
698 $GLOBALS['cfg']['BgOne'] = $GLOBALS['cfg']['BgcolorOne'];
699 $GLOBALS['cfg']['BgTwo'] = $GLOBALS['cfg']['BgcolorTwo'];
700 } // end styles 2.7.1
702 if ($_SESSION['PMA_Theme']->checkVersion('2.9')) {
705 /********************/
707 /********************/
709 <?php
if ($GLOBALS['cfg']['BrowseMarkerColor']) { ?
>
713 background
: <?php
echo $GLOBALS['cfg']['BrowseMarkerBackground']; ?
>;
714 color
: <?php
echo $GLOBALS['cfg']['BrowseMarkerColor']; ?
>;
718 /* odd items 1,3,5,7,... */
720 background
: <?php
echo $GLOBALS['cfg']['BgOne']; ?
>;
723 /* even items 2,4,6,8,... */
725 background
: <?php
echo $GLOBALS['cfg']['BgTwo']; ?
>;
732 background
: <?php
echo $GLOBALS['cfg']['BrowsePointerBackground']; ?
>;
733 color
: <?php
echo $GLOBALS['cfg']['BrowsePointerColor']; ?
>;
737 * marks table rows/cells if the db field is in a where condition
743 border
: 1px solid
<?php
echo $GLOBALS['cfg']['BrowseMarkerBackground']; ?
>;
748 float: <?php
echo $left; ?
>;
755 body
.loginform div
.container
{
756 text
-align
: <?php
echo $left; ?
>;
761 #body_leftFrame #list_server {
762 list-style
-image
: url(../<?php
echo $GLOBALS['cfg']['ThemePath']; ?
>/original
/img
/s_host
.png
);
763 list-style
-position
: inside
;
764 list-style
-type
: none
;
769 #body_leftFrame #list_server li {
777 $_SESSION['PMA_Theme_Manager']->printCss($_REQUEST['js_frame']);