From: Moritz Bunkus Date: Tue, 16 Apr 2013 13:49:37 +0000 (+0200) Subject: CSS-Klasse "listrow", die über nth-child-Selektoren arbeitet X-Git-Tag: release-3.1.0beta1~486^2~3 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=9b3133b320092aac9b0d752031fb7f1b21ae1233;p=kivitendo-erp.git CSS-Klasse "listrow", die über nth-child-Selektoren arbeitet --- diff --git a/css/kivitendo/main.css b/css/kivitendo/main.css index 4cad54f27..12db365e1 100644 --- a/css/kivitendo/main.css +++ b/css/kivitendo/main.css @@ -225,12 +225,12 @@ body.menu { border-width: 1px; background: #FFFFE0; } -.listrow1 { +.listrow1, .listrow:nth-child(odd) { background-color: #FFFFFF; color: black; vertical-align: top; } -.listrow0 { +.listrow0, .listrow:nth-child(even) { background-color: #FFFF99; color: black; vertical-align: top; diff --git a/css/lx-office-erp/main.css b/css/lx-office-erp/main.css index 379423249..1e200b043 100644 --- a/css/lx-office-erp/main.css +++ b/css/lx-office-erp/main.css @@ -257,8 +257,8 @@ div.admin { } -.listrow1 { background-color: rgb(208,207,201); color: black; vertical-align: top; } -.listrow0 { background-color: rgb(236,233,216); color: black; vertical-align: top; } +.listrow1, .listrow:nth-child(odd) { background-color: rgb(208,207,201); color: black; vertical-align: top; } +.listrow0, .listrow:nth-child(even) { background-color: rgb(236,233,216); color: black; vertical-align: top; } .listrowempty { background-color: rgb(255,255,255); color: black; vertical-align: top; } .redrow1 { background-color: rgb(250,167, 161); color: black; vertical-align: top; }