Skip to content

Commit

Permalink
Fix - styling: Add support for Bootstrap's responsive tables
Browse files Browse the repository at this point in the history
- Bootstrap's CSS doesn't allow for using rows inside the
  table-responsive class, so we need to add a couple of overrides to
  support this.
- See thread 29738. Thanks danielbsnake72 and bkates for the input
  • Loading branch information
Allan Jardine committed Sep 11, 2015
1 parent f44d0b7 commit fb3c76a
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions css/dataTables.bootstrap.scss
Expand Up @@ -231,4 +231,18 @@ div.dataTables_scrollHead table.table-bordered {
border-bottom-width: 0;
}

// Responsive tables. We use rows inside the Bootstrap responsive wrapper,
// so they need to have their margin and padding removed
div.table-responsive > div.dataTables_wrapper > div.row {
margin: 0;

> div[class^="col-"] {
&:first-child {
padding-left: 0;
}
&:last-child {
padding-right: 0;
}
}
}

0 comments on commit fb3c76a

Please sign in to comment.