mirror of
https://github.com/twbs/bootstrap.git
synced 2025-01-29 21:52:22 +01:00
Fixes #10492 better:
- Made more generic. Applies to "> .table" and "> .table-responsive > .table" to support td/tr background colors too and not just .table-striped - Supports tfoot
This commit is contained in:
parent
0bd5bca695
commit
f3ce6a9696
32
dist/css/bootstrap.css
vendored
32
dist/css/bootstrap.css
vendored
@ -4771,6 +4771,26 @@ a.list-group-item-info.active:focus {
|
||||
.panel > .table-responsive > .table {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.panel > .table > tbody:last-child > tr:last-child td:first-child,
|
||||
.panel > .table-responsive > .table > tbody:last-child > tr:last-child td:first-child,
|
||||
.panel > .table > tfoot:last-child > tr:last-child td:first-child,
|
||||
.panel > .table-responsive > .table > tfoot:last-child > tr:last-child td:first-child,
|
||||
.panel > .table > tbody:last-child > tr:last-child th:first-child,
|
||||
.panel > .table-responsive > .table > tbody:last-child > tr:last-child th:first-child,
|
||||
.panel > .table > tfoot:last-child > tr:last-child th:first-child,
|
||||
.panel > .table-responsive > .table > tfoot:last-child > tr:last-child th:first-child {
|
||||
border-bottom-left-radius: 3px;
|
||||
}
|
||||
.panel > .table > tbody:last-child > tr:last-child td:last-child,
|
||||
.panel > .table-responsive > .table > tbody:last-child > tr:last-child td:last-child,
|
||||
.panel > .table > tfoot:last-child > tr:last-child td:last-child,
|
||||
.panel > .table-responsive > .table > tfoot:last-child > tr:last-child td:last-child,
|
||||
.panel > .table > tbody:last-child > tr:last-child th:last-child,
|
||||
.panel > .table-responsive > .table > tbody:last-child > tr:last-child th:last-child,
|
||||
.panel > .table > tfoot:last-child > tr:last-child th:last-child,
|
||||
.panel > .table-responsive > .table > tfoot:last-child > tr:last-child th:last-child {
|
||||
border-bottom-right-radius: 3px;
|
||||
}
|
||||
.panel > .panel-body + .table,
|
||||
.panel > .panel-body + .table-responsive {
|
||||
border-top: 1px solid #ddd;
|
||||
@ -4829,18 +4849,6 @@ a.list-group-item-info.active:focus {
|
||||
margin-bottom: 0;
|
||||
border: 0;
|
||||
}
|
||||
.panel > .table-striped > tbody > tr:last-child td:first-child,
|
||||
.panel > .table-responsive > .table-striped > tbody > tr:last-child td:first-child,
|
||||
.panel > .table-striped > tbody > tr:last-child th:first-child,
|
||||
.panel > .table-responsive > .table-striped > tbody > tr:last-child th:first-child {
|
||||
border-bottom-left-radius: 3px;
|
||||
}
|
||||
.panel > .table-striped > tbody > tr:last-child td:last-child,
|
||||
.panel > .table-responsive > .table-striped > tbody > tr:last-child td:last-child,
|
||||
.panel > .table-striped > tbody > tr:last-child th:last-child,
|
||||
.panel > .table-responsive > .table-striped > tbody > tr:last-child th:last-child {
|
||||
border-bottom-right-radius: 3px;
|
||||
}
|
||||
.panel-heading {
|
||||
padding: 10px 15px;
|
||||
border-bottom: 1px solid transparent;
|
||||
|
2
dist/css/bootstrap.css.map
vendored
2
dist/css/bootstrap.css.map
vendored
File diff suppressed because one or more lines are too long
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
@ -59,6 +59,20 @@
|
||||
> .table,
|
||||
> .table-responsive > .table {
|
||||
margin-bottom: 0;
|
||||
|
||||
> tbody:last-child,
|
||||
> tfoot:last-child {
|
||||
> tr:last-child {
|
||||
td:first-child,
|
||||
th:first-child {
|
||||
border-bottom-left-radius: (@panel-border-radius - 1);
|
||||
}
|
||||
td:last-child,
|
||||
th:last-child {
|
||||
border-bottom-right-radius: (@panel-border-radius - 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
> .panel-body + .table,
|
||||
> .panel-body + .table-responsive {
|
||||
@ -95,19 +109,6 @@
|
||||
border: 0;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
> .table-striped,
|
||||
> .table-responsive > .table-striped {
|
||||
> tbody > tr:last-child {
|
||||
td:first-child,
|
||||
th:first-child {
|
||||
border-bottom-left-radius: (@panel-border-radius - 1);
|
||||
}
|
||||
td:last-child,
|
||||
th:last-child {
|
||||
border-bottom-right-radius: (@panel-border-radius - 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user