Skip to content

Commit

Permalink
fixes #10521: Only remove bottom-border from last row of cells in tbo…
Browse files Browse the repository at this point in the history
…dy and tfoot within responsive tables
  • Loading branch information
mdo committed Sep 8, 2013
1 parent d126d8c commit 3f15817
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 0 additions & 2 deletions dist/css/bootstrap.css
Original file line number Diff line number Diff line change
Expand Up @@ -1627,10 +1627,8 @@ table th[class*="col-"] {
.table-responsive > .table-bordered > tfoot > tr > td:last-child {
border-right: 0;
}
.table-responsive > .table-bordered > thead > tr:last-child > th,
.table-responsive > .table-bordered > tbody > tr:last-child > th,
.table-responsive > .table-bordered > tfoot > tr:last-child > th,
.table-responsive > .table-bordered > thead > tr:last-child > td,
.table-responsive > .table-bordered > tbody > tr:last-child > td,
.table-responsive > .table-bordered > tfoot > tr:last-child > td {
border-bottom: 0;
Expand Down
2 changes: 1 addition & 1 deletion dist/css/bootstrap.min.css

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions less/tables.less
Original file line number Diff line number Diff line change
Expand Up @@ -227,13 +227,21 @@ table {
border-right: 0;
}
}
}

// Only nuke the last row's bottom-border in `tbody` and `tfoot` since
// chances are there will be only one `tr` in a `thead` and that would
// remove the border altogether.
> tbody,
> tfoot {
> tr:last-child {
> th,
> td {
border-bottom: 0;
}
}
}

}
}
}

0 comments on commit 3f15817

Please sign in to comment.