css cleanup

This commit is contained in:
Sebastian Mendel
2005-10-20 14:05:30 +00:00
parent 3d26b10f0d
commit d76b1a831c
3 changed files with 47 additions and 49 deletions

View File

@@ -18,6 +18,7 @@ $Source$
* libraries/function.js: tuned PMA_merkRowsInit(): * libraries/function.js: tuned PMA_merkRowsInit():
every table with class data now has mark and hover effect every table with class data now has mark and hover effect
* css/phpmyadmin.css.php: nowrap for IE and pre for the rest * css/phpmyadmin.css.php: nowrap for IE and pre for the rest
* css/phpmyadmin.css.php, server_status.php: css cleanup
2005-10-19 Alexander M. Turek <me@derrabus.de> 2005-10-19 Alexander M. Turek <me@derrabus.de>
* lang/*.inc.php, libraries/mysql_charsets.lib.php: Correct description * lang/*.inc.php, libraries/mysql_charsets.lib.php: Correct description

View File

@@ -30,22 +30,6 @@ caption {
font-size: <?php echo $font_size; ?>; font-size: <?php echo $font_size; ?>;
} }
table .value {
text-align: right;
white-space: nowrap;
font-family: "Courier New", Courier, monospace;
}
/* IE doesnt handles 'pre' right */
table [class=value] {
white-space: pre;
}
table .unit,
table .name {
text-align: left;
font-weight: normal;
}
#tableuserrights td, #tableuserrights td,
#tablespecificuserrights td, #tablespecificuserrights td,
#tabledatabases td { #tabledatabases td {
@@ -217,6 +201,7 @@ fieldset div[class=formelement] select {
float: left; float: left;
} }
/* Calendar */ /* Calendar */
table.calendar { width: 100%; } table.calendar { width: 100%; }
table.calendar td { text-align: center; } table.calendar td { text-align: center; }
@@ -238,6 +223,7 @@ img.calendar { border: none; }
form.clock { text-align: center; } form.clock { text-align: center; }
/* end Calendar */ /* end Calendar */
/* Options, eg. on import page */ /* Options, eg. on import page */
fieldset { fieldset {
background-color: <?php echo $GLOBALS['cfg']['BgcolorOne']; ?>; background-color: <?php echo $GLOBALS['cfg']['BgcolorOne']; ?>;
@@ -260,6 +246,7 @@ textarea { overflow: auto; }
.nospace { margin: 0; padding: 0; } .nospace { margin: 0; padding: 0; }
/* topmenu */ /* topmenu */
/* Gecko bug */ /* Gecko bug */
@@ -357,33 +344,56 @@ span.tab, span.tabcaution {
<?php } ?> <?php } ?>
/* end topmenu */ /* end topmenu */
/* data tables */
table.data caption,
table.data th,
table.data td {
padding: 0.1em 0.5em 0.1em 0.5em;
margin: 0;
margin: 0.1em;
vertical-align: top;
}
/* odd table rows 1,3,5,7,... */ /* odd table rows 1,3,5,7,... */
table tr.odd th,
table tr.odd { table tr.odd {
background-color: <?php echo $GLOBALS['cfg']['BgcolorOne']; ?>; background-color: <?php echo $GLOBALS['cfg']['BgcolorOne']; ?>;
text-align: left;
} }
/* even table rows 2,4,6,8,... */ /* even table rows 2,4,6,8,... */
table tr.even th,
table tr.even { table tr.even {
background-color: <?php echo $GLOBALS['cfg']['BgcolorTwo']; ?>; background-color: <?php echo $GLOBALS['cfg']['BgcolorTwo']; ?>;
text-align: left;
} }
/* even table rows 2,4,6,8,... */ /* marked tbale rows */
table tr.marked th,
table tr.marked { table tr.marked {
background-color: <?php echo $GLOBALS['cfg']['BrowseMarkerColor']; ?>; background-color: <?php echo $GLOBALS['cfg']['BrowseMarkerColor']; ?>;
} }
/* even table rows 2,4,6,8,... */ /* hovered table rows */
table.data tbody tr:hover, table tr.odd:hover,
table tr.even:hover,
table tr.odd:hover th,
table tr.even:hover th,
table tr.hover th,
table tr.hover { table tr.hover {
background-color: <?php echo $GLOBALS['cfg']['BrowsePointerColor']; ?>; background-color: <?php echo $GLOBALS['cfg']['BrowsePointerColor']; ?>;
} }
table tr.even th, table .value {
table tr.odd th { text-align: right;
background-color: inherit; white-space: nowrap;
color: inherit; font-family: "Courier New", Courier, monospace;
}
/* IE doesnt handles 'pre' right */
table [class=value] {
white-space: pre;
} }
.value .attention { .value .attention {
color: red; color: red;
@@ -400,18 +410,6 @@ div#serverstatus table caption a.top {
float: right; float: right;
} }
table.data caption,
table.data th,
table.data td,
div#serverstatus table caption,
div#serverstatus table th,
div#serverstatus table td {
padding: 0.1em 0.5em 0.1em 0.5em;
margin: 0;
margin: 0.1em;
vertical-align: top;
}
div#serverstatus div#serverstatusqueriesdetails table, div#serverstatus div#serverstatusqueriesdetails table,
div#serverstatus table#serverstatustraffic, div#serverstatus table#serverstatustraffic,
div#serverstatus table#serverstatusconnections { div#serverstatus table#serverstatusconnections {
@@ -422,11 +420,14 @@ div#serverstatus table#serverstatusconnections {
.clearfloat { .clearfloat {
clear: both; clear: both;
} }
div#serverstatussection table {
div#serverstatus table.statuslist .name { width: 100%;
margin-bottom: 1em;
}
div#serverstatussection table .name {
width: 18em; width: 18em;
} }
div#serverstatus table.statuslist .value { div#serverstatussection table .value {
width: 6em; width: 6em;
} }
@@ -446,13 +447,9 @@ div#serverstatus table tbody td.descr a:after,
div#serverstatus table .tblFooters a:after { div#serverstatus table .tblFooters a:after {
content: ']'; content: ']';
} }
div#serverstatus table.statuslist {
width: 100%;
margin-bottom: 1em;
}
/* end serverstatus */ /* end serverstatus */
img.lightbulb { img.lightbulb {
cursor: pointer; cursor: pointer;
} }

View File

@@ -363,7 +363,7 @@ foreach ( $sections as $section_name => $section ) {
<h3><?php echo $strServerTrafficNotes; ?></h3> <h3><?php echo $strServerTrafficNotes; ?></h3>
<table id="serverstatustraffic"> <table id="serverstatustraffic" class="data">
<thead> <thead>
<tr> <tr>
<th colspan="2"><?php echo $strTraffic; ?></th> <th colspan="2"><?php echo $strTraffic; ?></th>
@@ -408,7 +408,7 @@ foreach ( $sections as $section_name => $section ) {
</tbody> </tbody>
</table> </table>
<table id="serverstatusconnections"> <table id="serverstatusconnections" class="data">
<thead> <thead>
<tr> <tr>
<th colspan="2"><?php echo $strConnections; ?></th> <th colspan="2"><?php echo $strConnections; ?></th>
@@ -478,7 +478,7 @@ foreach ( $sections as $section_name => $section ) {
0, $GLOBALS['number_decimal_separator'], 0, $GLOBALS['number_decimal_separator'],
$GLOBALS['number_thousands_separator'] ) ); ?></h3> $GLOBALS['number_thousands_separator'] ) ); ?></h3>
<table id="serverstatusqueriessummary"> <table id="serverstatusqueriessummary" class="data">
<thead> <thead>
<tr> <tr>
<th><?php echo $strTotalUC; ?></th> <th><?php echo $strTotalUC; ?></th>
@@ -524,7 +524,7 @@ foreach ( $sections['com']['vars'] as $name => $value ) {
echo ' </table>' . "\n"; echo ' </table>' . "\n";
} }
?> ?>
<table id="serverstatusqueriesdetails<?php echo $current_table; ?>"> <table id="serverstatusqueriesdetails<?php echo $current_table; ?>" class="data">
<col class="namecol" /> <col class="namecol" />
<col class="valuecol" span="3" /> <col class="valuecol" span="3" />
<thead> <thead>
@@ -578,7 +578,7 @@ unset(
foreach ( $sections as $section_name => $section ) { foreach ( $sections as $section_name => $section ) {
if ( ! empty( $section['vars'] ) ) { if ( ! empty( $section['vars'] ) ) {
?> ?>
<table class="statuslist" id="serverstatussection<?php echo $section_name; ?>"> <table class="data" id="serverstatussection<?php echo $section_name; ?>">
<caption class="tblHeaders"> <caption class="tblHeaders">
<a class="top" <a class="top"
href="<?php echo $_SERVER['PHP_SELF'] . '?' . href="<?php echo $_SERVER['PHP_SELF'] . '?' .