Skip to content

Commit

Permalink
- Patch #25067 by Thox: renamed 'light' and 'dark' to 'odd' and 'even'.
Browse files Browse the repository at this point in the history
  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.
  • Loading branch information
dbuytaert committed Jun 19, 2005
1 parent f12d5c5 commit abc16b1
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions includes/theme.inc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
6 changes: 3 additions & 3 deletions misc/drupal.css
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions misc/print.css
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion themes/bluemarine/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
8 changes: 4 additions & 4 deletions themes/pushbutton/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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 {
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit abc16b1

Please sign in to comment.