diff --git a/css/theme.bootstrap.css b/css/theme.bootstrap.css index 4c67f59c..4ac95183 100644 --- a/css/theme.bootstrap.css +++ b/css/theme.bootstrap.css @@ -9,22 +9,9 @@ .tablesorter-bootstrap tfoot th, .tablesorter-bootstrap tfoot td { font: bold 14px/20px Arial, Sans-serif; - position: relative; - padding: 8px; + padding: 4px; margin: 0 0 18px; - list-style: none; - background-color: #FBFBFB; - background-image: -moz-linear-gradient(top, white, #efefef); - background-image: -ms-linear-gradient(top, white, #efefef); - background-image: -webkit-gradient(linear, 0 0, 0 100%, from(white), to(#efefef)); - background-image: -webkit-linear-gradient(top, white, #efefef); - background-image: -o-linear-gradient(top, white, #efefef); - background-image: linear-gradient(to bottom, white, #efefef); - filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#efefef', GradientType=0); - background-repeat: repeat-x; - -webkit-box-shadow: inset 0 1px 0 white; - -moz-box-shadow: inset 0 1px 0 #ffffff; - box-shadow: inset 0 1px 0 white; + background-color: #eee; } .tablesorter-bootstrap .tablesorter-header { @@ -38,6 +25,7 @@ /* bootstrap uses for icons */ .tablesorter-bootstrap .tablesorter-header i { + font-size: 11px; position: absolute; right: 2px; top: 50%; @@ -97,7 +85,7 @@ caption { cursor: not-allowed; } .tablesorter-bootstrap .tablesorter-filter-row td { - background: #eee; + background: #efefef; line-height: normal; text-align: center; padding: 4px 6px; @@ -131,6 +119,10 @@ caption { .tablesorter-bootstrap .tablesorter-pager .pagedisplay { border: 0; } +/* tfoot i for pager controls */ +.tablesorter-bootstrap tfoot i { + font-size: 11px; +} /* ajax error row */ .tablesorter .tablesorter-errorRow td { diff --git a/docs/example-widget-bootstrap-theme.html b/docs/example-widget-bootstrap-theme.html index 0be08f45..443a7a56 100644 --- a/docs/example-widget-bootstrap-theme.html +++ b/docs/example-widget-bootstrap-theme.html @@ -9,7 +9,7 @@ - + @@ -34,8 +34,8 @@ footerCells: '', icons : '', // add "icon-white" to make them white; this icon class is added to the in the header sortNone : 'bootstrap-icon-unsorted', - sortAsc : 'icon-chevron-up', - sortDesc : 'icon-chevron-down', + sortAsc : 'icon-chevron-up glyphicon glyphicon-chevron-up', // includes classes for Bootstrap v2 & v3 + sortDesc : 'icon-chevron-down glyphicon glyphicon-chevron-down', // includes classes for Bootstrap v2 & v3 active : '', // applied when column is sorted hover : '', // use custom css here - bootstrap class may not override it filterRow : '', // filter row class @@ -74,7 +74,7 @@ .tablesorterPager({ // target the pager markup - see the HTML block below - container: $(".pager"), + container: $(".ts-pager"), // target the pager page select dropdown - choose a page cssGoto : ".pagenum", @@ -117,7 +117,7 @@ $(this) .toggleClass('btn-danger btn-success') .find('i') - .toggleClass('icon-ok icon-remove').end() + .toggleClass('icon-ok icon-remove glyphicon-ok glyphicon-remove').end() .find('span') .text(t ? 'disabled' : 'enabled'); $('table').trigger('refreshWidgets', [false]); @@ -141,15 +141,24 @@
NOTE!
$.tablesorter.themes.bootstrap
defaults below.icon-{name}
for Bootstrap v2, and glyphicon glyphicon-{name}
for Bootstrap v3.pager
controls in the tfoot within a div (don't use the class name pager
as it adds a lot of padding) to keep the controls from being centered.{icon}
in the headerTemplate
to add a sorting arrow to the headers.headerTemplate
option to include the bootstrap icon! See the example in the code.theme
option to "Bootstrap"
will now override/ignore the uitheme
value in the widgetOptions
.uitheme
option has changed to indicate the theme instead of an array of icons to use:
+ uitheme
option has changed to indicate the theme instead of an array of icons to use:
$.tablesorter.themes
with the Bootstrap theme saved to $.tablesorter.themes.bootstrap
.nth-child()
selector.nth-child()
selector.nth-child()
styling.