Browse Source

Merge pull request #993 from Arantor/release-2.1

Minor things
Arantor 11 years ago
parent
commit
66d0ebc77c
2 changed files with 7 additions and 3 deletions
  1. 5 1
      Themes/default/Profile.template.php
  2. 2 2
      Themes/default/css/index.css

+ 5 - 1
Themes/default/Profile.template.php

@@ -1858,6 +1858,8 @@ function template_alert_configuration()
 							<td>', $txt['receive_alert'], '</td>
 							<td>', $txt['receive_mail'], '</td>
 						</tr>';
+	$use_bg2 = true;
+
 	foreach ($context['alert_types'] as $alert_group => $alerts)
 	{
 		echo '
@@ -1908,7 +1910,7 @@ function template_alert_configuration()
 		foreach ($alerts as $alert_id => $alert_details)
 		{
 			echo '
-						<tr>
+						<tr class="windowbg', $use_bg2 ? '2' : '', '">
 							<td>', $txt['alert_' . $alert_id], '</td>';
 
 			foreach (array('alert', 'email') as $type)
@@ -1933,6 +1935,8 @@ function template_alert_configuration()
 				echo '
 							</td>';
 			}
+
+			$use_bg2 = !$use_bg2;
 		}
 	}
 

+ 2 - 2
Themes/default/css/index.css

@@ -4252,10 +4252,10 @@ tr.catbg th:last-child {
 /* Subtle zebra striping to make tables easier to follow. Will make a solution for IE8. */
 /* CSS for locked, sticky, etc has not been applied yet. Don't panic. She'll be right, mate. :P */
 .table_grid td.statsbar div{display: none;}
-.table_grid  tr td:first-child, .table_grid td.icon2 {
+.table_grid tr td:first-child, .table_grid td.icon2 {
 	border-left: 1px solid #ccc;
 }
-.table_grid td.lastpost, .table_grid td.whos_viewing, .table_grid td.moderation, .table_grid td.qaction_cell {
+.table_grid tr td:last-child, .table_grid td.lastpost, .table_grid td.whos_viewing, .table_grid td.moderation, .table_grid td.qaction_cell {
 	border-right: 1px solid #ccc;
 }
 .table_grid td.windowbg, .table_grid td.windowbg2, .table_grid td.lockedbg, .table_grid td.lockedbg2,