diff options
| author | Mark Otto <[email protected]> | 2014-02-08 17:29:10 -0800 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2014-02-08 17:29:10 -0800 |
| commit | 44bb7b20c7eb14f29827fc163fc5afb066a7ddf5 (patch) | |
| tree | 72327f874cfb46d7f2a0c55e7765dc5e0d962209 /less | |
| parent | 13b4e7a1a8b9be8793c59e3c1da4016ad0974b56 (diff) | |
| download | bootstrap-44bb7b20c7eb14f29827fc163fc5afb066a7ddf5.tar.xz bootstrap-44bb7b20c7eb14f29827fc163fc5afb066a7ddf5.zip | |
Fixes #12625: Only remove first list group item's top and last list group item's bottom borders when the list group is first or last
Diffstat (limited to 'less')
| -rw-r--r-- | less/panels.less | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/less/panels.less b/less/panels.less index 475784575..20dd14938 100644 --- a/less/panels.less +++ b/less/panels.less @@ -58,25 +58,23 @@ .panel { > .list-group { margin-bottom: 0; + .list-group-item { border-width: 1px 0; border-radius: 0; - &:first-child { - border-top: 0; - } - &:last-child { - border-bottom: 0; - } } + // Add border top radius for first one &:first-child { .list-group-item:first-child { + border-top: 0; .border-top-radius((@panel-border-radius - 1)); } } // Add border bottom radius for last one &:last-child { .list-group-item:last-child { + border-bottom: 0; .border-bottom-radius((@panel-border-radius - 1)); } } @@ -104,7 +102,7 @@ > .table:first-child, > .table-responsive:first-child > .table:first-child { .border-top-radius((@panel-border-radius - 1)); - + > thead:first-child, > tbody:first-child { > tr:first-child { @@ -123,7 +121,7 @@ > .table:last-child, > .table-responsive:last-child > .table:last-child { .border-bottom-radius((@panel-border-radius - 1)); - + > tbody:last-child, > tfoot:last-child { > tr:last-child { |
