Преглед на файлове

don't shade table headings

Owen Versteeg преди 11 години
родител
ревизия
d1056d99e2
променени са 1 файла, в които са добавени 3 реда и са изтрити 2 реда
  1. 3 2
      less/tables.less

+ 3 - 2
less/tables.less

@@ -5,9 +5,10 @@ table {
 
 th, td {
 	padding: .5em;
-	line-height: 1.4em;
+	text-align: left;
 }
 
-tr:nth-child(2n-1) {
+tbody tr:nth-child(2n-1) {
+	/* We use tbody to ensure that we don't shade the heading - this preserves the order of the shading */
 	background: #ccc; /* Shade every other table row */
 }