1
0
Fork 0
mirror of https://github.com/twbs/bootstrap.git synced 2022-11-09 12:25:43 -05:00

fixes #10521: Only remove bottom-border from last row of cells in tbody and tfoot within responsive tables

This commit is contained in:
Mark Otto 2013-09-08 08:04:11 -07:00
parent d126d8c6f3
commit 3f158175ce
3 changed files with 9 additions and 3 deletions

View file

@ -1627,10 +1627,8 @@ table th[class*="col-"] {
.table-responsive > .table-bordered > tfoot > tr > td:last-child { .table-responsive > .table-bordered > tfoot > tr > td:last-child {
border-right: 0; 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 > tbody > tr:last-child > th,
.table-responsive > .table-bordered > tfoot > 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 > tbody > tr:last-child > td,
.table-responsive > .table-bordered > tfoot > tr:last-child > td { .table-responsive > .table-bordered > tfoot > tr:last-child > td {
border-bottom: 0; border-bottom: 0;

File diff suppressed because one or more lines are too long

View file

@ -227,6 +227,13 @@ table {
border-right: 0; 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 { > tr:last-child {
> th, > th,
> td { > td {
@ -234,6 +241,7 @@ table {
} }
} }
} }
} }
} }
} }