CSS: Style caption per table theme. Fixes #1564

This commit is contained in:
Rob Garrison 2018-07-03 10:01:22 -05:00
parent cf3c674c1f
commit 0331751645
15 changed files with 19 additions and 20 deletions

View File

@ -35,8 +35,7 @@ Test out these customization files live
Pink hsl(297, 100%, 33%) Pink hsl(297, 100%, 33%)
Purple hsl(257, 51%, 48%) Purple hsl(257, 51%, 48%)
Red hsl(5, 100%, 40%) Red hsl(5, 100%, 40%)
*/
*/
@headerBackground : hsl(32, 50%, 30%); @headerBackground : hsl(32, 50%, 30%);
@borderAndBackground : #cdcdcd; @borderAndBackground : #cdcdcd;
@headerTextColor : #eee; @headerTextColor : #eee;
@ -166,9 +165,9 @@ Test out these customization files live
padding: @overallPadding; padding: @overallPadding;
} }
.dark-row th, .dark-row td, caption.dark-row { .dark-row th, .dark-row td, caption.dark-row {
background-color: darken( @headerBackground, 10% ); background-color: darken( @headerBackground, 10% );
} }
tbody td, tfoot th, tfoot td { tbody td, tfoot th, tfoot td {
padding: @overallPadding; padding: @overallPadding;

View File

@ -117,7 +117,7 @@
} }
/* caption */ /* caption */
caption { .tablesorter-blackice > caption {
background-color: #fff; background-color: #fff;
} }

View File

@ -154,7 +154,7 @@
} }
/* caption */ /* caption */
caption { .tablesorter-blue > caption {
background-color: #fff; background-color: #fff;
} }

View File

@ -109,7 +109,7 @@
} }
/* caption */ /* caption */
.caption { .tablesorter-bootstrap > .caption {
background-color: #fff; background-color: #fff;
} }

View File

@ -112,7 +112,7 @@
} }
/* caption */ /* caption */
caption { .tablesorter-bootstrap > caption {
background-color: #fff; background-color: #fff;
} }
@ -185,4 +185,4 @@ caption {
text-align: center; text-align: center;
cursor: pointer; cursor: pointer;
background-color: #e6bf99; background-color: #e6bf99;
} }

View File

@ -106,7 +106,7 @@
} }
/* caption */ /* caption */
.caption { .tablesorter-bootstrap > .caption {
background-color: #fff; background-color: #fff;
} }

View File

@ -112,7 +112,7 @@
} }
/* caption */ /* caption */
.tablesorter-bootstrap:not(.table-dark) .caption { .tablesorter-bootstrap:not(.table-dark) > .caption {
background-color: #fff; background-color: #fff;
} }

View File

@ -116,7 +116,7 @@
} }
/* caption */ /* caption */
caption { .tablesorter-dark > caption {
background-color: #202020; background-color: #202020;
} }

View File

@ -118,7 +118,7 @@ Default Theme
} }
/* caption */ /* caption */
caption { .tablesorter-default > caption {
background-color: #fff; background-color: #fff;
} }

View File

@ -138,7 +138,7 @@
} }
/* caption */ /* caption */
caption { .tablesorter-dropbox > caption {
background-color: #fff; background-color: #fff;
} }

View File

@ -137,7 +137,7 @@
} }
/* caption */ /* caption */
caption { .tablesorter-green > caption {
background-color: #fff; background-color: #fff;
} }

View File

@ -176,7 +176,7 @@
} }
/* caption */ /* caption */
caption { .tablesorter-grey > caption {
background-color: #fff; background-color: #fff;
} }

View File

@ -137,7 +137,7 @@
} }
/* caption */ /* caption */
caption { .tablesorter-ice > caption {
background-color: #fff; background-color: #fff;
} }

View File

@ -89,7 +89,7 @@
} }
/* caption */ /* caption */
.tablesorter-jui caption { .tablesorter-jui > caption {
border: 0; border: 0;
} }

View File

@ -94,7 +94,7 @@
} }
/* caption */ /* caption */
.caption { .tablesorter-materialize > .caption {
background-color: #fff; background-color: #fff;
} }