- 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
			
			
		
							parent
							
								
									f12d5c5347
								
							
						
					
					
						commit
						abc16b1d6d
					
				| 
						 | 
					@ -702,8 +702,8 @@ function theme_table($header, $rows, $attributes = NULL) {
 | 
				
			||||||
        $cells = $row;
 | 
					        $cells = $row;
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      // Add light/dark class
 | 
					      // Add odd/even class
 | 
				
			||||||
      $class = ($number % 2 == 1) ? 'light': 'dark';
 | 
					      $class = ($number % 2 == 1) ? 'even': 'odd';
 | 
				
			||||||
      if (isset($attributes['class'])) {
 | 
					      if (isset($attributes['class'])) {
 | 
				
			||||||
        $attributes['class'] .= ' '. $class;
 | 
					        $attributes['class'] .= ' '. $class;
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -30,11 +30,11 @@ th {
 | 
				
			||||||
th.active img {
 | 
					th.active img {
 | 
				
			||||||
  display: inline;
 | 
					  display: inline;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
tr.dark, tr.light {
 | 
					tr.even, tr.odd {
 | 
				
			||||||
  background-color: #eee;
 | 
					  background-color: #eee;
 | 
				
			||||||
  border-bottom: 1px solid #ccc;
 | 
					  border-bottom: 1px solid #ccc;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
tr.dark, tr.light {
 | 
					tr.even, tr.odd {
 | 
				
			||||||
  padding: 0.1em 0.6em;
 | 
					  padding: 0.1em 0.6em;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
td.active {
 | 
					td.active {
 | 
				
			||||||
| 
						 | 
					@ -134,7 +134,7 @@ br.clear {
 | 
				
			||||||
  margin-top: 1em;
 | 
					  margin-top: 1em;
 | 
				
			||||||
  margin-bottom: 1em;
 | 
					  margin-bottom: 1em;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
tr.light .form-item, tr.dark .form-item {
 | 
					tr.odd .form-item, tr.even .form-item {
 | 
				
			||||||
  margin-top: 0;
 | 
					  margin-top: 0;
 | 
				
			||||||
  margin-bottom: 0;
 | 
					  margin-bottom: 0;
 | 
				
			||||||
  white-space: nowrap;
 | 
					  white-space: nowrap;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -9,10 +9,10 @@ th {
 | 
				
			||||||
  color: #006;
 | 
					  color: #006;
 | 
				
			||||||
  border-bottom: 1px solid #ccc;
 | 
					  border-bottom: 1px solid #ccc;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
tr.dark {
 | 
					tr.odd {
 | 
				
			||||||
  background-color: #ddd;
 | 
					  background-color: #ddd;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
tr.light {
 | 
					tr.even {
 | 
				
			||||||
  background-color: #fff;
 | 
					  background-color: #fff;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
td {
 | 
					td {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -10,7 +10,7 @@ body {
 | 
				
			||||||
  background-color: #fff;
 | 
					  background-color: #fff;
 | 
				
			||||||
  font: 76% Verdana, Arial, Helvetica, sans-serif;
 | 
					  font: 76% Verdana, Arial, Helvetica, sans-serif;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
tr.dark td, tr.light td {
 | 
					tr.odd td, tr.even td {
 | 
				
			||||||
  padding: 0.3em;
 | 
					  padding: 0.3em;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
h1, h2, h3, h4, h5, h6 {
 | 
					h1, h2, h3, h4, h5, h6 {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -24,7 +24,7 @@ img {
 | 
				
			||||||
  display: block;
 | 
					  display: block;
 | 
				
			||||||
  border: 0;
 | 
					  border: 0;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
tr.dark td, tr.light td {
 | 
					tr.odd td, tr.even td {
 | 
				
			||||||
  padding: 0.3em;
 | 
					  padding: 0.3em;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
a:link {
 | 
					a:link {
 | 
				
			||||||
| 
						 | 
					@ -509,7 +509,7 @@ table#footer-menu {
 | 
				
			||||||
#tracker th img {
 | 
					#tracker th img {
 | 
				
			||||||
  float: right;
 | 
					  float: right;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
#tracker tr.light, #tracker tr.dark {
 | 
					#tracker tr.even, #tracker tr.odd {
 | 
				
			||||||
  background-color: #fff;
 | 
					  background-color: #fff;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
#tracker td {
 | 
					#tracker td {
 | 
				
			||||||
| 
						 | 
					@ -539,10 +539,10 @@ table#footer-menu {
 | 
				
			||||||
#forum table tr th img  {
 | 
					#forum table tr th img  {
 | 
				
			||||||
  margin: 0;
 | 
					  margin: 0;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
#forum tr.dark {
 | 
					#forum tr.odd {
 | 
				
			||||||
  background: #e0edfb;
 | 
					  background: #e0edfb;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
#forum tr.light {
 | 
					#forum tr.even {
 | 
				
			||||||
  background: #fff;
 | 
					  background: #fff;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
#forum td {
 | 
					#forum td {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue