Striped tables in correct colors

This commit is contained in:
Christian Wolf 2017-12-05 22:37:28 +01:00
parent e425e72dfa
commit 48c3912ade
2 changed files with 17 additions and 7 deletions

View File

@ -41,9 +41,9 @@ h1,h2,h3,h4
text-align: left; text-align: left;
} }
h2 > a { /*h2 > a {
color: black; color: black;
} }*/
li.row-fluid { li.row-fluid {
display: block; display: block;
@ -121,7 +121,8 @@ ul.nav-child > li > a:hover
} }
.row-striped .row-fluid:nth-child(n), .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; background-color: inherit;
} }

View File

@ -143,25 +143,34 @@ ul.nav-child > li > a:focus
} }
.list-striped li:nth-child(odd), .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: <?php echo $params{'bgcolor2'}; ?>; background-color: <?php echo $params{'bgcolor2'}; ?>;
color: <?php echo $params{'fgcolor2'}; ?>; color: <?php echo $params{'fgcolor2'}; ?>;
} }
.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: <?php echo $params{'licolor2'}; ?>; color: <?php echo $params{'licolor2'}; ?>;
} }
.list-striped li:hover, .list-striped li:hover,
.row-striped .row-fluid:hover .row-striped .row-fluid:hover,
.table-striped > tbody > tr:hover
{ {
background-color: <?php echo $params{'bgcolor3'}; ?>; background-color: <?php echo $params{'bgcolor3'}; ?>;
color: <?php echo $params{'fgcolor3'}; ?>; color: <?php echo $params{'fgcolor3'}; ?>;
} }
.row-striped .row-fluid:hover a .row-striped .row-fluid:hover a,
.table-striped > tbody > tr:hover a
{ {
color: <?php echo $params{'licolor3'}; ?>; color: <?php echo $params{'licolor3'}; ?>;
} }
.table-striped > thead > tr
{
background-color: <?php echo $params{'bgcolor3'}; ?>;
color: <?php echo $params{'fgcolor3'}; ?>;
}
table.alternating tr:nth-child(even) { table.alternating tr:nth-child(even) {
background-color: <?php echo $params{'bgcolor2'}; ?>; background-color: <?php echo $params{'bgcolor2'}; ?>;