diff options
| author | Mark Otto <[email protected]> | 2013-08-11 15:01:16 -0700 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2013-08-11 15:01:16 -0700 |
| commit | 0561cfec6bb0fc0738f9f1cf5f4463e96fa1c33c (patch) | |
| tree | 6a103fcd214248903953b9a91bc9fe7ae57e473f /less | |
| parent | a88888aaeb9c0f0138abbf7824a55aa51c394ea9 (diff) | |
| download | bootstrap-0561cfec6bb0fc0738f9f1cf5f4463e96fa1c33c.tar.xz bootstrap-0561cfec6bb0fc0738f9f1cf5f4463e96fa1c33c.zip | |
fixes #8900: nuke empty space between panel heading and list group
Diffstat (limited to 'less')
| -rw-r--r-- | less/panels.less | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/less/panels.less b/less/panels.less index c1158d14f..c6d96b39f 100644 --- a/less/panels.less +++ b/less/panels.less @@ -11,8 +11,14 @@ border: 1px solid @panel-border; border-radius: @panel-border-radius; .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 { margin: 15px -15px -15px; @@ -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 .panel-heading { |
