mirror of
https://github.com/Mottie/tablesorter.git
synced 2024-11-15 23:54:22 +00:00
Themes: Fix zerba striping in nested tables
This commit is contained in:
parent
71597e208a
commit
2c849fe4c0
4
css/bootstrap.less
vendored
4
css/bootstrap.less
vendored
@ -204,10 +204,10 @@ Test out these custom less files live
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Zebra Widget - row alternating colors */
|
/* Zebra Widget - row alternating colors */
|
||||||
tr.odd td {
|
tr.odd > td {
|
||||||
.oddRows;
|
.oddRows;
|
||||||
}
|
}
|
||||||
tr.even td {
|
tr.even > td {
|
||||||
.evenRows;
|
.evenRows;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -100,7 +100,7 @@ Test out these custom less files live
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*** Arrows ***/
|
/*** Arrows ***/
|
||||||
@arrowPosition : center right;
|
@arrowPosition : right 5px center;
|
||||||
|
|
||||||
/* black */
|
/* black */
|
||||||
@unsortedBlack : url(data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAQBAMAAADQT4M0AAAAIVBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABt0UjBAAAACnRSTlMAMwsqXt+gIBUGxGoDMAAAAFlJREFUCNctzC0SQAAUReEzGNQ3AlHRiSRZFCVZYgeswRL8hLdK7834wj3tAlGP6y7fYHpKS6w6WwbVG0I1NZVnZPG8/DYxOYlnhUYkA06R1s9ESsxR4NIdPhkPFDFYuEnMAAAAAElFTkSuQmCC);
|
@unsortedBlack : url(data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAQBAMAAADQT4M0AAAAIVBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABt0UjBAAAACnRSTlMAMwsqXt+gIBUGxGoDMAAAAFlJREFUCNctzC0SQAAUReEzGNQ3AlHRiSRZFCVZYgeswRL8hLdK7834wj3tAlGP6y7fYHpKS6w6WwbVG0I1NZVnZPG8/DYxOYlnhUYkA06R1s9ESsxR4NIdPhkPFDFYuEnMAAAAAElFTkSuQmCC);
|
||||||
@ -225,10 +225,10 @@ Test out these custom less files live
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Zebra Widget - row alternating colors */
|
/* Zebra Widget - row alternating colors */
|
||||||
tr.odd td {
|
tr.odd > td {
|
||||||
.oddRows;
|
.oddRows;
|
||||||
}
|
}
|
||||||
tr.even td {
|
tr.even > td {
|
||||||
.evenRows;
|
.evenRows;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -84,10 +84,10 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Zebra Widget - row alternating colors */
|
/* Zebra Widget - row alternating colors */
|
||||||
.tablesorter-blackice tr.odd td {
|
.tablesorter-blackice tr.odd > td {
|
||||||
background-color: #333;
|
background-color: #333;
|
||||||
}
|
}
|
||||||
.tablesorter-blackice tr.even td {
|
.tablesorter-blackice tr.even > td {
|
||||||
background-color: #393939;
|
background-color: #393939;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -119,10 +119,10 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Zebra Widget - row alternating colors */
|
/* Zebra Widget - row alternating colors */
|
||||||
.tablesorter-blue tbody tr.odd td {
|
.tablesorter-blue tbody tr.odd > td {
|
||||||
background-color: #ebf2fa;
|
background-color: #ebf2fa;
|
||||||
}
|
}
|
||||||
.tablesorter-blue tbody tr.even td {
|
.tablesorter-blue tbody tr.even > td {
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -60,14 +60,14 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* since bootstrap (table-striped) uses nth-child(), we just use this to add a zebra stripe color */
|
/* since bootstrap (table-striped) uses nth-child(), we just use this to add a zebra stripe color */
|
||||||
.tablesorter-bootstrap tr.odd td {
|
.tablesorter-bootstrap tr.odd > td {
|
||||||
background-color: #f9f9f9;
|
background-color: #f9f9f9;
|
||||||
}
|
}
|
||||||
.tablesorter-bootstrap tbody > .odd:hover > td,
|
.tablesorter-bootstrap tbody > .odd:hover > td,
|
||||||
.tablesorter-bootstrap tbody > .even:hover > td {
|
.tablesorter-bootstrap tbody > .even:hover > td {
|
||||||
background-color: #f5f5f5;
|
background-color: #f5f5f5;
|
||||||
}
|
}
|
||||||
.tablesorter-bootstrap tr.even td {
|
.tablesorter-bootstrap tr.even > td {
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -83,10 +83,10 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Zebra Widget - row alternating colors */
|
/* Zebra Widget - row alternating colors */
|
||||||
.tablesorter-dark tr.odd td {
|
.tablesorter-dark tr.odd > td {
|
||||||
background-color: #202020;
|
background-color: #202020;
|
||||||
}
|
}
|
||||||
.tablesorter-dark tr.even td {
|
.tablesorter-dark tr.even > td {
|
||||||
background-color: #101010;
|
background-color: #101010;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -86,10 +86,10 @@ Default Theme
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Zebra Widget - row alternating colors */
|
/* Zebra Widget - row alternating colors */
|
||||||
.tablesorter-default tr.odd td {
|
.tablesorter-default tr.odd > td {
|
||||||
background-color: #dfdfdf;
|
background-color: #dfdfdf;
|
||||||
}
|
}
|
||||||
.tablesorter-default tr.even td {
|
.tablesorter-default tr.even > td {
|
||||||
background-color: #efefef;
|
background-color: #efefef;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -116,9 +116,9 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Zebra Widget - row alternating colors */
|
/* Zebra Widget - row alternating colors */
|
||||||
.tablesorter-dropbox tr.odd td {
|
.tablesorter-dropbox tr.odd > td {
|
||||||
}
|
}
|
||||||
.tablesorter-dropbox tr.even td {
|
.tablesorter-dropbox tr.even > td {
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Column Widget - column sort colors */
|
/* Column Widget - column sort colors */
|
||||||
|
@ -101,10 +101,10 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Zebra Widget - row alternating colors */
|
/* Zebra Widget - row alternating colors */
|
||||||
.tablesorter-green tr.odd td {
|
.tablesorter-green tr.odd > td {
|
||||||
background-color: #ebfaeb;
|
background-color: #ebfaeb;
|
||||||
}
|
}
|
||||||
.tablesorter-green tr.even td {
|
.tablesorter-green tr.even > td {
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -137,10 +137,10 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Zebra Widget - row alternating colors */
|
/* Zebra Widget - row alternating colors */
|
||||||
.tablesorter-grey tbody tr.odd td {
|
.tablesorter-grey tbody tr.odd > td {
|
||||||
background-color: #5e5e5e;
|
background-color: #5e5e5e;
|
||||||
}
|
}
|
||||||
.tablesorter-grey tbody tr.even td {
|
.tablesorter-grey tbody tr.even > td {
|
||||||
background-color: #6d6d6d;
|
background-color: #6d6d6d;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -93,10 +93,10 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Zebra Widget - row alternating colors */
|
/* Zebra Widget - row alternating colors */
|
||||||
.tablesorter-ice tr.odd td {
|
.tablesorter-ice tr.odd > td {
|
||||||
background-color: #dfdfdf;
|
background-color: #dfdfdf;
|
||||||
}
|
}
|
||||||
.tablesorter-ice tr.even td {
|
.tablesorter-ice tr.even > td {
|
||||||
background-color: #efefef;
|
background-color: #efefef;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -90,7 +90,7 @@ Test out these custom less files live
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*** Arrows ***/
|
/*** Arrows ***/
|
||||||
@arrowPosition : 95% center;
|
@arrowPosition : right 5px center;
|
||||||
|
|
||||||
/* black */
|
/* black */
|
||||||
@unsortedBlack : url(data:image/gif;base64,R0lGODlhFQAJAIAAACMtMP///yH5BAEAAAEALAAAAAAVAAkAAAIXjI+AywnaYnhUMoqt3gZXPmVg94yJVQAAOw==);
|
@unsortedBlack : url(data:image/gif;base64,R0lGODlhFQAJAIAAACMtMP///yH5BAEAAAEALAAAAAAVAAkAAAIXjI+AywnaYnhUMoqt3gZXPmVg94yJVQAAOw==);
|
||||||
@ -210,10 +210,10 @@ Test out these custom less files live
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Zebra Widget - row alternating colors */
|
/* Zebra Widget - row alternating colors */
|
||||||
tr.odd td {
|
tr.odd > td {
|
||||||
.oddRows;
|
.oddRows;
|
||||||
}
|
}
|
||||||
tr.even td {
|
tr.even > td {
|
||||||
.evenRows;
|
.evenRows;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -36,7 +36,7 @@ Metro Dark Theme
|
|||||||
.tablesorter-metro-dark .header,
|
.tablesorter-metro-dark .header,
|
||||||
.tablesorter-metro-dark .tablesorter-header {
|
.tablesorter-metro-dark .tablesorter-header {
|
||||||
background-image: url(data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAQBAMAAADQT4M0AAAAGFBMVEUAAADu7u7u7u7u7u7u7u7u7u7u7u7u7u5jNePWAAAACHRSTlMAMxIHKwEgMWD59H4AAABSSURBVAjXY2BgYFJgAAHzYhDJ6igSAKTYBAUTgJSioKAQAwNzoaCguAFDiCAQuDIkgigxBgiA8cJAVCpQt6AgSL+JoKAzA0gjUBsQqBcBCYhFAAE/CV4zeSzxAAAAAElFTkSuQmCC);
|
background-image: url(data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAQBAMAAADQT4M0AAAAGFBMVEUAAADu7u7u7u7u7u7u7u7u7u7u7u7u7u5jNePWAAAACHRSTlMAMxIHKwEgMWD59H4AAABSSURBVAjXY2BgYFJgAAHzYhDJ6igSAKTYBAUTgJSioKAQAwNzoaCguAFDiCAQuDIkgigxBgiA8cJAVCpQt6AgSL+JoKAzA0gjUBsQqBcBCYhFAAE/CV4zeSzxAAAAAElFTkSuQmCC);
|
||||||
background-position: center right;
|
background-position: right 5px center;
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
white-space: normal;
|
white-space: normal;
|
||||||
@ -95,10 +95,10 @@ Metro Dark Theme
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Zebra Widget - row alternating colors */
|
/* Zebra Widget - row alternating colors */
|
||||||
.tablesorter-metro-dark tr.odd td {
|
.tablesorter-metro-dark tr.odd > td {
|
||||||
background-color: #eee;
|
background-color: #eee;
|
||||||
}
|
}
|
||||||
.tablesorter-metro-dark tr.even td {
|
.tablesorter-metro-dark tr.even > td {
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user