0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-12-01 13:24:25 +01:00

account for last child bottom border; use 0 instead of none

This commit is contained in:
Mark Otto 2013-09-05 15:10:56 -07:00
parent ac244040d1
commit b51579241f
3 changed files with 40 additions and 4 deletions

View File

@ -5447,6 +5447,37 @@ a.list-group-item:focus {
border-top: 1px solid #dddddd; border-top: 1px solid #dddddd;
} }
.panel > .table-bordered {
border: 0;
}
.panel > .table-bordered > thead > tr > th:first-child,
.panel > .table-bordered > tbody > tr > th:first-child,
.panel > .table-bordered > tfoot > tr > th:first-child,
.panel > .table-bordered > thead > tr > td:first-child,
.panel > .table-bordered > tbody > tr > td:first-child,
.panel > .table-bordered > tfoot > tr > td:first-child {
border-left: 0;
}
.panel > .table-bordered > thead > tr > th:last-child,
.panel > .table-bordered > tbody > tr > th:last-child,
.panel > .table-bordered > tfoot > tr > th:last-child,
.panel > .table-bordered > thead > tr > td:last-child,
.panel > .table-bordered > tbody > tr > td:last-child,
.panel > .table-bordered > tfoot > tr > td:last-child {
border-right: 0;
}
.panel > .table-bordered > thead > tr:last-child > th,
.panel > .table-bordered > tbody > tr:last-child > th,
.panel > .table-bordered > tfoot > tr:last-child > th,
.panel > .table-bordered > thead > tr:last-child > td,
.panel > .table-bordered > tbody > tr:last-child > td,
.panel > .table-bordered > tfoot > tr:last-child > td {
border-bottom: 0;
}
.panel-heading { .panel-heading {
padding: 10px 15px; padding: 10px 15px;
border-bottom: 1px solid transparent; border-bottom: 1px solid transparent;

File diff suppressed because one or more lines are too long

View File

@ -63,18 +63,23 @@
border-top: 1px solid @table-border-color; border-top: 1px solid @table-border-color;
} }
> .table-bordered { > .table-bordered {
border: none; border: 0;
> thead, > thead,
> tbody, > tbody,
> tfoot { > tfoot {
> tr { > tr {
> th:first-child, > th:first-child,
> td:first-child { > td:first-child {
border-left: none; border-left: 0;
} }
> th:last-child, > th:last-child,
> td:last-child { > td:last-child {
border-right: none; border-right: 0;
}
&:last-child > th,
&:last-child > td {
border-bottom: 0;
} }
} }
} }