From 201a8d41b2d5406f648898da98704e8eaa0bd608 Mon Sep 17 00:00:00 2001 From: Ankit Agarwal Date: Tue, 2 Sep 2014 11:59:12 +0530 Subject: [PATCH] MDL-46821 gradereport_user: Fix background color of user report --- grade/report/user/styles.css | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/grade/report/user/styles.css b/grade/report/user/styles.css index c15f1364192..b481be40fcb 100644 --- a/grade/report/user/styles.css +++ b/grade/report/user/styles.css @@ -10,20 +10,21 @@ .user-grade thead {border-bottom: 3px double black;} .user-grade thead th {padding: 0.25em 0.75em;} .user-grade tbody th {text-align:left;} -.user-grade td.oddd1, -.user-grade th.oddd1 {background-color: #f3dfd0;} -.user-grade td.oddd2, -.user-grade th.oddd2 {background-color: #d0dbf3;} -.user-grade td.oddd3, -.user-grade th.oddd3 {background-color: #d0f3d6;} -.user-grade td.oddd4, -.user-grade th.oddd4 {background-color: #f0f0aa;} -.user-grade td.evend2, -.user-grade th.evend2 {background-color: #b0bbd3;} -.user-grade td.evend3, -.user-grade th.evend3 {background-color: #b0dfb6;} -.user-grade td.evend4, -.user-grade th.evend4 {background-color: #cac8be;} +/* These need to be this specific to override the css from .generaltable */ +.user-grade tbody > tr:nth-child(n) > td.oddd1, +.user-grade tbody > tr:nth-child(n) > th.oddd1 {background-color: #f3dfd0;} +.user-grade tbody > tr:nth-child(n) > td.oddd2, +.user-grade tbody > tr:nth-child(n) > th.oddd2 {background-color: #d0dbf3;} +.user-grade tbody > tr:nth-child(n) > td.oddd3, +.user-grade tbody > tr:nth-child(n) > th.oddd3 {background-color: #d0f3d6;} +.user-grade tbody > tr:nth-child(n) > td.oddd4, +.user-grade tbody > tr:nth-child(n) > th.oddd4 {background-color: #f0f0aa;} +.user-grade tbody > tr:nth-child(n) > td.evend2, +.user-grade tbody > tr:nth-child(n) > th.evend2 {background-color: #b0bbd3;} +.user-grade tbody > tr:nth-child(n) > td.evend3, +.user-grade tbody > tr:nth-child(n) > th.evend3 {background-color: #b0dfb6;} +.user-grade tbody > tr:nth-child(n) > td.evend4, +.user-grade tbody > tr:nth-child(n) > th.evend4 {background-color: #cac8be;} .user-grade td.b1t, .user-grade td.b2t, .user-grade th.b1t,