- Patch #25067 by Thox: renamed 'light' and 'dark' to 'odd' and 'even'.

TODO: update the "Migrating themes from Drupal 4.6 to Drupal HEAD"-page in
        the Drupal handbook!
  TODO: update the themes in the contributions repository.
4.7.x
Dries Buytaert 2005-06-19 08:50:46 +00:00
parent f12d5c5347
commit abc16b1d6d
5 changed files with 12 additions and 12 deletions

View File

@ -702,8 +702,8 @@ function theme_table($header, $rows, $attributes = NULL) {
$cells = $row;
}
// Add light/dark class
$class = ($number % 2 == 1) ? 'light': 'dark';
// Add odd/even class
$class = ($number % 2 == 1) ? 'even': 'odd';
if (isset($attributes['class'])) {
$attributes['class'] .= ' '. $class;
}

View File

@ -30,11 +30,11 @@ th {
th.active img {
display: inline;
}
tr.dark, tr.light {
tr.even, tr.odd {
background-color: #eee;
border-bottom: 1px solid #ccc;
}
tr.dark, tr.light {
tr.even, tr.odd {
padding: 0.1em 0.6em;
}
td.active {
@ -134,7 +134,7 @@ br.clear {
margin-top: 1em;
margin-bottom: 1em;
}
tr.light .form-item, tr.dark .form-item {
tr.odd .form-item, tr.even .form-item {
margin-top: 0;
margin-bottom: 0;
white-space: nowrap;

View File

@ -9,10 +9,10 @@ th {
color: #006;
border-bottom: 1px solid #ccc;
}
tr.dark {
tr.odd {
background-color: #ddd;
}
tr.light {
tr.even {
background-color: #fff;
}
td {

View File

@ -10,7 +10,7 @@ body {
background-color: #fff;
font: 76% Verdana, Arial, Helvetica, sans-serif;
}
tr.dark td, tr.light td {
tr.odd td, tr.even td {
padding: 0.3em;
}
h1, h2, h3, h4, h5, h6 {

View File

@ -24,7 +24,7 @@ img {
display: block;
border: 0;
}
tr.dark td, tr.light td {
tr.odd td, tr.even td {
padding: 0.3em;
}
a:link {
@ -509,7 +509,7 @@ table#footer-menu {
#tracker th img {
float: right;
}
#tracker tr.light, #tracker tr.dark {
#tracker tr.even, #tracker tr.odd {
background-color: #fff;
}
#tracker td {
@ -539,10 +539,10 @@ table#footer-menu {
#forum table tr th img {
margin: 0;
}
#forum tr.dark {
#forum tr.odd {
background: #e0edfb;
}
#forum tr.light {
#forum tr.even {
background: #fff;
}
#forum td {