Integration - bootstrap: Better support for table-bordered

* Bootstrap has changed how it styles its borders to use
  border-collapse:collapse, which is unfortunate sas it makes
  column width calculations to align columns in scrolling tables simply
  impossible. We need to add styles to make sure the borders are
  separate but look collapsed.
pull/57/head
Allan Jardine 11 years ago
parent 79df6d4423
commit 28e7751dbe

@ -31,7 +31,6 @@ div.dataTables_paginate ul.pagination {
white-space: nowrap; white-space: nowrap;
} }
table.dataTable,
table.dataTable td, table.dataTable td,
table.dataTable th { table.dataTable th {
-webkit-box-sizing: content-box; -webkit-box-sizing: content-box;
@ -100,6 +99,31 @@ div.dataTables_scrollFoot table {
border-top: none; border-top: none;
} }
/* Frustratingly the border-collapse:collapse used by Bootstrap makes the column
width calculations when using scrolling impossible to align columns. We have
to use separate
*/
table.table-bordered.dataTable {
border-collapse: separate !important;
}
table.table-bordered thead th,
table.table-bordered thead td {
border-left-width: 0;
border-top-width: 0;
}
table.table-bordered tbody th,
table.table-bordered tbody td {
border-left-width: 0;
border-bottom-width: 0;
}
table.table-bordered th:last-child,
table.table-bordered td:last-child {
border-right-width: 0;
}
div.dataTables_scrollHead table.table-bordered {
border-bottom-width: 0;
}
@ -212,7 +236,7 @@ div.DTFC_LeftHeadWrapper table thead tr:last-child td:first-child {
div.DTFC_RightBodyWrapper table, div.DTFC_RightBodyWrapper table,
div.DTFC_LeftBodyWrapper table { div.DTFC_LeftBodyWrapper table {
border-top: none; border-top: none;
margin-bottom: 0 !important; margin: 0 !important;
} }
div.DTFC_RightBodyWrapper tbody tr:first-child th, div.DTFC_RightBodyWrapper tbody tr:first-child th,
@ -226,3 +250,12 @@ div.DTFC_RightFootWrapper table,
div.DTFC_LeftFootWrapper table { div.DTFC_LeftFootWrapper table {
border-top: none; border-top: none;
} }
/*
* FixedHeader styles
*/
div.FixedHeader_Cloned table {
margin: 0 !important
}

Loading…
Cancel
Save