aboutsummaryrefslogtreecommitdiff
path: root/less
diff options
context:
space:
mode:
authorDaijiro Wachi <[email protected]>2014-01-19 06:43:57 +0900
committerDaijiro Wachi <[email protected]>2014-01-19 06:43:57 +0900
commit6856c9f7f6ee3a939d41e7578cb09c39958177dd (patch)
treeed1dede88efb564207685cc197c736be12bcdbec /less
parent7b42103df6aa207c4d6cc1d977ab0cd2bc04dc65 (diff)
downloadbootstrap-6856c9f7f6ee3a939d41e7578cb09c39958177dd.tar.xz
bootstrap-6856c9f7f6ee3a939d41e7578cb09c39958177dd.zip
remove border radius when it's not both ends in panel
Diffstat (limited to 'less')
-rw-r--r--less/panels.less46
1 files changed, 39 insertions, 7 deletions
diff --git a/less/panels.less b/less/panels.less
index a19fa3788..e004d1715 100644
--- a/less/panels.less
+++ b/less/panels.less
@@ -27,19 +27,28 @@
.panel {
> .list-group {
margin-bottom: 0;
-
.list-group-item {
border-width: 1px 0;
-
- // Remove border radius for top one
+ border-radius: 0;
&:first-child {
- .border-top-radius(0);
+ border-top: 0;
}
- // But keep it for the last one
&:last-child {
border-bottom: 0;
}
}
+ // Add border top radius for first one
+ &:first-child {
+ .list-group-item:first-child {
+ .border-top-radius((@panel-border-radius - 1));
+ }
+ }
+ // Add border bottom radius for last one
+ &:last-child {
+ .list-group-item:last-child {
+ .border-bottom-radius((@panel-border-radius - 1));
+ }
+ }
}
}
// Collapse space between when there's no additional content.
@@ -59,7 +68,27 @@
> .table,
> .table-responsive > .table {
margin-bottom: 0;
-
+ }
+ // Add border top radius for first one
+ > .table:first-child,
+ > .table-responsive:first-child > .table:first-child {
+ > thead:first-child,
+ > tbody:first-child {
+ > tr:first-child {
+ td:first-child,
+ th:first-child {
+ border-top-left-radius: (@panel-border-radius - 1);
+ }
+ td:last-child,
+ th:last-child {
+ border-top-right-radius: (@panel-border-radius - 1);
+ }
+ }
+ }
+ }
+ // Add border bottom radius for last one
+ > .table:last-child,
+ > .table-responsive:last-child > .table:last-child {
> tbody:last-child,
> tfoot:last-child {
> tr:last-child {
@@ -97,7 +126,10 @@
> td:last-child {
border-right: 0;
}
-
+ &:first-child > th,
+ &:first-child > td {
+ border-top: 0;
+ }
&:last-child > th,
&:last-child > td {
border-bottom: 0;