Team:Heidelberg/tables

From 2010.igem.org

(Difference between revisions)
Line 44: Line 44:
/* Zebra-Tabellen - nicht für IE....*/
/* Zebra-Tabellen - nicht für IE....*/
table.wikitable.zebra tr:nth-child(even) {
table.wikitable.zebra tr:nth-child(even) {
-
background: #</html>{{{normal|FFF}}}<html>;
+
background: #</html>{{#if:{{{normal|}}}|{{{normal}}}|FFF}}<html>;
}
}
table.wikitable.zebra tr:nth-child(odd) {
table.wikitable.zebra tr:nth-child(odd) {
-
background: #</html>{{{highlight|DDD}}}<html>;
+
background: #</html>{{#if:{{{highlight|}}}|{{{highlight}}}|DDD}}<html>;
}
}
Line 55: Line 55:
table.wikitable.zebra  tr {
table.wikitable.zebra  tr {
-
background-color:expression((rowIndex+1)%2?(parentNode.parentNode.rowHighlightColor||"#</html>{{{normal|FFF}}}<html>"):(parentNode.parentNode.rowNormalColor||"#/html>{{{highlight|DDD}}}<html>"));
+
background-color:expression((rowIndex+1)%2?(parentNode.parentNode.rowHighlightColor||"#</html>{{#if:{{{normal|}}}|{{{normal}}}|FFF}}<html>"):(parentNode.parentNode.rowNormalColor||"#/html>{{#if:{{{highlight|}}}|{{{highlight}}}|DDD}}<html>"));
}
}

Revision as of 01:05, 18 October 2010