From 48c3912ade922a813160b2d1aac4c3fb3b15a8c8 Mon Sep 17 00:00:00 2001 From: Christian Wolf Date: Tue, 5 Dec 2017 22:37:28 +0100 Subject: [PATCH] Striped tables in correct colors --- slt/css/visual.css | 7 ++++--- slt/index.php | 17 +++++++++++++---- 2 files changed, 17 insertions(+), 7 deletions(-) diff --git a/slt/css/visual.css b/slt/css/visual.css index ff75955..9169279 100644 --- a/slt/css/visual.css +++ b/slt/css/visual.css @@ -41,9 +41,9 @@ h1,h2,h3,h4 text-align: left; } -h2 > a { +/*h2 > a { color: black; -} +}*/ li.row-fluid { display: block; @@ -121,7 +121,8 @@ ul.nav-child > li > a:hover } .row-striped .row-fluid:nth-child(n), -.list-striped li:nth-child(n) +.list-striped li:nth-child(n), +.table-striped tbody > tr:nth-child(n) > td { background-color: inherit; } diff --git a/slt/index.php b/slt/index.php index 646ab91..c22e6a2 100644 --- a/slt/index.php +++ b/slt/index.php @@ -143,25 +143,34 @@ ul.nav-child > li > a:focus } .list-striped li:nth-child(odd), -.row-striped .row-fluid:nth-child(odd) +.row-striped .row-fluid:nth-child(odd), +.table-striped > tbody > tr:nth-child(odd) { background-color: ; color: ; } -.row-striped .row-fluid:nth-child(odd) a +.row-striped .row-fluid:nth-child(odd) a, +.table-striped > tbody > tr:nth-child(odd) a { color: ; } .list-striped li:hover, -.row-striped .row-fluid:hover +.row-striped .row-fluid:hover, +.table-striped > tbody > tr:hover { background-color: ; color: ; } -.row-striped .row-fluid:hover a +.row-striped .row-fluid:hover a, +.table-striped > tbody > tr:hover a { color: ; } +.table-striped > thead > tr +{ + background-color: ; + color: ; +} table.alternating tr:nth-child(even) { background-color: ;