diff --git a/css/theme.bootstrap.css b/css/theme.bootstrap.css index 3649b9a3..ce67fd44 100644 --- a/css/theme.bootstrap.css +++ b/css/theme.bootstrap.css @@ -83,6 +83,29 @@ background-repeat: no-repeat !important; } +/* Column Widget - column sort colors */ +.tablesorter-bootstrap > tbody > tr.odd td.primary { + background-color: #bfbfbf; +} +.tablesorter-bootstrap > tbody > tr td.primary, +.tablesorter-bootstrap > tbody > tr.even td.primary { + background-color: #d9d9d9; +} +.tablesorter-bootstrap > tbody > tr.odd td.secondary { + background-color: #d9d9d9; +} +.tablesorter-bootstrap > tbody > tr td.secondary, +.tablesorter-bootstrap > tbody > tr.even td.secondary { + background-color: #e6e6e6; +} +.tablesorter-bootstrap > tbody > tr.odd td.tertiary { + background-color: #e6e6e6; +} +.tablesorter-bootstrap > tbody > tr td.tertiary, +.tablesorter-bootstrap > tbody > tr.even td.tertiary { + background-color: #f2f2f2; +} + /* caption */ .caption { background-color: #fff; @@ -143,7 +166,7 @@ opacity: 0; filter: alpha(opacity=0); } -/* rows hidden by filtering (needed for child rows) */ +/* rows hidden by filtering */ .tablesorter .filtered { display: none; } diff --git a/css/theme.bootstrap_2.css b/css/theme.bootstrap_2.css index ac9e8cb1..b53469e0 100644 --- a/css/theme.bootstrap_2.css +++ b/css/theme.bootstrap_2.css @@ -89,6 +89,29 @@ z-index: 1000; } +/* Column Widget - column sort colors */ +.tablesorter-bootstrap > tbody > tr.odd td.primary { + background-color: #bfbfbf; +} +.tablesorter-bootstrap > tbody > tr td.primary, +.tablesorter-bootstrap > tbody > tr.even td.primary { + background-color: #d9d9d9; +} +.tablesorter-bootstrap > tbody > tr.odd td.secondary { + background-color: #d9d9d9; +} +.tablesorter-bootstrap > tbody > tr td.secondary, +.tablesorter-bootstrap > tbody > tr.even td.secondary { + background-color: #e6e6e6; +} +.tablesorter-bootstrap > tbody > tr.odd td.tertiary { + background-color: #e6e6e6; +} +.tablesorter-bootstrap > tbody > tr td.tertiary, +.tablesorter-bootstrap > tbody > tr.even td.tertiary { + background-color: #f2f2f2; +} + /* caption */ caption { background-color: #fff; @@ -145,7 +168,7 @@ caption { opacity: 0; filter: alpha(opacity=0); } -/* rows hidden by filtering (needed for child rows) */ +/* rows hidden by filtering */ .tablesorter .filtered { display: none; } diff --git a/docs/example-widget-bootstrap-theme-v2.html b/docs/example-widget-bootstrap-theme-v2.html index cfe412c6..46b2ba3a 100644 --- a/docs/example-widget-bootstrap-theme-v2.html +++ b/docs/example-widget-bootstrap-theme-v2.html @@ -64,13 +64,16 @@ // widget code contained in the jquery.tablesorter.widgets.js file // use the zebra stripe widget if you plan on hiding any rows (filter widget) - widgets : [ "uitheme", "filter", "zebra" ], + widgets : [ "uitheme", "filter", "columns", "zebra" ], widgetOptions : { // using the default zebra striping class name, so it actually isn't included in the theme variable above // this is ONLY needed for bootstrap theming if you are using the filter widget, because rows are hidden zebra : ["even", "odd"], + // class names added to columns when sorted + columns: [ "primary", "secondary", "tertiary" ], + // reset filters button filter_reset : ".reset", @@ -125,7 +128,7 @@ $(this) .toggleClass('btn-danger btn-success') .find('i') - .toggleClass('icon-ok icon-remove glyphicon-ok glyphicon-remove').end() + .toggleClass('icon-ok icon-remove').end() .find('span') .text(t ? 'disabled' : 'enabled'); $('table').trigger('refreshWidgets', [false]); @@ -150,6 +153,7 @@ NOTE!