[ Index ] |
|
Code source de phpMyAdmin 2.10.3 |
1 <?php 2 /* $Id: phpmyadmin.css.php 9784 2006-12-10 13:30:40Z lem9 $ */ 3 // vim: expandtab sw=4 ts=4 sts=4: 4 5 chdir('..'); 6 define('PMA_MINIMUM_COMMON', true); 7 require_once './libraries/common.lib.php'; 8 require_once './libraries/sqlparser.lib.php'; 9 10 // MSIE 6 (at least some unpatched versions) has problems loading CSS 11 // when zlib_compression is on 12 if (PMA_USR_BROWSER_AGENT == 'IE' && PMA_USR_BROWSER_VER == '6' 13 && (ini_get('zlib.output_compression')) ) { 14 ini_set('zlib.output_compression', 'Off'); 15 } 16 17 if ($GLOBALS['text_dir'] === 'ltr') { 18 $right = 'right'; 19 $left = 'left'; 20 } else { 21 $right = 'left'; 22 $left = 'right'; 23 } 24 25 // Send correct type: 26 header('Content-Type: text/css; charset=ISO-8859-1'); 27 28 // Cache output in client - the nocache query parameter makes sure that this 29 // file is reloaded when config changes 30 header('Expires: ' . gmdate('D, d M Y H:i:s', time() + 3600) . ' GMT'); 31 32 ?> 33 html { 34 font-size: <?php echo $_SESSION['PMA_Config']->get('fontsize'); ?>; 35 } 36 37 input, select, textarea { 38 font-size: 1em; 39 } 40 41 /* @deprecated */ 42 .nowrap { 43 white-space: nowrap; 44 } 45 div.nowrap { 46 margin: 0; 47 padding: 0; 48 } 49 50 <?php 51 if ($_SESSION['PMA_Theme']->checkVersion('2.7.0')) { 52 ?> 53 54 form { 55 margin: 0; 56 padding: 0; 57 display: inline; 58 } 59 60 a img { 61 border: 0; 62 } 63 64 65 /* server privileges */ 66 #tableuserrights td, 67 #tablespecificuserrights td, 68 #tabledatabases td { 69 vertical-align: middle; 70 } 71 /* END server privileges */ 72 73 74 /* leave some space between icons and text */ 75 .icon { 76 vertical-align: middle; 77 margin-right: 0.3em; 78 margin-left: 0.3em; 79 } 80 /* no extra space in table cells */ 81 td .icon { 82 margin: 0; 83 } 84 85 .selectallarrow { 86 margin-<?php echo $right; ?>: 0.3em; 87 margin-<?php echo $left; ?>: 0.6em; 88 } 89 90 div#tablestatistics { 91 border-bottom: 0.1em solid #669999; 92 margin-bottom: 0.5em; 93 padding-bottom: 0.5em; 94 } 95 96 div#tablestatistics table { 97 float: <?php echo $left; ?>; 98 margin-bottom: 0.5em; 99 margin-right: 0.5em; 100 } 101 102 div#tablestatistics table caption { 103 margin-right: 0.5em; 104 } 105 106 107 /* left frame content */ 108 body#body_leftFrame { 109 background-color: <?php echo $GLOBALS['cfg']['LeftBgColor']; ?>; 110 } 111 112 div#pmalogo, 113 div#leftframelinks, 114 div#databaseList { 115 text-align: center; 116 border-bottom: 0.1em solid #669999; 117 margin-bottom: 0.5em; 118 padding-bottom: 0.5em; 119 } 120 121 div#leftframelinks .icon { 122 vertical-align: middle; 123 padding: 0; 124 margin: 0; 125 } 126 127 div#leftframelinks a:hover { 128 background-color: #669999; 129 } 130 131 /* leftdatabaselist */ 132 div#left_tableList ul { 133 list-style-type: none; 134 list-style-position: outside; 135 margin: 0; 136 padding: 0; 137 background-color: <?php echo $GLOBALS['cfg']['LeftBgColor']; ?>; 138 } 139 140 div#left_tableList li { 141 margin: 0; 142 padding: 0; 143 white-space: nowrap; 144 } 145 146 <?php if ($GLOBALS['cfg']['LeftPointerEnable']) { ?> 147 div#left_tableList li:hover { 148 background-color: <?php echo $GLOBALS['cfg']['LeftPointerColor']; ?>; 149 } 150 <?php } ?> 151 152 div#left_tableList img { 153 padding: 0; 154 vertical-align: middle; 155 } 156 157 div#left_tableList ul ul { 158 margin-left: 0em; 159 padding-left: 0.1em; 160 border-left: 0.1em solid #669999; 161 padding-bottom: 0.1em; 162 border-bottom: 0.1em solid #669999; 163 } 164 /* END left frame content */ 165 166 167 /* querywindow */ 168 body#bodyquerywindow { 169 margin: 0; 170 padding: 0; 171 } 172 173 div#querywindowcontainer { 174 margin: 0; 175 padding: 0; 176 width: 100%; 177 } 178 179 div#querywindowcontainer fieldset { 180 margin-top: 0; 181 } 182 /* END querywindow */ 183 184 185 /* querybox */ 186 187 /* Gecko bug */ 188 div[class=formelementrow], 189 div[id=queryfieldscontainer] { 190 border: 1px solid transparent; 191 } 192 193 div#sqlquerycontainer { 194 float: left; 195 width: 69%; 196 /* height: 15em; */ 197 } 198 199 div#tablefieldscontainer { 200 float: right; 201 width: 29%; 202 /* height: 15em; */ 203 } 204 205 div#tablefieldscontainer select { 206 width: 100%; 207 /* height: 12em; */ 208 } 209 210 textarea#sqlquery { 211 width: 100%; 212 /* height: 100%; */ 213 } 214 215 div#queryboxcontainer div#bookmarkoptions { 216 margin-top: 0.5em; 217 } 218 /* end querybox */ 219 220 221 fieldset .formelement { 222 line-height: 2.4em; 223 float: left; 224 margin-right: 0.5em; 225 /* IE */ 226 white-space: nowrap; 227 } 228 /* revert for Gecko */ 229 fieldset div[class=formelement] { 230 white-space: normal; 231 } 232 233 /* IE */ 234 fieldset .formelement input, 235 fieldset .formelement select { 236 margin-top: 0.5em; 237 margin-bottom: 0.5em; 238 } 239 /* revert for Gecko */ 240 fieldset div[class=formelement] input, 241 fieldset div[class=formelement] select { 242 margin-top: auto; 243 margin-bottom: auto; 244 height: auto; 245 } 246 247 /* Calendar */ 248 table.calendar { width: 100%; } 249 table.calendar td { text-align: center; } 250 table.calendar td a { display: block; } 251 252 table.calendar td a:hover { 253 background-color: <?php echo $GLOBALS['cfg']['BrowsePointerColor']; ?>; 254 } 255 256 table.calendar th { 257 background-color: <?php echo $GLOBALS['cfg']['ThBgcolor']; ?>; 258 } 259 260 table.calendar td.selected { 261 background-color: <?php echo $GLOBALS['cfg']['BrowseMarkerColor']; ?>; 262 } 263 264 img.calendar { border: none; } 265 form.clock { text-align: center; } 266 /* end Calendar */ 267 268 269 /* Options, eg. on import page */ 270 fieldset { 271 background-color: <?php echo $GLOBALS['cfg']['BgcolorOne']; ?>; 272 } 273 fieldset legend { 274 background-color: transparent; 275 } 276 277 /* buttons in some browsers (eg. Konqueror) are block elements, this breaks design */ 278 button { display: inline; } 279 280 /* Textarea */ 281 textarea { overflow: auto; } 282 283 284 /* topmenu */ 285 286 /* Gecko 1.7 bug (FF 1.0) */ 287 #topmenucontainer { 288 border: 1px solid <?php echo $GLOBALS['cfg']['RightBgColor']; ?>; 289 } 290 291 ul#topmenu { 292 font-weight: bold; 293 list-style-type: none; 294 margin: 0; 295 padding: 0; 296 } 297 298 ul#topmenu li { 299 float: left; 300 margin: 0; 301 padding: 0; 302 vertical-align: middle; 303 } 304 305 #topmenu img { 306 vertical-align: middle; 307 margin-right: 0.1em; 308 } 309 310 /* default tab styles */ 311 .tab, .tabcaution, .tabactive { 312 display: block; 313 margin: 0.2em 0.2em 0 0.2em; 314 padding: 0.2em 0.2em 0 0.2em; 315 white-space: nowrap; 316 } 317 318 /* disabled tabs */ 319 span.tab { 320 color: #666666; 321 } 322 323 /* disabled drop/empty tabs */ 324 span.tabcaution { 325 color: #ff6666; 326 } 327 328 /* enabled drop/empty tabs */ 329 a.tabcaution { 330 color: #FF0000; 331 } 332 a.tabcaution:hover { 333 color: #FFFFFF; 334 background-color: #FF0000; 335 } 336 337 <?php if ($GLOBALS['cfg']['LightTabs']) { ?> 338 /* active tab */ 339 a.tabactive { 340 color: black; 341 } 342 <?php } else { ?> 343 #topmenu { 344 margin-top: 0.5em; 345 padding: 0.1em 0.3em 0.1em 0.3em; 346 } 347 348 ul#topmenu li { 349 border-bottom: 1pt solid black; 350 } 351 352 /* default tab styles */ 353 .tab, .tabcaution, .tabactive { 354 background-color: <?php echo $GLOBALS['cfg']['BgcolorOne']; ?>; 355 border: 1pt solid <?php echo $GLOBALS['cfg']['BgcolorTwo']; ?>; 356 border-bottom: 0; 357 border-top-left-radius: 0.4em; 358 border-top-right-radius: 0.4em; 359 } 360 361 /* enabled hover/active tabs */ 362 a.tab:hover, a.tabcaution:hover, .tabactive, .tabactive:hover { 363 margin: 0; 364 padding: 0.2em 0.4em 0.2em 0.4em; 365 text-decoration: none; 366 } 367 368 a.tab:hover, .tabactive { 369 background-color: <?php echo $GLOBALS['cfg']['BgcolorTwo']; ?>; 370 } 371 372 /* disabled drop/empty tabs */ 373 span.tab, span.tabcaution { 374 cursor: url(<?php echo $GLOBALS['cfg']['ThemePath']; ?>/original/img/error.ico), url(../<?php echo $GLOBALS['cfg']['ThemePath']; ?>/original/img/error.ico), default; 375 } 376 <?php } ?> 377 /* end topmenu */ 378 379 380 381 /* data tables */ 382 table caption, 383 table th, 384 table td { 385 padding: 0.1em 0.5em 0.1em 0.5em; 386 margin: 0; 387 margin: 0.1em; 388 vertical-align: top; 389 } 390 391 /* odd table rows 1,3,5,7,... */ 392 table tr.odd th, 393 table tr.odd { 394 background-color: <?php echo $GLOBALS['cfg']['BgcolorOne']; ?>; 395 } 396 397 /* even table rows 2,4,6,8,... */ 398 table tr.even th, 399 table tr.even { 400 background-color: <?php echo $GLOBALS['cfg']['BgcolorTwo']; ?>; 401 } 402 403 /* marked table rows */ 404 table tr.marked th, 405 table tr.marked { 406 background-color: <?php echo $GLOBALS['cfg']['BrowseMarkerColor']; ?>; 407 } 408 409 /* hovered table rows */ 410 table tr.odd:hover, 411 table tr.even:hover, 412 table tr.odd:hover th, 413 table tr.even:hover th, 414 table tr.hover th, 415 table tr.hover { 416 background-color: <?php echo $GLOBALS['cfg']['BrowsePointerColor']; ?>; 417 } 418 419 table .value { 420 text-align: right; 421 white-space: nowrap; 422 } 423 /* IE doesnt handles 'pre' right */ 424 table [class=value] { 425 white-space: pre; 426 } 427 428 .value { 429 font-family: "Courier New", Courier, monospace; 430 } 431 .value .attention { 432 color: red; 433 font-weight: bold; 434 } 435 .value .allfine { 436 color: green; 437 } 438 439 440 /* serverstatus */ 441 div#serverstatus table caption a.top { 442 float: right; 443 } 444 445 div#serverstatus div#serverstatusqueriesdetails table, 446 div#serverstatus table#serverstatustraffic, 447 div#serverstatus table#serverstatusconnections { 448 float: left; 449 } 450 451 #serverstatussection, 452 .clearfloat { 453 clear: both; 454 } 455 div#serverstatussection table { 456 width: 100%; 457 margin-bottom: 1em; 458 } 459 div#serverstatussection table .name { 460 width: 18em; 461 } 462 div#serverstatussection table .value { 463 width: 6em; 464 } 465 466 div#serverstatus table tbody td.descr a, 467 div#serverstatus table .tblFooters a { 468 white-space: nowrap; 469 } 470 div#serverstatus div#statuslinks a:before, 471 div#serverstatus div#sectionlinks a:before, 472 div#serverstatus table tbody td.descr a:before, 473 div#serverstatus table .tblFooters a:before { 474 content: '['; 475 } 476 div#serverstatus div#statuslinks a:after, 477 div#serverstatus div#sectionlinks a:after, 478 div#serverstatus table tbody td.descr a:after, 479 div#serverstatus table .tblFooters a:after { 480 content: ']'; 481 } 482 /* end serverstatus */ 483 484 img.lightbulb { 485 cursor: pointer; 486 } 487 488 <?php 489 } // end styles 2.7.0 490 491 if ($_SESSION['PMA_Theme']->checkVersion('2.7.1')) { 492 ?> 493 494 /********************/ 495 /* NEW in PMA 2.7.1 */ 496 /********************/ 497 498 body.loginform h1, 499 body.loginform a.logo { 500 display: block; 501 text-align: center; 502 } 503 504 form.login label { 505 float: left; 506 width: 10em; 507 font-weight: bolder; 508 } 509 510 511 /* main page */ 512 #maincontainer { 513 background-image: url(../<?php echo $GLOBALS['cfg']['ThemePath']; ?>/original/img/logo_right.png); 514 background-position: <?php echo $right; ?> bottom; 515 background-repeat: no-repeat; 516 border-bottom: 1px solid silver; 517 } 518 519 #mysqlmaininformation, 520 #pmamaininformation { 521 float: <?php echo $left; ?>; 522 width: 49%; 523 } 524 525 #maincontainer ul { 526 list-style-image: url(../<?php echo $GLOBALS['cfg']['ThemePath']; ?>/original/img/item_<?php echo $GLOBALS['text_dir']; ?>.png); 527 vertical-align: middle; 528 } 529 530 #maincontainer li { 531 margin-bottom: 0.3em; 532 } 533 /* END main page */ 534 535 536 <?php if ($GLOBALS['cfg']['MainPageIconic']) { ?> 537 /* iconic view for ul items */ 538 li#li_create_database { 539 list-style-image: url(../<?php echo $GLOBALS['cfg']['ThemePath']; ?>/original/img/b_newdb.png); 540 } 541 542 li#li_select_lang { 543 list-style-image: url(../<?php echo $GLOBALS['cfg']['ThemePath']; ?>/original/img/s_lang.png); 544 } 545 546 li#li_select_mysql_collation, 547 li#li_select_mysql_charset { 548 list-style-image: url(../<?php echo $GLOBALS['cfg']['ThemePath']; ?>/original/img/s_asci.png); 549 } 550 551 li#li_select_theme{ 552 list-style-image: url(../<?php echo $GLOBALS['cfg']['ThemePath']; ?>/original/img/s_theme.png); 553 } 554 555 li#li_server_info{ 556 list-style-image: url(../<?php echo $GLOBALS['cfg']['ThemePath']; ?>/original/img/s_host.png); 557 } 558 559 li#li_user_info{ 560 /* list-style-image: url(../<?php echo $GLOBALS['cfg']['ThemePath']; ?>/original/img/s_rights.png); */ 561 } 562 563 li#li_mysql_status{ 564 list-style-image: url(../<?php echo $GLOBALS['cfg']['ThemePath']; ?>/original/img/s_status.png); 565 } 566 567 li#li_mysql_variables{ 568 list-style-image: url(../<?php echo $GLOBALS['cfg']['ThemePath']; ?>/original/img/s_vars.png); 569 } 570 571 li#li_mysql_processes{ 572 list-style-image: url(../<?php echo $GLOBALS['cfg']['ThemePath']; ?>/original/img/s_process.png); 573 } 574 575 li#li_mysql_collations{ 576 list-style-image: url(../<?php echo $GLOBALS['cfg']['ThemePath']; ?>/original/img/s_asci.png); 577 } 578 579 li#li_mysql_engines{ 580 list-style-image: url(../<?php echo $GLOBALS['cfg']['ThemePath']; ?>/original/img/b_engine.png); 581 } 582 583 li#li_mysql_binlogs { 584 list-style-image: url(../<?php echo $GLOBALS['cfg']['ThemePath']; ?>/original/img/s_tbl.png); 585 } 586 587 li#li_mysql_databases { 588 list-style-image: url(../<?php echo $GLOBALS['cfg']['ThemePath']; ?>/original/img/s_db.png); 589 } 590 591 li#li_export { 592 list-style-image: url(../<?php echo $GLOBALS['cfg']['ThemePath']; ?>/original/img/b_export.png); 593 } 594 595 li#li_import { 596 list-style-image: url(../<?php echo $GLOBALS['cfg']['ThemePath']; ?>/original/img/b_import.png); 597 } 598 599 li#li_change_password { 600 list-style-image: url(../<?php echo $GLOBALS['cfg']['ThemePath']; ?>/original/img/s_passwd.png); 601 } 602 603 li#li_log_out { 604 list-style-image: url(../<?php echo $GLOBALS['cfg']['ThemePath']; ?>/original/img/s_loggoff.png); 605 } 606 607 li#li_pma_docs { 608 list-style-image: url(../<?php echo $GLOBALS['cfg']['ThemePath']; ?>/original/img/b_docs.png); 609 } 610 611 li#li_phpinfo { 612 list-style-image: url(../<?php echo $GLOBALS['cfg']['ThemePath']; ?>/original/img/php_sym.png); 613 } 614 615 li#li_pma_homepage { 616 list-style-image: url(../<?php echo $GLOBALS['cfg']['ThemePath']; ?>/original/img/b_home.png); 617 } 618 619 li#li_mysql_privilegs{ 620 list-style-image: url(../<?php echo $GLOBALS['cfg']['ThemePath']; ?>/original/img/s_rights.png); 621 } 622 623 li#li_switch_dbstats { 624 list-style-image: url(../<?php echo $GLOBALS['cfg']['ThemePath']; ?>/original/img/b_dbstatistics.png); 625 } 626 627 li#li_flush_privileges { 628 list-style-image: url(../<?php echo $GLOBALS['cfg']['ThemePath']; ?>/original/img/s_reload.png); 629 } 630 /* END iconic view for ul items */ 631 <?php } /* end if $GLOBALS['cfg']['MainPageIconic'] */ ?> 632 633 634 #body_browse_foreigners { 635 background-color: <?php echo $cfg['LeftBgColor']; ?>; 636 margin: 5px 5px 0 5px; 637 } 638 639 #bodyquerywindow { 640 background-color: <?php echo $cfg['LeftBgColor']; ?>; 641 } 642 643 #bodythemes { 644 width: 500px; 645 margin: auto; 646 text-align: center; 647 } 648 649 #bodythemes img { 650 border: 0.1em solid black; 651 } 652 653 #bodythemes a:hover img { 654 border: 0.1em solid red; 655 } 656 657 #fieldset_select_fields { 658 float: left; 659 } 660 661 #selflink { 662 clear: both; 663 display: block; 664 margin-top: 1em; 665 margin-bottom: 1em; 666 width: 100%; 667 border-top: 0.1em solid silver; 668 text-align: <?php echo $right; ?>; 669 } 670 671 #table_innodb_bufferpool_usage, 672 #table_innodb_bufferpool_activity { 673 float: <?php echo $left; ?>; 674 } 675 676 #div_mysql_charset_collations table { 677 float: <?php echo $left; ?>; 678 } 679 680 #div_table_order { 681 min-width: 48%; 682 float: <?php echo $left; ?>; 683 } 684 685 #div_table_rename { 686 min-width: 48%; 687 float: <?php echo $left; ?>; 688 } 689 690 #div_table_copy { 691 min-width: 48%; 692 float: <?php echo $left; ?>; 693 } 694 695 #div_table_options { 696 clear: both; 697 min-width: 48%; 698 float: <?php echo $left; ?>; 699 } 700 701 #qbe_div_table_list { 702 float: <?php echo $left; ?>; 703 } 704 705 #qbe_div_sql_query { 706 float: <?php echo $left; ?>; 707 } 708 <?php 709 $GLOBALS['cfg']['BgOne'] = $GLOBALS['cfg']['BgcolorOne']; 710 $GLOBALS['cfg']['BgTwo'] = $GLOBALS['cfg']['BgcolorTwo']; 711 } // end styles 2.7.1 712 713 if ($_SESSION['PMA_Theme']->checkVersion('2.9')) { 714 ?> 715 716 /********************/ 717 /* NEW in PMA 2.9 */ 718 /********************/ 719 720 <?php if ($GLOBALS['cfg']['BrowseMarkerColor']) { ?> 721 /* marked items */ 722 .marked a, 723 .marked { 724 background: <?php echo $GLOBALS['cfg']['BrowseMarkerBackground']; ?>; 725 color: <?php echo $GLOBALS['cfg']['BrowseMarkerColor']; ?>; 726 } 727 <?php } ?> 728 729 /* odd items 1,3,5,7,... */ 730 .odd { 731 background: <?php echo $GLOBALS['cfg']['BgOne']; ?>; 732 } 733 734 /* even items 2,4,6,8,... */ 735 .even { 736 background: <?php echo $GLOBALS['cfg']['BgTwo']; ?>; 737 } 738 739 /* hovered items */ 740 .odd:hover, 741 .even:hover, 742 .hover { 743 background: <?php echo $GLOBALS['cfg']['BrowsePointerBackground']; ?>; 744 color: <?php echo $GLOBALS['cfg']['BrowsePointerColor']; ?>; 745 } 746 747 /** 748 * marks table rows/cells if the db field is in a where condition 749 */ 750 tr.condition th, 751 tr.condition td, 752 td.condition, 753 th.condition { 754 border: 1px solid <?php echo $GLOBALS['cfg']['BrowseMarkerBackground']; ?>; 755 } 756 757 label.desc { 758 width: 30em; 759 float: <?php echo $left; ?>; 760 } 761 762 body.loginform { 763 text-align: center; 764 } 765 766 body.loginform div.container { 767 text-align: <?php echo $left; ?>; 768 width: 30em; 769 margin: 0 auto; 770 } 771 772 #body_leftFrame #list_server { 773 list-style-image: url(../<?php echo $GLOBALS['cfg']['ThemePath']; ?>/original/img/s_host.png); 774 list-style-position: inside; 775 list-style-type: none; 776 margin: 0; 777 padding: 0; 778 } 779 780 #body_leftFrame #list_server li { 781 margin: 0; 782 padding: 0; 783 font-size: 80%; 784 } 785 <?php 786 } // end styles 2.9 787 788 $_SESSION['PMA_Theme_Manager']->printCss($_REQUEST['js_frame']); 789 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Mon Nov 26 15:18:20 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |