Fix #37 - Scrolling tables incorrectly had margin between the component

tables for Bootstrap and Foundation integration
pull/40/head
Allan Jardine 11 years ago
parent faf4f3126f
commit 1f9595d4a9

@ -61,6 +61,7 @@ div.dataTables_scrollHead table thead tr:last-child td:first-child {
div.dataTables_scrollBody table { div.dataTables_scrollBody table {
border-top: none; border-top: none;
margin-top: 0 !important;
margin-bottom: 0 !important; margin-bottom: 0 !important;
} }
@ -70,6 +71,7 @@ div.dataTables_scrollBody tbody tr:first-child td {
} }
div.dataTables_scrollFoot table { div.dataTables_scrollFoot table {
margin-top: 0 !important;
border-top: none; border-top: none;
} }

@ -27,7 +27,8 @@ div.dataTables_paginate {
} }
div.dataTables_paginate ul.pagination { div.dataTables_paginate ul.pagination {
margin: 2px; margin: 2px 0;
white-space: nowrap;
} }
table.dataTable, table.dataTable,
@ -80,6 +81,7 @@ div.dataTables_scrollHead table thead tr:last-child td:first-child {
div.dataTables_scrollBody table { div.dataTables_scrollBody table {
border-top: none; border-top: none;
margin-top: 0 !important;
margin-bottom: 0 !important; margin-bottom: 0 !important;
} }
@ -89,6 +91,7 @@ div.dataTables_scrollBody tbody tr:first-child td {
} }
div.dataTables_scrollFoot table { div.dataTables_scrollFoot table {
margin-top: 0 !important;
border-top: none; border-top: none;
} }

@ -74,6 +74,7 @@ div.dataTables_scrollHead table {
div.dataTables_scrollBody table { div.dataTables_scrollBody table {
border-top: none; border-top: none;
margin-top: 0 !important;
margin-bottom: 0 !important; margin-bottom: 0 !important;
} }
@ -83,6 +84,7 @@ div.dataTables_scrollBody tbody tr:first-child td {
} }
div.dataTables_scrollFoot table { div.dataTables_scrollFoot table {
margin-top: 0 !important;
border-top: none; border-top: none;
} }

@ -1,9 +1,9 @@
/* Set the defaults for DataTables initialisation */ /* Set the defaults for DataTables initialisation */
$.extend( true, $.fn.dataTable.defaults, { $.extend( true, $.fn.dataTable.defaults, {
"sDom": "sDom":
"<'row'<'large-6 columns'l><'large-6 columns'f>r>"+ "<'row'<'small-6 columns'l><'small-6 columns'f>r>"+
"t"+ "t"+
"<'row'<'large-6 columns'i><'large-6 columns'p>>", "<'row'<'small-6 columns'i><'small-6 columns'p>>",
"oLanguage": { "oLanguage": {
"sLengthMenu": "_MENU_ records per page" "sLengthMenu": "_MENU_ records per page"
} }

Loading…
Cancel
Save