From f1f04062fe44614678ec048012d98940404cd9ed Mon Sep 17 00:00:00 2001 From: Adam Harvey Date: Fri, 7 Sep 2012 16:21:26 +0800 Subject: [PATCH] Add a class that allows us to simulate the old .sub and .subr behaviour on pages where it's appropriate to do so. --- styles/theme.css | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/styles/theme.css b/styles/theme.css index 2bb1eb76a..c2bbf7267 100755 --- a/styles/theme.css +++ b/styles/theme.css @@ -748,6 +748,28 @@ table.standard td { vertical-align: middle; } +/* Shims for the pages that relied on the old .sub behaviour for highlighting. */ +.table-sub-highlight table.standard td, .table-sub-highlight table.standard th { + border: 1px solid #ddd; +} + +.table-sub-highlight tr:nth-child(even) td.subr, +.table-sub-highlight tr:nth-child(even) th.subr, +.table-sub-highlight tr td.subr, +.table-sub-highlight tr th.subr, +.table-sub-highlight tr:nth-child(even) td.sub, +.table-sub-highlight tr:nth-child(even) th.sub, +.table-sub-highlight tr td.sub, +.table-sub-highlight tr th.sub { + background: #eee; +} + +.table-sub-highlight td.subr, +.table-sub-highlight th.subr { + text-align: right; +} + +/* News styles. */ .newsImage img { padding-left: 1em; padding-bottom: 1em;