2 /* vim: set expandtab sw=4 ts=4 sts=4: */
4 * main css file from theme
7 * @package phpMyAdmin-theme
10 // unplanned execution path
11 if (!defined('PMA_MINIMUM_COMMON')) {
15 /******************************************************************************/
18 <?php
if (! empty($GLOBALS['cfg']['FontFamily'])) { ?
>
19 font
-family
: <?php
echo $GLOBALS['cfg']['FontFamily']; ?
>;
23 color
: <?php
echo $GLOBALS['cfg']['MainColor']; ?
>;
24 background
: <?php
echo $GLOBALS['cfg']['MainBackground']; ?
>;
27 <?php
if (! empty($GLOBALS['cfg']['FontFamilyFixed'])) { ?
>
28 textarea
, tt
, pre
, code
{
29 font
-family
: <?php
echo $GLOBALS['cfg']['FontFamilyFixed']; ?
>;
50 text
-decoration
: none
;
55 text
-decoration
: underline
;
70 color
: <?php
echo $GLOBALS['cfg']['ThColor']; ?
>;
71 background
: <?php
echo $GLOBALS['cfg']['ThBackground']; ?
>;
79 color
: <?php
echo $GLOBALS['cfg']['MainColor']; ?
>;
80 background
-color
: <?php
echo $GLOBALS['cfg']['MainColor']; ?
>;
97 border
: <?php
echo $GLOBALS['cfg']['MainColor']; ?
> solid
1px
;
99 background
: <?php
echo $GLOBALS['cfg']['BgOne']; ?
>;
107 background
-color
: transparent
;
110 /* buttons in some browsers (eg. Konqueror) are block elements,
111 this breaks design */
119 padding
: 0.1em
0.5em
0.1em
0.5em
;
128 vertical
-align
: middle
;
132 /******************************************************************************/
135 fieldset
.tblFooters
{
137 margin
-bottom
: 0.5em
;
138 text
-align
: <?php
echo $right; ?
>;
143 fieldset
.formelement
{
144 float: <?php
echo $left; ?
>;
145 margin
-<?php
echo $right; ?
>: 0.5em
;
150 /* revert for Gecko */
151 fieldset div
[class=formelement
] {
157 background
-color
: transparent
;
160 /* odd items 1,3,5,7,... */
163 background
: <?php
echo $GLOBALS['cfg']['BgOne']; ?
>;
166 /* even items 2,4,6,8,... */
169 background
: <?php
echo $GLOBALS['cfg']['BgTwo']; ?
>;
172 /* odd table rows 1,3,5,7,... */
177 text
-align
: <?php
echo $left; ?
>;
180 <?php
if ($GLOBALS['cfg']['BrowseMarkerEnable']) { ?
>
181 /* marked table rows */
184 background
: <?php
echo $GLOBALS['cfg']['BrowseMarkerBackground']; ?
>;
185 color
: <?php
echo $GLOBALS['cfg']['BrowseMarkerColor']; ?
>;
189 <?php
if ($GLOBALS['cfg']['BrowsePointerEnable']) { ?
>
194 background
: <?php
echo $GLOBALS['cfg']['BrowsePointerBackground']; ?
>;
195 color
: <?php
echo $GLOBALS['cfg']['BrowsePointerColor']; ?
>;
198 /* hovered table rows */
199 table tr
.odd
:hover th
,
200 table tr
.even
:hover th
,
202 background
: <?php
echo $GLOBALS['cfg']['BrowsePointerBackground']; ?
>;
203 color
: <?php
echo $GLOBALS['cfg']['BrowsePointerColor']; ?
>;
208 * marks table rows/cells if the db field is in a where condition
214 border
: 1px solid
<?php
echo $GLOBALS['cfg']['BrowseMarkerBackground']; ?
>;
218 text
-align
: <?php
echo $right; ?
>;
221 /* IE doesnt handles 'pre' right */
222 table
[class=value
] {
227 <?php
if (! empty($GLOBALS['cfg']['FontFamilyFixed'])) { ?
>
229 font
-family
: <?php
echo $GLOBALS['cfg']['FontFamilyFixed']; ?
>;
248 background
-color
: #FFFFFF;
250 border
: 1px solid
#000000;
265 border
: 1px dashed
#000000;
284 .syntax_digit_integer
{
287 .syntax_digit_float
{
296 .syntax_alpha_columnType
{
297 text
-transform
: uppercase
;
300 .syntax_alpha_columnAttrib
{
301 text
-transform
: uppercase
;
304 .syntax_alpha_reservedWord
{
305 text
-transform
: uppercase
;
309 .syntax_alpha_functionName
{
310 text
-transform
: uppercase
;
313 .syntax_alpha_identifier
{
316 .syntax_alpha_charset
{
319 .syntax_alpha_variable
{
326 .syntax_quote_backtick
{
329 /* leave some space between icons and text */
331 vertical
-align
: middle
;
335 /* no extra space in table cells */
341 margin
-<?php
echo $right; ?
>: 0.3em
;
342 margin
-<?php
echo $left; ?
>: 0.6em
;
345 /* message boxes: warning, error, confirmation */
348 background
-color
: #FFFFDD;
352 margin
: 0.5em
0 0.5em
0;
353 border
: 0.1em solid
#FFD700;
354 <?php
if ( $GLOBALS['cfg']['ErrorIconic'] ) { ?
>
355 background
-image
: url(<?php
echo $_SESSION['PMA_Theme']->getImgPath(); ?
>s_notice
.png
);
356 background
-repeat
: no
-repeat
;
357 <?php
if ( $GLOBALS['text_dir'] === 'ltr' ) { ?
>
358 background
-position
: 10px
50%
;
359 padding
: 10px
10px
10px
36px
;
361 background
-position
: 99%
50%
;
362 padding
: 10px
5%
10px
10px
;
369 border
-bottom
: 0.1em solid
#FFD700;
371 text
-align
: <?php
echo $left; ?
>;
377 background
-color
: #FFFFCC;
382 margin
: 0.5em
0 0.5em
0;
383 border
: 0.1em solid
#CC0000;
384 <?php
if ( $GLOBALS['cfg']['ErrorIconic'] ) { ?
>
385 background
-image
: url(<?php
echo $_SESSION['PMA_Theme']->getImgPath(); ?
>s_warn
.png
);
386 background
-repeat
: no
-repeat
;
387 <?php
if ( $GLOBALS['text_dir'] === 'ltr' ) { ?
>
388 background
-position
: 10px
50%
;
389 padding
: 10px
10px
10px
36px
;
391 background
-position
: 99%
50%
;
392 padding
: 10px
5%
10px
10px
;
399 border
-bottom
: 0.1em solid
#cc0000;
401 text
-align
: <?php
echo $left; ?
>;
406 background
-color
: #FFFFCC;
412 margin
: 0.5em
0 0.5em
0;
413 border
: 0.1em solid
#ff0000;
414 <?php
if ( $GLOBALS['cfg']['ErrorIconic'] ) { ?
>
415 background
-image
: url(<?php
echo $_SESSION['PMA_Theme']->getImgPath(); ?
>s_error
.png
);
416 background
-repeat
: no
-repeat
;
417 <?php
if ( $GLOBALS['text_dir'] === 'ltr' ) { ?
>
418 background
-position
: 10px
50%
;
419 padding
: 10px
10px
10px
36px
;
421 background
-position
: 99%
50%
;
422 padding
: 10px
5%
10px
10px
;
429 border
-bottom
: 0.1em solid
#ff0000;
431 text
-align
: <?php
echo $left; ?
>;
436 background
-color
: #FFFFCC;
438 fieldset
.confirmation
{
439 border
: 0.1em solid
#FF0000;
441 fieldset
.confirmation legend
{
442 border
-left
: 0.1em solid
#FF0000;
443 border
-right
: 0.1em solid
#FF0000;
445 <?php
if ( $GLOBALS['cfg']['ErrorIconic'] ) { ?
>
446 background
-image
: url(<?php
echo $_SESSION['PMA_Theme']->getImgPath(); ?
>s_really
.png
);
447 background
-repeat
: no
-repeat
;
448 <?php
if ( $GLOBALS['text_dir'] === 'ltr' ) { ?
>
449 background
-position
: 5px
50%
;
450 padding
: 0.2em
0.2em
0.2em
25px
;
452 background
-position
: 97%
50%
;
453 padding
: 0.2em
25px
0.2em
0.2em
;
457 /* end messageboxes */
468 color
: <?php
echo $GLOBALS['cfg']['ThColor']; ?
>;
469 background
: <?php
echo $GLOBALS['cfg']['ThBackground']; ?
>;
474 color
: <?php
echo $GLOBALS['cfg']['ThColor']; ?
>;
475 background
: <?php
echo $GLOBALS['cfg']['ThBackground']; ?
>;
480 .tblHeaders a
:active
,
481 .tblHeaders a
:visited
,
483 .tblFooters a
:active
,
484 .tblFooters a
:visited
{
489 .tblFooters a
:hover
{
493 /* forbidden, no privilegs */
503 .disabled a
:visited
{
509 text
-decoration
: none
;
514 background
-color
: #cccccc;
521 body
.loginform a
.logo
{
530 body
.loginform div
.container
{
531 text
-align
: <?php
echo $left; ?
>;
537 float: <?php
echo $left; ?
>;
543 /******************************************************************************/
544 /* specific elements */
549 list-style
-type
: none
;
555 float: <?php
echo $left; ?
>;
558 vertical
-align
: middle
;
562 vertical
-align
: middle
;
563 margin
-<?php
echo $right; ?
>: 0.1em
;
566 /* default tab styles */
567 .tab
, .tabcaution
, .tabactive
{
569 margin
: 0.2em
0.2em
0 0.2em
;
570 padding
: 0.2em
0.2em
0 0.2em
;
579 /* disabled drop/empty tabs */
584 /* enabled drop/empty tabs */
590 background
-color
: #FF0000;
593 <?php
if ( $GLOBALS['cfg']['LightTabs'] ) { ?
>
601 padding
: 0.1em
0.3em
0.1em
0.3em
;
605 border
-bottom
: 1pt solid black
;
608 /* default tab styles */
609 .tab
, .tabcaution
, .tabactive
{
610 background
-color
: <?php
echo $GLOBALS['cfg']['BgOne']; ?
>;
611 border
: 1pt solid
<?php
echo $GLOBALS['cfg']['BgTwo']; ?
>;
613 border
-top
-left
-radius
: 0.4em
;
614 border
-top
-right
-radius
: 0.4em
;
617 /* enabled hover/active tabs */
623 padding
: 0.2em
0.4em
0.2em
0.4em
;
624 text
-decoration
: none
;
629 background
-color
: <?php
echo $GLOBALS['cfg']['BgTwo']; ?
>;
632 /* disabled drop/empty tabs */
636 cursor
: url(<?php
echo $_SESSION['PMA_Theme']->getImgPath(); ?
>error
.ico
), default;
649 table
.calendar td a
{
653 table
.calendar td a
:hover
{
654 background
-color
: #CCFFCC;
658 background
-color
: #D3DCE3;
661 table
.calendar td
.selected
{
662 background
-color
: #FFCC99;
675 div
#tablestatistics {
676 border
-bottom
: 0.1em solid
#669999;
677 margin
-bottom
: 0.5em
;
678 padding
-bottom
: 0.5em
;
681 div
#tablestatistics table {
682 float: <?php
echo $left; ?
>;
683 margin
-bottom
: 0.5em
;
684 margin
-<?php
echo $right; ?
>: 0.5em
;
687 div
#tablestatistics table caption {
688 margin
-<?php
echo $right; ?
>: 0.5em
;
690 /* END table stats */
693 /* server privileges */
695 #tablespecificuserrights td,
697 vertical
-align
: middle
;
699 /* END server privileges */
706 margin
-bottom
: 0.5em
;
713 #span_table_comment {
720 margin
: 0 0.1em
0 0.2em
;
727 font
-family
: "Courier New", Courier
, mono
;
738 background
-color
: #ffffcc;
740 border
: 0.1em solid
#000000;
744 /* user privileges */
745 #fieldset_add_user_login div.item {
746 border
-bottom
: 1px solid silver
;
747 padding
-bottom
: 0.3em
;
748 margin
-bottom
: 0.3em
;
751 #fieldset_add_user_login label {
752 float: <?php
echo $left; ?
>;
756 text
-align
: <?php
echo $right; ?
>;
757 padding
-<?php
echo $right; ?
>: 0.5em
;
760 #fieldset_add_user_login span.options #select_pred_username,
761 #fieldset_add_user_login span.options #select_pred_hostname,
762 #fieldset_add_user_login span.options #select_pred_password {
767 #fieldset_add_user_login span.options {
768 float: <?php
echo $left; ?
>;
772 padding
-<?php
echo $right; ?
>: 0.5em
;
775 #fieldset_add_user_login input {
777 clear
: <?php
echo $right; ?
>;
781 #fieldset_add_user_login span.options input {
785 #fieldset_user_priv div.item {
786 float: <?php
echo $left; ?
>;
791 #fieldset_user_priv div.item div.item {
795 #fieldset_user_priv div.item label {
799 #fieldset_user_priv div.item select {
803 #fieldset_user_global_rights fieldset {
804 float: <?php
echo $left; ?
>;
806 /* END user privileges */
810 div
#serverstatus table caption a.top {
811 float: <?php
echo $right; ?
>;
814 div
#serverstatus div#serverstatusqueriesdetails table,
815 div
#serverstatus table#serverstatustraffic,
816 div
#serverstatus table#serverstatusconnections {
817 float: <?php
echo $left; ?
>;
820 #serverstatussection,
824 div
#serverstatussection table {
828 div
#serverstatussection table .name {
831 div
#serverstatussection table .value {
835 div
#serverstatus table tbody td.descr a,
836 div
#serverstatus table .tblFooters a {
839 div
#serverstatus div#statuslinks a:before,
840 div
#serverstatus div#sectionlinks a:before,
841 div
#serverstatus table tbody td.descr a:before,
842 div
#serverstatus table .tblFooters a:before {
845 div
#serverstatus div#statuslinks a:after,
846 div
#serverstatus div#sectionlinks a:after,
847 div
#serverstatus table tbody td.descr a:after,
848 div
#serverstatus table .tblFooters a:after {
851 /* end serverstatus */
854 body
#bodyquerywindow {
857 background
-image
: none
;
858 background
-color
: #F5F5F5;
861 div
#querywindowcontainer {
867 div
#querywindowcontainer fieldset {
870 /* END querywindow */
875 div
#sqlquerycontainer {
876 float: <?php
echo $left; ?
>;
881 div
#tablefieldscontainer {
882 float: <?php
echo $right; ?
>;
887 div
#tablefieldscontainer select {
897 div
#queryboxcontainer div#bookmarkoptions {
904 background
-image
: url(<?php
echo $_SESSION['PMA_Theme']->getImgPath(); ?
>logo_right
.png
);
905 background
-position
: <?php
echo $right; ?
> bottom
;
906 background
-repeat
: no
-repeat
;
907 border
-bottom
: 1px solid silver
;
910 #mysqlmaininformation,
911 #pmamaininformation {
912 float: <?php
echo $left; ?
>;
917 list-style
-image
: url(<?php
echo $_SESSION['PMA_Theme']->getImgPath(); ?
>item_
<?php
echo $GLOBALS['text_dir']; ?
>.png
);
918 vertical
-align
: middle
;
922 margin
-bottom
: 0.3em
;
927 <?php
if ($GLOBALS['cfg']['MainPageIconic']) { ?
>
928 /* iconic view for ul items */
929 li
#li_create_database {
930 list-style
-image
: url(<?php
echo $_SESSION['PMA_Theme']->getImgPath(); ?
>b_newdb
.png
);
934 list-style
-image
: url(<?php
echo $_SESSION['PMA_Theme']->getImgPath(); ?
>s_lang
.png
);
937 li
#li_select_mysql_collation,
938 li
#li_select_mysql_charset {
939 list-style
-image
: url(<?php
echo $_SESSION['PMA_Theme']->getImgPath(); ?
>s_asci
.png
);
943 list-style
-image
: url(<?php
echo $_SESSION['PMA_Theme']->getImgPath(); ?
>s_theme
.png
);
947 list-style
-image
: url(<?php
echo $_SESSION['PMA_Theme']->getImgPath(); ?
>s_host
.png
);
951 /* list-style-image: url(<?php echo $_SESSION['PMA_Theme']->getImgPath(); ?>s_rights.png); */
955 list-style
-image
: url(<?php
echo $_SESSION['PMA_Theme']->getImgPath(); ?
>s_status
.png
);
958 li
#li_mysql_variables{
959 list-style
-image
: url(<?php
echo $_SESSION['PMA_Theme']->getImgPath(); ?
>s_vars
.png
);
962 li
#li_mysql_processes{
963 list-style
-image
: url(<?php
echo $_SESSION['PMA_Theme']->getImgPath(); ?
>s_process
.png
);
966 li
#li_mysql_collations{
967 list-style
-image
: url(<?php
echo $_SESSION['PMA_Theme']->getImgPath(); ?
>s_asci
.png
);
971 list-style
-image
: url(<?php
echo $_SESSION['PMA_Theme']->getImgPath(); ?
>b_engine
.png
);
974 li
#li_mysql_binlogs {
975 list-style
-image
: url(<?php
echo $_SESSION['PMA_Theme']->getImgPath(); ?
>s_tbl
.png
);
978 li
#li_mysql_databases {
979 list-style
-image
: url(<?php
echo $_SESSION['PMA_Theme']->getImgPath(); ?
>s_db
.png
);
983 list-style
-image
: url(<?php
echo $_SESSION['PMA_Theme']->getImgPath(); ?
>b_export
.png
);
987 list-style
-image
: url(<?php
echo $_SESSION['PMA_Theme']->getImgPath(); ?
>b_import
.png
);
990 li
#li_change_password {
991 list-style
-image
: url(<?php
echo $_SESSION['PMA_Theme']->getImgPath(); ?
>s_passwd
.png
);
995 list-style
-image
: url(<?php
echo $_SESSION['PMA_Theme']->getImgPath(); ?
>s_loggoff
.png
);
999 list-style
-image
: url(<?php
echo $_SESSION['PMA_Theme']->getImgPath(); ?
>b_docs
.png
);
1003 list-style
-image
: url(<?php
echo $_SESSION['PMA_Theme']->getImgPath(); ?
>php_sym
.png
);
1006 li
#li_pma_homepage {
1007 list-style
-image
: url(<?php
echo $_SESSION['PMA_Theme']->getImgPath(); ?
>b_home
.png
);
1010 li
#li_mysql_privilegs{
1011 list-style
-image
: url(<?php
echo $_SESSION['PMA_Theme']->getImgPath(); ?
>s_rights
.png
);
1014 li
#li_switch_dbstats {
1015 list-style
-image
: url(<?php
echo $_SESSION['PMA_Theme']->getImgPath(); ?
>b_dbstatistics
.png
);
1018 li
#li_flush_privileges {
1019 list-style
-image
: url(<?php
echo $_SESSION['PMA_Theme']->getImgPath(); ?
>s_reload
.png
);
1021 /* END iconic view for ul items */
1022 <?php
} /* end if $GLOBALS['cfg']['MainPageIconic'] */ ?
>
1025 #body_browse_foreigners {
1026 background
: <?php
echo $GLOBALS['cfg']['NaviBackground']; ?
>;
1027 margin
: 0.5em
0.5em
0 0.5em
;
1031 background
: <?php
echo $GLOBALS['cfg']['NaviBackground']; ?
>;
1041 border
: 0.1em solid black
;
1044 #bodythemes a:hover img {
1045 border
: 0.1em solid red
;
1048 #fieldset_select_fields {
1049 float: <?php
echo $left; ?
>;
1058 border
-top
: 0.1em solid silver
;
1059 text
-align
: <?php
echo $right; ?
>;
1062 #table_innodb_bufferpool_usage,
1063 #table_innodb_bufferpool_activity {
1064 float: <?php
echo $left; ?
>;
1067 #div_mysql_charset_collations table {
1068 float: <?php
echo $left; ?
>;
1073 float: <?php
echo $left; ?
>;
1078 float: <?php
echo $left; ?
>;
1083 float: <?php
echo $left; ?
>;
1086 #div_table_options {
1089 float: <?php
echo $left; ?
>;
1092 #qbe_div_table_list {
1093 float: <?php
echo $left; ?
>;
1096 #qbe_div_sql_query {
1097 float: <?php
echo $left; ?
>;
1102 float: <?php
echo $left; ?
>;