mirror of
https://github.com/Hopiu/bootstrap.git
synced 2026-03-30 19:20:23 +00:00
fixes #10521: Only remove bottom-border from last row of cells in tbody and tfoot within responsive tables
This commit is contained in:
parent
d126d8c6f3
commit
3f158175ce
3 changed files with 9 additions and 3 deletions
2
dist/css/bootstrap.css
vendored
2
dist/css/bootstrap.css
vendored
|
|
@ -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;
|
||||
|
|
|
|||
2
dist/css/bootstrap.min.css
vendored
2
dist/css/bootstrap.min.css
vendored
File diff suppressed because one or more lines are too long
|
|
@ -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 {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue