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' ) {
18 // Gets the default font sizes
19 // garvin: TODO: Should be optimized to not include the whole common.lib.php bunch
20 // but only functions used to determine browser heritage.
24 header('Content-Type: text/css; charset=ISO-8859-1');
44 background
-image
: url(../themes
/original
/img
/logo_right
.png
);
45 background
-position
: <?php
echo $right; ?
> bottom
;
46 background
-repeat
: no
-repeat
;
47 border
-bottom
: 1px solid silver
;
50 #mysqlmaininformation,
52 float: <?php
echo $left; ?
>;
55 #mysqlmaininformation {
56 margin
-<?php
echo $right; ?
>: 1em
;
57 padding
-<?php
echo $right; ?
>: 1em
;
58 border
-<?php
echo $right; ?
>: 0.1em solid silver
;
62 list-style
-image
: url(../themes
/original
/img
/item_
<?php
echo $GLOBALS['text_dir']; ?
>.png
);
63 vertical
-align
: middle
;
72 <?php
if ( $GLOBALS['cfg']['MainPageIconic'] ) { ?
>
73 /* iconic view for ul items */
74 li
#li_create_database {
75 list-style
-image
: url(../themes
/original
/img
/b_newdb
.png
);
79 list-style
-image
: url(../themes
/original
/img
/s_lang
.png
);
82 li
#li_select_mysql_collation,
83 li
#li_select_mysql_charset {
84 list-style
-image
: url(../themes
/original
/img
/s_asci
.png
);
88 list-style
-image
: url(../themes
/original
/img
/s_theme
.png
);
92 list-style
-image
: url(../themes
/original
/img
/s_host
.png
);
96 list-style
-image
: url(../themes
/original
/img
/s_rights
.png
);
100 list-style
-image
: url(../themes
/original
/img
/s_status
.png
);
103 li
#li_mysql_variables{
104 list-style
-image
: url(../themes
/original
/img
/s_vars
.png
);
107 li
#li_mysql_processes{
108 list-style
-image
: url(../themes
/original
/img
/s_process
.png
);
111 li
#li_mysql_collations{
112 list-style
-image
: url(../themes
/original
/img
/s_asci
.png
);
116 list-style
-image
: url(../themes
/original
/img
/b_engine
.png
);
119 li
#li_mysql_binlogs {
120 list-style
-image
: url(../themes
/original
/img
/s_tbl
.png
);
123 li
#li_mysql_databases {
124 list-style
-image
: url(../themes
/original
/img
/s_db
.png
);
128 list-style
-image
: url(../themes
/original
/img
/b_export
.png
);
132 list-style
-image
: url(../themes
/original
/img
/b_import
.png
);
135 li
#li_change_password {
136 list-style
-image
: url(../themes
/original
/img
/s_passwd
.png
);
140 list-style
-image
: url(../themes
/original
/img
/s_loggoff
.png
);
144 list-style
-image
: url(../themes
/original
/img
/b_docs
.png
);
148 list-style
-image
: url(../themes
/original
/img
/php_sym
.png
);
152 list-style
-image
: url(../themes
/original
/img
/b_home
.png
);
155 li
#li_mysql_privilegs{
156 list-style
-image
: url(../themes
/original
/img
/s_rights
.png
);
159 li
#li_switch_dbstats {
160 list-style
-image
: url(../themes
/original
/img
/b_dbstatistics
.png
);
162 /* END iconic view for ul items */
163 <?php
} /* end if $GLOBALS['cfg']['MainPageIconic'] */ ?
>
168 border
: 0.1px solid transparent
;
169 border
-bottom
: 0.1em solid gray
;
174 float: <?php
echo $right; ?
>;
178 /* server privileges */
180 #tablespecificuserrights td,
182 vertical
-align
: middle
;
184 /* END server privileges */
187 /* leave some space between icons and text */
189 vertical
-align
: middle
;
193 /* no extra space in table cells */
199 margin
-<?php
echo $right; ?
>: 0.3em
;
200 margin
-<?php
echo $left; ?
>: 0.6em
;
203 div
#tablestatistics {
204 border
-bottom
: 0.1em solid
#669999;
205 margin
-bottom
: 0.5em
;
206 padding
-bottom
: 0.5em
;
209 div
#tablestatistics table {
211 margin
-bottom
: 0.5em
;
215 div
#tablestatistics table caption {
220 /* left frame content */
221 body
#body_leftFrame {
222 background
-color
: <?php
echo $GLOBALS['cfg']['LeftBgColor']; ?
>;
229 border
-bottom
: 0.1em solid
#669999;
230 margin
-bottom
: 0.5em
;
231 padding
-bottom
: 0.5em
;
234 div
#leftframelinks .icon {
235 vertical
-align
: middle
;
240 div
#leftframelinks a:hover {
241 background
-color
: #669999;
244 /* leftdatabaselist */
245 div
#left_tableList ul {
246 list-style
-type
: none
;
247 list-style
-position
: outside
;
250 background
-color
: <?php
echo $GLOBALS['cfg']['LeftBgColor']; ?
>;
253 div
#left_tableList li {
259 <?php
if ( $GLOBALS['cfg']['LeftPointerEnable'] ) { ?
>
260 div
#left_tableList li:hover {
261 background
-color
: <?php
echo $GLOBALS['cfg']['LeftPointerColor']; ?
>;
265 div
#left_tableList img {
267 vertical
-align
: middle
;
270 div
#left_tableList ul ul {
273 border
-left
: 0.1em solid
#669999;
274 padding
-bottom
: 0.1em
;
275 border
-bottom
: 0.1em solid
#669999;
277 /* END left frame content */
281 body
#bodyquerywindow {
286 div
#querywindowcontainer {
292 div
#querywindowcontainer fieldset {
295 /* END querywindow */
301 div
[class=formelementrow
],
302 div
[id
=queryfieldscontainer
] {
303 border
: 1px solid transparent
;
306 div
#sqlquerycontainer {
312 div
#tablefieldscontainer {
318 div
#tablefieldscontainer select {
328 div
#queryboxcontainer div#bookmarkoptions {
334 fieldset
.formelement
{
341 /* revert for Gecko */
342 fieldset div
[class=formelement
] {
347 fieldset
.formelement input
,
348 fieldset
.formelement select
{
350 margin
-bottom
: 0.5em
;
352 /* revert for Gecko */
353 fieldset div
[class=formelement
] input
,
354 fieldset div
[class=formelement
] select
{
360 #fieldsetexport #exportoptions {
366 table
.calendar
{ width
: 100%
; }
367 table
.calendar td
{ text
-align
: center
; }
368 table
.calendar td a
{ display
: block
; }
370 table
.calendar td a
:hover
{
371 background
-color
: <?php
echo $GLOBALS['cfg']['BrowsePointerColor']; ?
>;
375 background
-color
: <?php
echo $GLOBALS['cfg']['ThBgcolor']; ?
>;
378 table
.calendar td
.selected
{
379 background
-color
: <?php
echo $GLOBALS['cfg']['BrowseMarkerColor']; ?
>;
382 img
.calendar
{ border
: none
; }
383 form
.clock
{ text
-align
: center
; }
387 /* Options, eg. on import page */
389 background
-color
: <?php
echo $GLOBALS['cfg']['BgcolorOne']; ?
>;
392 background
-color
: transparent
;
395 .nowrap
{ white
-space
: nowrap
; }
396 div
.nowrap
{ margin
: 0; padding
: 0; }
398 /* buttons in some browsers (eg. Konqueror) are block elements, this breaks design */
399 button
{ display
: inline
; }
402 textarea
{ overflow
: auto
; }
404 .nospace
{ margin
: 0; padding
: 0; }
411 border
: 1px solid
<?php
echo $GLOBALS['cfg']['RightBgColor']; ?
>;
416 list-style
-type
: none
;
425 vertical
-align
: middle
;
429 vertical
-align
: middle
;
433 /* default tab styles */
434 .tab
, .tabcaution
, .tabactive
{
436 margin
: 0.2em
0.2em
0 0.2em
;
437 padding
: 0.2em
0.2em
0 0.2em
;
446 /* disabled drop/empty tabs */
451 /* enabled drop/empty tabs */
457 background
-color
: #FF0000;
460 <?php
if ( $GLOBALS['cfg']['LightTabs'] ) { ?
>
468 padding
: 0.1em
0.3em
0.1em
0.3em
;
472 border
-bottom
: 1pt solid black
;
475 /* default tab styles */
476 .tab
, .tabcaution
, .tabactive
{
477 background
-color
: <?php
echo $GLOBALS['cfg']['BgcolorOne']; ?
>;
478 border
: 1pt solid
<?php
echo $GLOBALS['cfg']['BgcolorTwo']; ?
>;
480 border
-radius
-topleft
: 0.4em
;
481 border
-radius
-topright
: 0.4em
;
482 -moz
-border
-radius
-topleft
: 0.4em
;
483 -moz
-border
-radius
-topright
: 0.4em
;
486 /* enabled hover/active tabs */
487 a
.tab
:hover
, a
.tabcaution
:hover
, .tabactive
, .tabactive
:hover
{
489 padding
: 0.2em
0.4em
0.2em
0.4em
;
490 text
-decoration
: none
;
493 a
.tab
:hover
, .tabactive
{
494 background
-color
: <?php
echo $GLOBALS['cfg']['BgcolorTwo']; ?
>;
497 /* disabled drop/empty tabs */
498 span
.tab
, span
.tabcaution
{
499 cursor
: url(themes
/original
/img
/error
.ico
), url(../themes
/original
/img
/error
.ico
), default;
509 padding
: 0.1em
0.5em
0.1em
0.5em
;
515 /* odd table rows 1,3,5,7,... */
518 background
-color
: <?php
echo $GLOBALS['cfg']['BgcolorOne']; ?
>;
522 /* even table rows 2,4,6,8,... */
525 background
-color
: <?php
echo $GLOBALS['cfg']['BgcolorTwo']; ?
>;
529 /* marked tbale rows */
532 background
-color
: <?php
echo $GLOBALS['cfg']['BrowseMarkerColor']; ?
>;
535 /* hovered table rows */
538 table tr
.odd
:hover th
,
539 table tr
.even
:hover th
,
542 background
-color
: <?php
echo $GLOBALS['cfg']['BrowsePointerColor']; ?
>;
548 font
-family
: "Courier New", Courier
, monospace
;
550 /* IE doesnt handles 'pre' right */
551 table
[class=value
] {
566 div
#serverstatus table caption a.top {
570 div
#serverstatus div#serverstatusqueriesdetails table,
571 div
#serverstatus table#serverstatustraffic,
572 div
#serverstatus table#serverstatusconnections {
576 #serverstatussection,
580 div
#serverstatussection table {
584 div
#serverstatussection table .name {
587 div
#serverstatussection table .value {
591 div
#serverstatus table tbody td.descr a,
592 div
#serverstatus table .tblFooters a {
595 div
#serverstatus div#statuslinks a:before,
596 div
#serverstatus div#sectionlinks a:before,
597 div
#serverstatus table tbody td.descr a:before,
598 div
#serverstatus table .tblFooters a:before {
601 div
#serverstatus div#statuslinks a:after,
602 div
#serverstatus div#sectionlinks a:after,
603 div
#serverstatus table tbody td.descr a:after,
604 div
#serverstatus table .tblFooters a:after {
607 /* end serverstatus */
615 $_valid_css = array( 'left', 'right', 'print' );
616 if ( empty( $_REQUEST['js_frame'] ) ||
! in_array( $_REQUEST['js_frame'], $_valid_css ) ) {
619 $js_frame = $_REQUEST['js_frame'];
621 unset( $_valid_css );
623 if ( $js_frame == 'right' ) {
624 echo PMA_SQP_buildCssData();
627 $_css_file = $GLOBALS['cfg']['ThemePath']
628 . '/' . $GLOBALS['theme']
629 . '/css/theme_' . $js_frame . '.css.php';
631 if ( file_exists( $_css_file ) ) {
632 include( $_css_file );