mirror of
https://github.com/twbs/bootstrap.git
synced 2024-12-02 14:24:19 +01:00
Fixes #12447: Properly reset borders on table cells in panels
This commit is contained in:
parent
3ccc16cad0
commit
d91d9b0ade
78
dist/css/bootstrap.css
vendored
78
dist/css/bootstrap.css
vendored
@ -4757,6 +4757,31 @@ a.list-group-item-danger.active:focus {
|
|||||||
.panel-body {
|
.panel-body {
|
||||||
padding: 15px;
|
padding: 15px;
|
||||||
}
|
}
|
||||||
|
.panel-heading {
|
||||||
|
padding: 10px 15px;
|
||||||
|
border-bottom: 1px solid transparent;
|
||||||
|
border-top-left-radius: 3px;
|
||||||
|
border-top-right-radius: 3px;
|
||||||
|
}
|
||||||
|
.panel-heading > .dropdown .dropdown-toggle {
|
||||||
|
color: inherit;
|
||||||
|
}
|
||||||
|
.panel-title {
|
||||||
|
margin-top: 0;
|
||||||
|
margin-bottom: 0;
|
||||||
|
font-size: 16px;
|
||||||
|
color: inherit;
|
||||||
|
}
|
||||||
|
.panel-title > a {
|
||||||
|
color: inherit;
|
||||||
|
}
|
||||||
|
.panel-footer {
|
||||||
|
padding: 10px 15px;
|
||||||
|
background-color: #f5f5f5;
|
||||||
|
border-top: 1px solid #ddd;
|
||||||
|
border-bottom-right-radius: 3px;
|
||||||
|
border-bottom-left-radius: 3px;
|
||||||
|
}
|
||||||
.panel > .list-group {
|
.panel > .list-group {
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
@ -4865,63 +4890,30 @@ a.list-group-item-danger.active:focus {
|
|||||||
.panel > .table-responsive > .table-bordered > tfoot > tr > td:last-child {
|
.panel > .table-responsive > .table-bordered > tfoot > tr > td:last-child {
|
||||||
border-right: 0;
|
border-right: 0;
|
||||||
}
|
}
|
||||||
.panel > .table-bordered > thead > tr:first-child > th,
|
|
||||||
.panel > .table-responsive > .table-bordered > thead > tr:first-child > th,
|
|
||||||
.panel > .table-bordered > tbody > tr:first-child > th,
|
|
||||||
.panel > .table-responsive > .table-bordered > tbody > tr:first-child > th,
|
|
||||||
.panel > .table-bordered > tfoot > tr:first-child > th,
|
|
||||||
.panel > .table-responsive > .table-bordered > tfoot > tr:first-child > th,
|
|
||||||
.panel > .table-bordered > thead > tr:first-child > td,
|
.panel > .table-bordered > thead > tr:first-child > td,
|
||||||
.panel > .table-responsive > .table-bordered > thead > tr:first-child > td,
|
.panel > .table-responsive > .table-bordered > thead > tr:first-child > td,
|
||||||
.panel > .table-bordered > tbody > tr:first-child > td,
|
.panel > .table-bordered > tbody > tr:first-child > td,
|
||||||
.panel > .table-responsive > .table-bordered > tbody > tr:first-child > td,
|
.panel > .table-responsive > .table-bordered > tbody > tr:first-child > td,
|
||||||
.panel > .table-bordered > tfoot > tr:first-child > td,
|
.panel > .table-bordered > thead > tr:first-child > th,
|
||||||
.panel > .table-responsive > .table-bordered > tfoot > tr:first-child > td {
|
.panel > .table-responsive > .table-bordered > thead > tr:first-child > th,
|
||||||
border-top: 0;
|
.panel > .table-bordered > tbody > tr:first-child > th,
|
||||||
|
.panel > .table-responsive > .table-bordered > tbody > tr:first-child > th {
|
||||||
|
border-bottom: 0;
|
||||||
}
|
}
|
||||||
.panel > .table-bordered > thead > tr:last-child > th,
|
|
||||||
.panel > .table-responsive > .table-bordered > thead > tr:last-child > th,
|
|
||||||
.panel > .table-bordered > tbody > tr:last-child > th,
|
|
||||||
.panel > .table-responsive > .table-bordered > tbody > tr:last-child > th,
|
|
||||||
.panel > .table-bordered > tfoot > tr:last-child > th,
|
|
||||||
.panel > .table-responsive > .table-bordered > tfoot > tr:last-child > th,
|
|
||||||
.panel > .table-bordered > thead > tr:last-child > td,
|
|
||||||
.panel > .table-responsive > .table-bordered > thead > tr:last-child > td,
|
|
||||||
.panel > .table-bordered > tbody > tr:last-child > td,
|
.panel > .table-bordered > tbody > tr:last-child > td,
|
||||||
.panel > .table-responsive > .table-bordered > tbody > tr:last-child > td,
|
.panel > .table-responsive > .table-bordered > tbody > tr:last-child > td,
|
||||||
.panel > .table-bordered > tfoot > tr:last-child > td,
|
.panel > .table-bordered > tfoot > tr:last-child > td,
|
||||||
.panel > .table-responsive > .table-bordered > tfoot > tr:last-child > td {
|
.panel > .table-responsive > .table-bordered > tfoot > tr:last-child > td,
|
||||||
|
.panel > .table-bordered > tbody > tr:last-child > th,
|
||||||
|
.panel > .table-responsive > .table-bordered > tbody > tr:last-child > th,
|
||||||
|
.panel > .table-bordered > tfoot > tr:last-child > th,
|
||||||
|
.panel > .table-responsive > .table-bordered > tfoot > tr:last-child > th {
|
||||||
border-bottom: 0;
|
border-bottom: 0;
|
||||||
}
|
}
|
||||||
.panel > .table-responsive {
|
.panel > .table-responsive {
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
border: 0;
|
border: 0;
|
||||||
}
|
}
|
||||||
.panel-heading {
|
|
||||||
padding: 10px 15px;
|
|
||||||
border-bottom: 1px solid transparent;
|
|
||||||
border-top-left-radius: 3px;
|
|
||||||
border-top-right-radius: 3px;
|
|
||||||
}
|
|
||||||
.panel-heading > .dropdown .dropdown-toggle {
|
|
||||||
color: inherit;
|
|
||||||
}
|
|
||||||
.panel-title {
|
|
||||||
margin-top: 0;
|
|
||||||
margin-bottom: 0;
|
|
||||||
font-size: 16px;
|
|
||||||
color: inherit;
|
|
||||||
}
|
|
||||||
.panel-title > a {
|
|
||||||
color: inherit;
|
|
||||||
}
|
|
||||||
.panel-footer {
|
|
||||||
padding: 10px 15px;
|
|
||||||
background-color: #f5f5f5;
|
|
||||||
border-top: 1px solid #ddd;
|
|
||||||
border-bottom-right-radius: 3px;
|
|
||||||
border-bottom-left-radius: 3px;
|
|
||||||
}
|
|
||||||
.panel-group {
|
.panel-group {
|
||||||
margin-bottom: 20px;
|
margin-bottom: 20px;
|
||||||
}
|
}
|
||||||
|
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
2
docs/dist/css/bootstrap.css.map
vendored
2
docs/dist/css/bootstrap.css.map
vendored
File diff suppressed because one or more lines are too long
2
docs/dist/css/bootstrap.min.css
vendored
2
docs/dist/css/bootstrap.min.css
vendored
File diff suppressed because one or more lines are too long
@ -18,6 +18,37 @@
|
|||||||
&:extend(.clearfix all);
|
&:extend(.clearfix all);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Optional heading
|
||||||
|
.panel-heading {
|
||||||
|
padding: 10px 15px;
|
||||||
|
border-bottom: 1px solid transparent;
|
||||||
|
.border-top-radius((@panel-border-radius - 1));
|
||||||
|
|
||||||
|
> .dropdown .dropdown-toggle {
|
||||||
|
color: inherit;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Within heading, strip any `h*` tag of its default margins for spacing.
|
||||||
|
.panel-title {
|
||||||
|
margin-top: 0;
|
||||||
|
margin-bottom: 0;
|
||||||
|
font-size: ceil((@font-size-base * 1.125));
|
||||||
|
color: inherit;
|
||||||
|
|
||||||
|
> a {
|
||||||
|
color: inherit;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Optional footer (stays gray in every modifier class)
|
||||||
|
.panel-footer {
|
||||||
|
padding: 10px 15px;
|
||||||
|
background-color: @panel-footer-bg;
|
||||||
|
border-top: 1px solid @panel-inner-border;
|
||||||
|
.border-bottom-radius((@panel-border-radius - 1));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// List groups in panels
|
// List groups in panels
|
||||||
//
|
//
|
||||||
@ -126,12 +157,22 @@
|
|||||||
> td:last-child {
|
> td:last-child {
|
||||||
border-right: 0;
|
border-right: 0;
|
||||||
}
|
}
|
||||||
&:first-child > th,
|
}
|
||||||
&:first-child > td {
|
}
|
||||||
border-top: 0;
|
> thead,
|
||||||
|
> tbody {
|
||||||
|
> tr:first-child {
|
||||||
|
> td,
|
||||||
|
> th {
|
||||||
|
border-bottom: 0;
|
||||||
}
|
}
|
||||||
&:last-child > th,
|
}
|
||||||
&:last-child > td {
|
}
|
||||||
|
> tbody,
|
||||||
|
> tfoot {
|
||||||
|
> tr:last-child {
|
||||||
|
> td,
|
||||||
|
> th {
|
||||||
border-bottom: 0;
|
border-bottom: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -144,38 +185,6 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Optional heading
|
|
||||||
.panel-heading {
|
|
||||||
padding: 10px 15px;
|
|
||||||
border-bottom: 1px solid transparent;
|
|
||||||
.border-top-radius((@panel-border-radius - 1));
|
|
||||||
|
|
||||||
> .dropdown .dropdown-toggle {
|
|
||||||
color: inherit;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Within heading, strip any `h*` tag of its default margins for spacing.
|
|
||||||
.panel-title {
|
|
||||||
margin-top: 0;
|
|
||||||
margin-bottom: 0;
|
|
||||||
font-size: ceil((@font-size-base * 1.125));
|
|
||||||
color: inherit;
|
|
||||||
|
|
||||||
> a {
|
|
||||||
color: inherit;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Optional footer (stays gray in every modifier class)
|
|
||||||
.panel-footer {
|
|
||||||
padding: 10px 15px;
|
|
||||||
background-color: @panel-footer-bg;
|
|
||||||
border-top: 1px solid @panel-inner-border;
|
|
||||||
.border-bottom-radius((@panel-border-radius - 1));
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// Collapsable panels (aka, accordion)
|
// Collapsable panels (aka, accordion)
|
||||||
//
|
//
|
||||||
// Wrap a series of panels in `.panel-group` to turn them into an accordion with
|
// Wrap a series of panels in `.panel-group` to turn them into an accordion with
|
||||||
|
Loading…
Reference in New Issue
Block a user