0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-12-01 13:24:25 +01: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 {
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;

File diff suppressed because one or more lines are too long

View File

@ -227,6 +227,13 @@ 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 {
@ -234,6 +241,7 @@ table {
}
}
}
}
}
}