Commit 0561cfec authored by Mark Otto's avatar Mark Otto

fixes #8900: nuke empty space between panel heading and list group

parent a88888aa
...@@ -2426,6 +2426,14 @@ a.list-group-item.active .list-group-item-text { ...@@ -2426,6 +2426,14 @@ a.list-group-item.active .list-group-item-text {
border-bottom: 0; border-bottom: 0;
} }
.panel-heading + .list-group {
margin-top: -15px;
}
.panel-heading + .list-group .list-group-item:first-child {
border-top-width: 0;
}
.panel-heading { .panel-heading {
padding: 10px 15px; padding: 10px 15px;
margin: -15px -15px 15px; margin: -15px -15px 15px;
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -11,8 +11,14 @@ ...@@ -11,8 +11,14 @@
border: 1px solid @panel-border; border: 1px solid @panel-border;
border-radius: @panel-border-radius; border-radius: @panel-border-radius;
.box-shadow(0 1px 1px rgba(0,0,0,.05)); .box-shadow(0 1px 1px rgba(0,0,0,.05));
}
// List groups in panels
//
// By default, space out list group content from panel headings to account for
// any kind of custom content between the two.
// List groups in panels .panel {
.list-group { .list-group {
margin: 15px -15px -15px; margin: 15px -15px -15px;
...@@ -30,6 +36,13 @@ ...@@ -30,6 +36,13 @@
} }
} }
} }
// Collapse space between when there's no additional content.
.panel-heading + .list-group {
margin-top: -15px;
.list-group-item:first-child {
border-top-width: 0;
}
}
// Optional heading // Optional heading
.panel-heading { .panel-heading {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment