Commit abc16b1d authored by Dries's avatar Dries
Browse files

- 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.
parent f12d5c53
......@@ -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;
}
......
......@@ -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;
......
......@@ -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 {
......
......@@ -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 {
......
......@@ -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 {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment